ld4l-ore_rdf 0.1.0 → 0.2.0

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.
@@ -29,7 +29,7 @@ describe 'LD4L::OreRDF::FindAggregations' do
29
29
  [RDF::URI("http://example.org/individual/b11"),
30
30
  RDF::URI("http://example.org/individual/b12"),
31
31
  RDF::URI("http://example.org/individual/b13")])
32
- LD4L::OreRDF::PersistAggregation.call(ag1)
32
+ LD4L::OreRDF::PersistAggregation.call(ag1,false)
33
33
  end
34
34
  after do
35
35
  ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
@@ -56,7 +56,7 @@ describe 'LD4L::OreRDF::FindAggregations' do
56
56
  [RDF::URI("http://example.org/individual/b11"),
57
57
  RDF::URI("http://example.org/individual/b12"),
58
58
  RDF::URI("http://example.org/individual/b13")])
59
- LD4L::OreRDF::PersistAggregation.call(ag1)
59
+ LD4L::OreRDF::PersistAggregation.call(ag1,false)
60
60
 
61
61
  ag2 = LD4L::OreRDF::CreateAggregation.call(
62
62
  id: "http::/example.org/ag2",
@@ -68,7 +68,7 @@ describe 'LD4L::OreRDF::FindAggregations' do
68
68
  [RDF::URI("http://example.org/individual/b21"),
69
69
  RDF::URI("http://example.org/individual/b22"),
70
70
  RDF::URI("http://example.org/individual/b23")])
71
- LD4L::OreRDF::PersistAggregation.call(ag2)
71
+ LD4L::OreRDF::PersistAggregation.call(ag2,false)
72
72
 
73
73
  ag3 = LD4L::OreRDF::CreateAggregation.call(
74
74
  id: "http::/example.org/ag3",
@@ -80,7 +80,7 @@ describe 'LD4L::OreRDF::FindAggregations' do
80
80
  [RDF::URI("http://example.org/individual/b31"),
81
81
  RDF::URI("http://example.org/individual/b32"),
82
82
  RDF::URI("http://example.org/individual/b33")])
83
- LD4L::OreRDF::PersistAggregation.call(ag3)
83
+ LD4L::OreRDF::PersistAggregation.call(ag3,false)
84
84
  end
85
85
  after do
86
86
  ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
@@ -175,12 +175,12 @@ describe 'LD4L::OreRDF::FindAggregations' do
175
175
  context "when arguments are invalid" do
176
176
  it "should raise error when repository isn't a symbol" do
177
177
  expect{ LD4L::OreRDF::FindAggregations.call(:repository => 'BAD VALUE') }.to raise_error(
178
- ArgumentError,'repository must be a symbol')
178
+ ArgumentError,'repository (BAD VALUE) is not a symbol')
179
179
  end
180
180
 
181
181
  it "should raise error when repository is a symbol, but isn't a registered repository" do
182
182
  expect{ LD4L::OreRDF::FindAggregations.call(:repository => :nonexistent_repo) }.to raise_error(
183
- ArgumentError,'repository must be a registered repository')
183
+ ArgumentError,'repository (nonexistent_repo) is not a registered repository')
184
184
  end
185
185
 
186
186
  it "should raise error when resume is other than true or false" do
@@ -30,10 +30,10 @@ describe 'LD4L::OreRDF::CreateProxy' do
30
30
  proxy = LD4L::OreRDF::CreateProxy.call(
31
31
  resource: RDF::URI("http://example.org/individual/b1"),
32
32
  aggregation: aggregation)
33
- expect(proxy.proxy_for.first).to eq "http://example.org/individual/b1"
34
- expect(proxy.proxy_in.first).to eq aggregation.aggregation_resource
35
- expect(proxy.next_proxy).to eq []
36
- expect(proxy.prev_proxy).to eq []
33
+ expect(proxy.proxy_for_.first).to eq "http://example.org/individual/b1"
34
+ expect(proxy.proxy_in_.first).to eq aggregation.aggregation_resource
35
+ expect(proxy.next_proxy_).to eq []
36
+ expect(proxy.prev_proxy_).to eq []
37
37
  # expect(proxy.contentContent.first.rdf_subject.to_s).to eq "http://example.org/individual/b1"
