annotations2triannon 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/annotations2triannon.gemspec +1 -4
- data/bin/dms.rb +4 -2
- data/lib/annotations2triannon/open_annotation.rb +1 -4
- data/lib/requires.rb +0 -3
- metadata +1 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf8a8db6a0fce3d99033b5a6f5c06c48debc16ce
|
4
|
+
data.tar.gz: e76a1f81fc653fad3e592fe7696a490aa288ddf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f8be59545e4488c5afbad2110d607780220a605979f07e50a3665a9aeeacee70b1d97a2e27afd6e1f4c59c920b7df8657f86e39703a93d1b30a769ca52236b
|
7
|
+
data.tar.gz: c9cb96aa7143d99a650fe8e0d3fd8e93ba74b982807c349dbeea599eb6a2cfa03dd9fbce2838efce347217234bf7b8eb9c793e8dda2e140b905f94c73152810f
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'annotations2triannon'
|
5
|
-
s.version = '0.
|
5
|
+
s.version = '0.3.0'
|
6
6
|
s.licenses = ['Apache-2.0']
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
|
@@ -30,9 +30,6 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.add_dependency 'rest-client'
|
31
31
|
s.add_dependency 'rest-client-components'
|
32
32
|
s.add_dependency 'rack-cache'
|
33
|
-
# Concurrent HTTP requests
|
34
|
-
s.add_dependency 'parallel'
|
35
|
-
s.add_dependency 'ruby-progressbar'
|
36
33
|
# dalli is a memcached ruby client
|
37
34
|
s.add_dependency 'dalli'
|
38
35
|
# Use pry for console and debug config
|
data/bin/dms.rb
CHANGED
@@ -178,8 +178,7 @@ text_annotations.each_pair do |m,anno_lists|
|
|
178
178
|
anno_lists.each_pair do |anno_list_uri, anno_list|
|
179
179
|
puts "Posting:\t#{anno_list_uri}\t=> #{anno_list.length}"
|
180
180
|
anno_tracking[m][anno_list_uri] = []
|
181
|
-
|
182
|
-
Parallel.each(anno_list, :progress => 'Annotations: ') do |oa|
|
181
|
+
anno_list.each do |oa|
|
183
182
|
response = tc.post_annotation(oa.to_jsonld_oa)
|
184
183
|
# parse the response into an RDF::Graph
|
185
184
|
graph = tc.response2graph(response)
|
@@ -191,8 +190,11 @@ text_annotations.each_pair do |m,anno_lists|
|
|
191
190
|
chars: oa.body_contentChars.first
|
192
191
|
}
|
193
192
|
anno_tracking[m][anno_list_uri].push(anno_data)
|
193
|
+
else
|
194
|
+
CONFIG.logger.error("FAILURE to POST #{oa.id}")
|
194
195
|
end
|
195
196
|
end
|
197
|
+
anno_tracking_save(anno_tracking)
|
196
198
|
end
|
197
199
|
end
|
198
200
|
anno_tracking_save(anno_tracking)
|
data/lib/requires.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: annotations2triannon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darren Weber
|
@@ -136,34 +136,6 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: parallel
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: ruby-progressbar
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :runtime
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
139
|
- !ruby/object:Gem::Dependency
|
168
140
|
name: dalli
|
169
141
|
requirement: !ruby/object:Gem::Requirement
|