ld4l-open_annotation_rdf 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDIxNWE3YzczMDc0NTJhNjRlMzU5OTY1MTU5ZmFjODEyMGNjZTFkYQ==
4
+ MjhjZTlhZWQ0MzNmZWFhZDlhOGRhYjM1YmRhMDg1NjlkMWUwMDUxOA==
5
5
  data.tar.gz: !binary |-
6
- MDM3YmRjM2UwODk0ODhkZWQyMDE4Zjg1Yzc0MDQ3ZjdmNWUyYzdjZQ==
6
+ MDY4NjZhNGQ2OWI2YmYwN2JlNGMyMzhiMjM4YTBiMmJlYWQ4YzYxNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTIyYzRiNjQyYzYzYWMyYTYwMzQ2MGE1M2IyNDc3NTdmZjAwNTE1ZDQxOTdl
10
- Zjk2MjAyNWJlZjM5MTViNWM5ZGUzZTc2YjcyZTJmYzlmYzVjMTFhZjA5MmJl
11
- NWE0MDQ3ODY2NDViNmE3MjEyZjU5MjlmZGFlMDNlYzljMmUwOTA=
9
+ YzllZTI5ZWQ1MzM4YTkzYTc0NTkwYmZkZTUyYzEwOThmY2MxYmNkOGQ5OTU0
10
+ Mjc0NWFlZDc1YTk1OTU1NDU1YTc3MWY3Yzc2MjU4OTkyOGVlOGM3Y2EzM2Q4
11
+ ZTg2Y2E2ZGMyZWUyNWU1ZThkN2RlNzhjYmRkOTlkMDgwNjlhNTk=
12
12
  data.tar.gz: !binary |-
13
- ZmIzMDgzZjI1MjcwYjZhOTk3ZTY2ZjI1ZWIzNmYyMDYyOTA3YjNlMzQzYjQ0
14
- ZjExNzc4ZDZlZWUzZDlmMDQ5MjMxNzRmNmFkMjRmZGM0ZGM5NDU2ZmZhNmM5
15
- ZGMxZGJjMmE4MmNlZWE1NTRhY2QwNzRhZmQ4ZmJiMGIxY2FjYjc=
13
+ N2ZjNGZlMmM3YWY3NTMxNTg3ZWE5ODYxYzBjMGNhMjc3NmZhYWIyOWQ4Mzkx
14
+ ZTVkN2Q4MmE1MDdmZGNkZDJmNzg5ZmEzNzg5NTI1NzM3ZmE3Yzk2ZjRjNDQ0
15
+ OGQ5YTFlNWYwNjhhNWNhYzk4OWIzOTliNjkzYjU4Zjk4MTA0YTM=
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.travis.yml CHANGED
@@ -9,20 +9,4 @@ rvm:
9
9
  - jruby-19mode
10
10
  matrix:
11
11
  allow_failures:
12
- - rvm: jruby-19mode
13
-
14
-
15
-
16
-
17
- ### DID NOT WORK ###
18
-
19
- # Handle git submodules yourself
20
-
21
- git:
22
- submodules: false
23
- # Use sed to replace the SSH URL with the public URL, then initialize submodules
24
- before_install:
25
- - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
26
- - git submodule update --init --recursive
27
-
28
- ### END SECTION THAT DID NOT WORK ###
12
+ - rvm: jruby-19mode
data/Gemfile CHANGED
@@ -2,7 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- # GETTING FROM GEMFILE UNTIL ActiveTriples master CODE IS RELEASED (>0.4.0), THEN MOVE THIS BACK TO *.gemspec FILE
6
- # Use active-triples for handling of triple persistence
7
- gem 'active-triples', :git => 'git@github.com:ActiveTriples/ActiveTriples.git', :branch => 'master'
8
-
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  #LD4L::OpenAnnotationRDF
2
2
 