38
38
  # expect(proxy.index).to eq []
39
39
  # expect(proxy.nextItem).to eq []
@@ -58,10 +58,10 @@ describe 'LD4L::OreRDF::CreateProxy' do
58
58
  id: "123",
59
59
  resource: RDF::URI("http://example.org/individual/b1"),
60
60
  aggregation: aggregation)
61
- expect(proxy.proxy_for.first).to eq "http://example.org/individual/b1"
62
- expect(proxy.proxy_in.first).to eq aggregation.aggregation_resource
63
- expect(proxy.next_proxy).to eq []
64
- expect(proxy.prev_proxy).to eq []
61
+ expect(proxy.proxy_for_.first).to eq "http://example.org/individual/b1"
62
+ expect(proxy.proxy_in_.first).to eq aggregation.aggregation_resource
63
+ expect(proxy.next_proxy_).to eq []
64
+ expect(proxy.prev_proxy_).to eq []
65
65
  # expect(proxy.contentContent.first.rdf_subject.to_s).to eq "http://example.org/individual/b1"
66
66
  # expect(proxy.index).to eq []
67
67
  # expect(proxy.nextItem).to eq []
@@ -86,10 +86,10 @@ describe 'LD4L::OreRDF::CreateProxy' do
86
86
  id: "http://example.org/individual/ag123",
87
87
  resource: RDF::URI("http://example.org/individual/b1"),
88
88
  aggregation: aggregation)
89
- expect(proxy.proxy_for.first).to eq "http://example.org/individual/b1"
90
- expect(proxy.proxy_in.first).to eq aggregation.aggregation_resource
91
- expect(proxy.next_proxy).to eq []
92
- expect(proxy.prev_proxy).to eq []
89
+ expect(proxy.proxy_for_.first).to eq "http://example.org/individual/b1"
90
+ expect(proxy.proxy_in_.first).to eq aggregation.aggregation_resource
91
+ expect(proxy.next_proxy_).to eq []
92
+ expect(proxy.prev_proxy_).to eq []
93
93
  # expect(proxy.itemContent.first.rdf_subject.to_s).to eq "http://example.org/individual/b1"
94
94
  # expect(proxy.index).to eq []
95
95
  # expect(proxy.nextItem).to eq []
@@ -28,7 +28,7 @@ describe 'LD4L::OreRDF::FindProxies' do
28
28
  LD4L::OreRDF::AddAggregatedResources.call(
29
29
  ag1,
30
30
  [RDF::URI("http://example.org/individual/b11")])
31
- LD4L::OreRDF::PersistAggregation.call(ag1)
31
+ LD4L::OreRDF::PersistAggregation.call(ag1,false)
32
32
  end
33
33
  after do
34
34
  ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
@@ -40,8 +40,8 @@ describe 'LD4L::OreRDF::FindProxies' do
40
40
  expect(proxies.size).to eq 1
41
41
  expect(proxies.first).to be_a_kind_of RDF::URI
42
42
  pr = LD4L::OreRDF::ProxyResource.new(proxies.first)
43
- expect(pr.proxy_in.first.rdf_subject.to_s).to eq "http::/example.org/ag1"
44
- expect(pr.proxy_for.first).to eq "http://example.org/individual/b11"
43
+ expect(pr.proxy_in_.first.rdf_subject.to_s).to eq "http::/example.org/ag1"
44
+ expect(pr.proxy_for_.first).to eq "http://example.org/individual/b11"
45
45
  end
46
46
  end
47
47
 
@@ -60,7 +60,7 @@ describe 'LD4L::OreRDF::FindProxies' do
60
60
  [RDF::URI("http://example.org/individual/b11"),
61
61
  RDF::URI("http://example.org/individual/b12"),
62
62
  RDF::URI("http://example.org/individual/b13")])
63
- LD4L::OreRDF::PersistAggregation.call(ag1)
63
+ LD4L::OreRDF::PersistAggregation.call(ag1,false)
64
64
 
65
65
  ag2 = LD4L::OreRDF::CreateAggregation.call(
66
66
  id: "http::/example.org/ag2",
@@ -72,7 +72,7 @@ describe 'LD4L::OreRDF::FindProxies' do
72
72
  [RDF::URI("http://example.org/individual/b21"),
73
73
  RDF::URI("http://example.org/individual/b22"),
74
74
  RDF::URI("http://example.org/individual/b23")])
75
- LD4L::OreRDF::PersistAggregation.call(ag2)
75
+ LD4L::OreRDF::PersistAggregation.call(ag2,false)
76
76
 
77
77
  ag3 = LD4L::OreRDF::CreateAggregation.call(
78
78
  id: "http::/example.org/ag3",
@@ -84,7 +84,7 @@ describe 'LD4L::OreRDF::FindProxies' do
84
84
  [RDF::URI("http://example.org/individual/b31"),
85
85
  RDF::URI("http://example.org/individual/b32"),
86
86
  RDF::URI("http://example.org/individual/b33")])
87
- LD4L::OreRDF::PersistAggregation.call(ag3)
87
+ LD4L::OreRDF::PersistAggregation.call(ag3,false)
88
88
  end
89
89
  after do
90
90
  ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
@@ -112,8 +112,8 @@ describe 'LD4L::OreRDF::FindProxies' do
112
112
  expect(proxies.size).to eq 1
113
113
  expect(proxies.first).to be_a_kind_of RDF::URI
114
114
  pr = LD4L::OreRDF::ProxyResource.new(proxies.first)
115
- expect(pr.proxy_for.first).to eq "http://example.org/individual/b22"
116
- expect(pr.proxy_in.first.rdf_subject).to eq RDF::URI("http::/example.org/ag2")
115
+ expect(pr.proxy_for_.first).to eq "http://example.org/individual/b22"
116
+ expect(pr.proxy_in_.first.rdf_subject).to eq RDF::URI("http::/example.org/ag2")
117
117
  end
118
118
 
119
119
  it "should find all proxies for aggregation" do
@@ -124,8 +124,8 @@ describe 'LD4L::OreRDF::FindProxies' do
124
124
  proxies.each do |p|
125
125
  expect(p).to be_a_kind_of RDF::URI
126
126
  pr = LD4L::OreRDF::ProxyResource.new(p)
127
- proxy_for << pr.proxy_for.first
128
- expect(pr.proxy_in.first.rdf_subject).to eq RDF::URI("http::/example.org/ag3")
127
+ proxy_for << pr.proxy_for_.first
128
+ expect(pr.proxy_in_.first.rdf_subject).to eq RDF::URI("http::/example.org/ag3")
129
129
  end
130
130
  expect(proxy_for).to include "http://example.org/individual/b31"
131
131
  expect(proxy_for).to include "http://example.org/individual/b32"
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  describe "LD4L::OreRDF" do
4
4
  after(:all) do
5
- ActiveTriples::RDFSource.type_registry.keys.each { |k| ActiveTriples::RDFSource.type_registry.delete(k) } if Object.const_defined?("ActiveTriples::RDFSource")
5
+ ActiveTriples::RDFSource.type_registry.keys.each { |k| ActiveTriples::RDFSource.type_registry.delete(k) } if Object::ActiveTriples.const_defined?("RDFSource")
6
6
  end
7
7
 