3
3
  [![Build Status](https://travis-ci.org/ld4l/open_annotation_rdf.png?branch=master)](https://travis-ci.org/ld4l/open_annotation_rdf)
4
- [![Test Coverage](https://img.shields.io/coveralls/ld4l/open_annotation_rdf.svg?branch=master)](https://coveralls.io/r/ld4l/open_annotation_rdf)
4
+ [![Coverage Status](https://coveralls.io/repos/ld4l/open_annotation_rdf/badge.png?branch=master)](https://coveralls.io/r/ld4l/open_annotation_rdf?branch=master)
5
5
  [![Gem Version](https://badge.fury.io/rb/ld4l-open_annotation_rdf.svg)](http://badge.fury.io/rb/ld4l-open_annotation_rdf)
6
6
  [![Dependency Status](https://www.versioneye.com/ruby/ld4l-open_annotation_rdf/0.0.4/badge.svg)](https://www.versioneye.com/ruby/ld4l-open_annotation_rdf/0.0.4)
7
7
 
@@ -122,6 +122,43 @@ puts stb.dump :ttl
122
122
  <http://example.org/term/engineering> a <http://www.w3.org/ns/oa#SemanticTag> .
123
123
  ```
124
124
 
125
+ *Resume annotation of unknown type.*
126
+ ```
127
+ ## Using RDF::URI
128
+ # Create the annotations first using previous examples.
129
+ a1 = LD4L::OpenAnnotationRDF::Annotation.resume(RDF::URI('http://localhost/c10'))
130
+ # => #<LD4L::OpenAnnotationRDF::CommentAnnotation:0x3fdd8267adc8(default)>
131
+
132
+ a2 = LD4L::OpenAnnotationRDF::Annotation.resume(RDF::URI('http://localhost/t10'))
133
+ # => #<LD4L::OpenAnnotationRDF::TagAnnotation:0x3fdd826073f0(default)>
134
+
135
+ a3 = LD4L::OpenAnnotationRDF::Annotation.resume(RDF::URI('http://localhost/st10'))
136
+ # => #<LD4L::OpenAnnotationRDF::SemanticTagAnnotation:0x3fdd8259c7a8(default)>
137
+
138
+
139
+ ## Using string URI
140
+ # Create the annotations first using previous examples.
141
+ a1 = LD4L::OpenAnnotationRDF::Annotation.resume('http://localhost/c10')
142
+ # => #<LD4L::OpenAnnotationRDF::CommentAnnotation:0x3fdd8267adc8(default)>
143
+
144
+ a2 = LD4L::OpenAnnotationRDF::Annotation.resume('http://localhost/t10')
145
+ # => #<LD4L::OpenAnnotationRDF::TagAnnotation:0x3fdd826073f0(default)>
146
+
147
+ a3 = LD4L::OpenAnnotationRDF::Annotation.resume('http://localhost/st10')
148
+ # => #<LD4L::OpenAnnotationRDF::SemanticTagAnnotation:0x3fdd8259c7a8(default)>
149
+
150
+
151
+ ## Using localname expanded using configured base_uri
152
+ # Create the annotations first using previous examples.
153
+ a1 = LD4L::OpenAnnotationRDF::Annotation.resume('c10')
154
+ # => #<LD4L::OpenAnnotationRDF::CommentAnnotation:0x3fdd8267adc8(default)>
155
+
156
+ a2 = LD4L::OpenAnnotationRDF::Annotation.resume('t10')
157
+ # => #<LD4L::OpenAnnotationRDF::TagAnnotation:0x3fdd826073f0(default)>
158
+
159
+ a3 = LD4L::OpenAnnotationRDF::Annotation.resume('st10')
160
+ # => #<LD4L::OpenAnnotationRDF::SemanticTagAnnotation:0x3fdd8259c7a8(default)>
161
+ ```
125
162
 
126
163
  ### Configurations
127
164
 
@@ -23,9 +23,7 @@ Gem::Specification.new do |spec|
23
23
  # spec.add_dependency('ffi', '~> 1.9.5')
24
24
  spec.add_dependency('rdf', '~> 1.1')
25
25
 
26
- # GETTING FROM GEMFILE UNTIL ActiveTriples master CODE IS RELEASED (>0.4.0), THEN MOVE THIS BACK TO *.gemspec FILE
27
- # spec.add_dependency('active-triples', '~> 0.4')
28
-
26
+ spec.add_dependency('active-triples', '~> 0.5')
29
27
  spec.add_dependency('active_triples-local_name', '~> 0.1')
30
28
  spec.add_dependency('ld4l-foaf_rdf', '~> 0.0')
31
29
 
@@ -34,6 +32,7 @@ Gem::Specification.new do |spec|
34
32
  # spec.add_development_dependency('pry-debugger') # Works with ruby < 2
35
33
  spec.add_development_dependency('rdoc')
36
34
  spec.add_development_dependency('rspec')
35
+ spec.add_development_dependency('coveralls')
37
36
  spec.add_development_dependency('guard-rspec')
38
37
  spec.add_development_dependency('webmock')
39
38
 
@@ -14,34 +14,31 @@ module LD4L
14
14
  property :hasTarget, :predicate => RDFVocabularies::OA.hasTarget # :type => URI
15
15
  property :hasBody, :predicate => RDFVocabularies::OA.hasBody
16
16
  property :annotatedBy, :predicate => RDFVocabularies::OA.annotatedBy, :class_name => LD4L::FoafRDF::Person
17
- property :annotatedAt, :predicate => RDFVocabularies::OA.annotatedAt # :type => xsd:dateTime # the time Annotation was created
18
- property :motivatedBy, :predicate => RDFVocabularies::OA.motivatedBy # comes from RDFVocabularies::OA ontology
17
+ property :annotatedAt, :predicate => RDFVocabularies::OA.annotatedAt, :cast => false # :type => xsd:dateTime # the time Annotation was created
18
+ property :motivatedBy, :predicate => RDFVocabularies::OA.motivatedBy, :cast => false # comes from RDFVocabularies::OA ontology
19
19
 
20
- def self.resume(*args)
21
- return nil unless args.kind_of?(Array) && args.size > 0 && args.first.kind_of?(RDF::URI)
22
-
23
- rdf_subject = args.first
24
- a = new(rdf_subject)
20
+ def self.resume(uri_or_str)
21
+ # Let ActiveTriples::Resource validate uri_or_str when creating new Annotation
22
+ a = new(uri_or_str)
25
23
 
26
24
  # get motivatedBy
27
25
  m = a.get_values(:motivatedBy)
28
- return a unless m.kind_of?(Array) && m.size > 0 && m.first.kind_of?(ActiveTriples::Resource)
26
+ return a unless m.kind_of?(Array) && m.size > 0 && m.first.kind_of?(RDF::Vocabulary::Term)
29
27
 
30
28
  # motivatedBy is set
31
- m_uri = m.first.rdf_subject
32
-
29
+ m_uri = m.first
33
30
  # currently only support commenting and tagging
34
- return LD4L::OpenAnnotationRDF::CommentAnnotation.new(rdf_subject) if m_uri == RDFVocabularies::OA.commenting
31
+ return LD4L::OpenAnnotationRDF::CommentAnnotation.new(uri_or_str) if m_uri == RDFVocabularies::OA.commenting
35
32
  return a unless m_uri == RDFVocabularies::OA.tagging
36
33
 
37
34
  # Tagging can be TagAnnotation or SemanticTagAnnotation. Only way to tell is by checking type of body.
38
- sta = LD4L::OpenAnnotationRDF::SemanticTagAnnotation.new(rdf_subject)
35
+ sta = LD4L::OpenAnnotationRDF::SemanticTagAnnotation.new(uri_or_str)
39
36
  stb = sta.getBody
40
- return sta if stb.type.include?(RDFVocabularies::OA.SemanticTag)
37
+ return sta if stb.type.include?(RDFVocabularies::OA.SemanticTag)
41
38
 
42
- ta = LD4L::OpenAnnotationRDF::TagAnnotation.new(rdf_subject)
39
+ ta = LD4L::OpenAnnotationRDF::TagAnnotation.new(uri_or_str)
43
40
  tb = ta.getBody
44
- return ta if tb.type.include?(RDFVocabularies::OA.Tag)
41
+ return ta if tb.type.include?(RDFVocabularies::OA.Tag)
45
42
 
46
43
  # can't match to a known annotation type, so return as generic annotation
47
44
  return a
@@ -9,8 +9,8 @@ module LD4L
9
9
  :base_uri => LD4L::OpenAnnotationRDF.configuration.base_uri,
10
10
  :repository => :default
11
11
 
12
- property :content, :predicate => RDFVocabularies::CNT.chars # :type => XSD.string
13
- property :format, :predicate => RDF::DC.format # :type => XSD.string
12
+ property :content, :predicate => RDFVocabularies::CNT.chars, :cast => true # :type => XSD.string
13
+ property :format, :predicate => RDF::DC.format, :cast => true # :type => XSD.string
14
14
 
15
15
  def initialize(*args)
16
16
  super(*args)
@@ -9,7 +9,7 @@ module LD4L
9
9
  :base_uri => LD4L::OpenAnnotationRDF.configuration.base_uri,
10
10
  :repository => :default
11
11
 
12
- property :tag, :predicate => RDFVocabularies::CNT.chars # :type => XSD.string
12
+ property :tag, :predicate => RDFVocabularies::CNT.chars, :cast => false # :type => XSD.string
13
13
 
14
14
  ##
15
15
  # Get a list of annotations using the tag value.
@@ -1,5 +1,5 @@
1
1
  module LD4L
2
2
  module OpenAnnotationRDF
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -151,13 +151,13 @@ describe 'LD4L::OpenAnnotationRDF::Annotation' do
151
151
 
152
152
  it "should be settable" do
153
153
  subject.motivatedBy = RDFVocabularies::OA.describing
154
- expect(subject.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.describing
154
+ expect(subject.motivatedBy.first).to eq RDFVocabularies::OA.describing
155
155
  end
156
156
 
157
157
  it "should be changeable" do
158
158
  subject.motivatedBy = RDFVocabularies::OA.describing
159
159
  subject.motivatedBy = RDFVocabularies::OA.classifying
160
- expect(subject.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.classifying
160
+ expect(subject.motivatedBy.first).to eq RDFVocabularies::OA.classifying
161
161
  end
162
162
  end
163
163
 
@@ -189,7 +189,7 @@ describe 'LD4L::OpenAnnotationRDF::Annotation' do
189
189
  expect(a.hasTarget.first.rdf_subject.to_s).to eq "http://example.org/bibref/br3"
190
190
  expect(a.annotatedBy.first).to eq a_person
191
191
  expect(a.annotatedAt.first).to eq a_time
192
- expect(a.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.commenting
192
+ expect(a.motivatedBy.first).to eq RDFVocabularies::OA.commenting
193
193
 
194
194
  b = a.getBody
195
195
  expect(b).to be_a_kind_of(LD4L::OpenAnnotationRDF::CommentBody)
@@ -215,7 +215,7 @@ describe 'LD4L::OpenAnnotationRDF::Annotation' do
215
215
  expect(a.hasTarget.first.rdf_subject.to_s).to eq "http://example.org/bibref/br3"
216
216
  expect(a.annotatedBy.first).to eq a_person
217
217
  expect(a.annotatedAt.first).to eq a_time
218
- expect(a.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.tagging
218
+ expect(a.motivatedBy.first).to eq RDFVocabularies::OA.tagging
219
219
 
220
220
  b = a.getBody
221
221
  expect(b).to be_a_kind_of(LD4L::OpenAnnotationRDF::TagBody)
@@ -240,7 +240,7 @@ describe 'LD4L::OpenAnnotationRDF::Annotation' do
240
240
  expect(a.hasTarget.first.rdf_subject.to_s).to eq "http://example.org/bibref/br3"
241
241
  expect(a.annotatedBy.first).to eq a_person
242
242
  expect(a.annotatedAt.first).to eq a_time
243
- expect(a.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.tagging
243
+ expect(a.motivatedBy.first).to eq RDFVocabularies::OA.tagging
244
244
 
245
245
  b = a.getBody
246
246
  expect(b).to be_a_kind_of(LD4L::OpenAnnotationRDF::SemanticTagBody)
@@ -293,7 +293,7 @@ describe 'LD4L::OpenAnnotationRDF::Annotation' do
293
293
  end
294
294
 
295
295
  it "should reset the motivatedBy" do
296
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
296
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
297
297
  end
298
298
 
299
299
  it "should be persisted" do
@@ -325,7 +325,7 @@ describe 'LD4L::OpenAnnotationRDF::Annotation' do
325
325
 
326
326
  it "should delete from the repository" do
327
327
  subject.reload
328
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
328
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
329
329
  subject.motivatedBy = []
330
330
  expect(subject.motivatedBy).to eq []
331
331
  subject.persist!
@@ -154,18 +154,18 @@ describe 'LD4L::OpenAnnotationRDF::CommentAnnotation' do
154
154
 
155
155
  describe 'motivatedBy' do
156
156
  it "should be OA.commenting if we haven't set it" do
157
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting
157
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting
158
158
  end
159
159
 
160
160
  it "should be settable" do
161
161
  subject.motivatedBy = RDFVocabularies::OA.describing
162
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.describing
162
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.describing
163
163
  end
164
164
 
165
165
  it "should be changeable" do
166
166
  subject.motivatedBy = RDFVocabularies::OA.describing
167
167
  subject.motivatedBy = RDFVocabularies::OA.classifying
168
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.classifying
168
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.classifying
169
169
  end
170
170
  end
171
171
 
@@ -220,7 +220,7 @@ describe 'LD4L::OpenAnnotationRDF::CommentAnnotation' do
220
220
  end
221
221
 
222
222
  it "should reset the motivatedBy" do
223
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
223
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
224
224
  end
225
225
 
226
226
  it "should be persisted" do
@@ -252,7 +252,7 @@ describe 'LD4L::OpenAnnotationRDF::CommentAnnotation' do
252
252
 
253
253
  it "should delete from the repository" do
254
254
  subject.reload
255
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
255
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
256
256
  subject.motivatedBy = []
257
257
  expect(subject.motivatedBy).to eq []
258
258
  subject.persist!
@@ -212,18 +212,18 @@ describe 'LD4L::OpenAnnotationRDF::SemanticTagAnnotation' do
212
212
 
213
213
  describe 'motivatedBy' do
214
214
  it "should be OA.tagging if we haven't set it" do
215
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.tagging
215
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.tagging
216
216
  end
217
217
 
218
218
  it "should be settable" do
219
219
  subject.motivatedBy = RDFVocabularies::OA.describing
220
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.describing
220
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.describing
221
221
  end
222
222
 
223
223
  it "should be changeable" do
224
224
  subject.motivatedBy = RDFVocabularies::OA.describing
225
225
  subject.motivatedBy = RDFVocabularies::OA.classifying
226
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.classifying
226
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.classifying
227
227
  end
228
228
  end
229
229
 
@@ -278,7 +278,7 @@ describe 'LD4L::OpenAnnotationRDF::SemanticTagAnnotation' do
278
278
  end
279
279
 
280
280
  it "should reset the motivatedBy" do
281
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
281
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
282
282
  end
283
283
 
284
284
  it "should be persisted" do
@@ -310,7 +310,7 @@ describe 'LD4L::OpenAnnotationRDF::SemanticTagAnnotation' do
310
310
 
311
311
  it "should delete from the repository" do
312
312
  subject.reload
313
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
313
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
314
314
  subject.motivatedBy = []
315
315
  expect(subject.motivatedBy).to eq []
316
316
  subject.persist!
@@ -264,18 +264,18 @@ describe 'LD4L::OpenAnnotationRDF::TagAnnotation' do
264
264
 
265
265
  describe 'motivatedBy' do
266
266
  it "should be OA.tagging if we haven't set it" do
267
- expect(subject.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.tagging
267
+ expect(subject.motivatedBy.first).to eq RDFVocabularies::OA.tagging
268
268
  end
269
269
 
270
270
  it "should be settable" do
271
271
  subject.motivatedBy = RDFVocabularies::OA.describing
272
- expect(subject.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.describing
272
+ expect(subject.motivatedBy.first).to eq RDFVocabularies::OA.describing
273
273
  end
274
274
 
275
275
  it "should be changeable" do
276
276
  subject.motivatedBy = RDFVocabularies::OA.describing
277
277
  subject.motivatedBy = RDFVocabularies::OA.classifying
278
- expect(subject.motivatedBy.first.rdf_subject).to eq RDFVocabularies::OA.classifying
278
+ expect(subject.motivatedBy.first).to eq RDFVocabularies::OA.classifying
279
279
  end
280
280
  end
281
281
 
@@ -330,7 +330,7 @@ describe 'LD4L::OpenAnnotationRDF::TagAnnotation' do
330
330
  end
331
331
 
332
332
  it "should reset the motivatedBy" do
333
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
333
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
334
334
  end
335
335
 
336
336
  it "should be persisted" do
@@ -362,7 +362,7 @@ describe 'LD4L::OpenAnnotationRDF::TagAnnotation' do
362
362
 
363
363
  it "should delete from the repository" do
364
364
  subject.reload
365
- expect(subject.motivatedBy.first.rdf_subject.to_s).to eq RDFVocabularies::OA.commenting.to_s
365
+ expect(subject.motivatedBy.first.to_s).to eq RDFVocabularies::OA.commenting.to_s
366
366
  subject.motivatedBy = []
367
367
  expect(subject.motivatedBy).to eq []
368
368
  subject.persist!
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'bundler/setup'
2
5
  Bundler.setup
3
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ld4l-open_annotation_rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - E. Lynette Rayle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-08 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: active-triples
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0.5'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: active_triples-local_name
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,20 @@ dependencies:
94
108
  - - ! '>='
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: coveralls
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: guard-rspec
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -132,6 +160,7 @@ extra_rdoc_files:
132
160
  - LICENSE.txt
133
161
  - README.md
134
162
  files:
163
+ - .coveralls.yml
135
164
  - .gitignore
136
165
  - .travis.yml
137
166
  - Gemfile