8
8
  describe "#configure" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ld4l-ore_rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
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: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -28,70 +28,72 @@ dependencies:
28
28
  name: active-triples
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.5'
34
- - - "~>"
35
- - !ruby/object:Gem::Version
36
- version: '0.6'
37
- - - "~>"
31
+ - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: 0.8.2
33
+ version: '0'
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
- - - "~>"
38
+ - - ">="
45
39
  - !ruby/object:Gem::Version
46
- version: '0.5'
47
- - - "~>"
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: active_triples-local_name
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
48
46
  - !ruby/object:Gem::Version
49
- version: '0.6'
50
- - - "~>"
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
51
53
  - !ruby/object:Gem::Version
52
- version: 0.8.2
54
+ version: '0'
53
55
  - !ruby/object:Gem::Dependency
54
- name: active_triples-local_name
56
+ name: active_triples-solrizer
55
57
  requirement: !ruby/object:Gem::Requirement
56
58
  requirements:
57
- - - "~>"
59
+ - - ">="
58
60
  - !ruby/object:Gem::Version
59
- version: '0.1'
61
+ version: '0'
60
62
  type: :runtime
61
63
  prerelease: false
62
64
  version_requirements: !ruby/object:Gem::Requirement
63
65
  requirements:
64
- - - "~>"
66
+ - - ">="
65
67
  - !ruby/object:Gem::Version
66
- version: '0.1'
68
+ version: '0'
67
69
  - !ruby/object:Gem::Dependency
68
70
  name: ld4l-foaf_rdf
69
71
  requirement: !ruby/object:Gem::Requirement
70
72
  requirements:
71
- - - "~>"
73
+ - - ">="
72
74
  - !ruby/object:Gem::Version
73
- version: '0.0'
75
+ version: '0'
74
76
  type: :runtime
75
77
  prerelease: false
76
78
  version_requirements: !ruby/object:Gem::Requirement
77
79
  requirements:
78
- - - "~>"
80
+ - - ">="
79
81
  - !ruby/object:Gem::Version
80
- version: '0.0'
82
+ version: '0'
81
83
  - !ruby/object:Gem::Dependency
82
84
  name: doubly_linked_list
83
85
  requirement: !ruby/object:Gem::Requirement
84
86
  requirements:
85
- - - "~>"
87
+ - - ">="
86
88
  - !ruby/object:Gem::Version
87
- version: '0.0'
89
+ version: '0'
88
90
  type: :runtime
89
91
  prerelease: false
90
92
  version_requirements: !ruby/object:Gem::Requirement
91
93
  requirements:
92
- - - "~>"
94
+ - - ">="
93
95
  - !ruby/object:Gem::Version
94
- version: '0.0'
96
+ version: '0'
95
97
  - !ruby/object:Gem::Dependency
96
98
  name: pry
97
99
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +222,7 @@ files:
220
222
  - lib/ld4l/ore_rdf/services/aggregation/destroy.rb
221
223
  - lib/ld4l/ore_rdf/services/aggregation/destroy_with_id.rb
222
224
  - lib/ld4l/ore_rdf/services/aggregation/find.rb
225
+ - lib/ld4l/ore_rdf/services/aggregation/load_from_solr.rb
223
226
  - lib/ld4l/ore_rdf/services/aggregation/persist.rb
224
227
  - lib/ld4l/ore_rdf/services/aggregation/resume.rb
225
228
  - lib/ld4l/ore_rdf/services/proxy/create.rb
@@ -264,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
267
  version: '0'
265
268
  requirements: []
266
269
  rubyforge_project:
267
- rubygems_version: 2.2.2
270
+ rubygems_version: 2.4.5
268
271
  signing_key:
269
272
  specification_version: 4
270
273
  summary: ORE RDF models.
@@ -284,4 +287,3 @@ test_files:
284
287
  - spec/ld4l/ore_rdf/services/proxy/find_spec.rb
285
288
  - spec/ld4l/ore_rdf_spec.rb
286
289
  - spec/spec_helper.rb
287
- has_rdoc: