ld4l-ore_rdf 0.0.4
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 +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +25 -0
- data/.travis.yml +12 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +14 -0
- data/README.md +171 -0
- data/Rakefile +2 -0
- data/ld4l-ore_rdf.gemspec +45 -0
- data/lib/ld4l/ore_rdf/configuration.rb +41 -0
- data/lib/ld4l/ore_rdf/models/aggregation.rb +50 -0
- data/lib/ld4l/ore_rdf/models/aggregation_resource.rb +98 -0
- data/lib/ld4l/ore_rdf/models/proxy_resource.rb +54 -0
- data/lib/ld4l/ore_rdf/services/aggregation/add_aggregated_resource.rb +49 -0
- data/lib/ld4l/ore_rdf/services/aggregation/add_aggregated_resources.rb +28 -0
- data/lib/ld4l/ore_rdf/services/aggregation/create.rb +39 -0
- data/lib/ld4l/ore_rdf/services/aggregation/destroy.rb +47 -0
- data/lib/ld4l/ore_rdf/services/aggregation/destroy_with_id.rb +22 -0
- data/lib/ld4l/ore_rdf/services/aggregation/find.rb +72 -0
- data/lib/ld4l/ore_rdf/services/aggregation/persist.rb +34 -0
- data/lib/ld4l/ore_rdf/services/aggregation/resume.rb +30 -0
- data/lib/ld4l/ore_rdf/services/proxy/create.rb +64 -0
- data/lib/ld4l/ore_rdf/services/proxy/find.rb +93 -0
- data/lib/ld4l/ore_rdf/version.rb +5 -0
- data/lib/ld4l/ore_rdf/vocab/co.rb +27 -0
- data/lib/ld4l/ore_rdf/vocab/dcterms.rb +6 -0
- data/lib/ld4l/ore_rdf/vocab/iana.rb +9 -0
- data/lib/ld4l/ore_rdf/vocab/ore.rb +16 -0
- data/lib/ld4l/ore_rdf.rb +76 -0
- data/spec/ld4l/ore_rdf/configuration_spec.rb +174 -0
- data/spec/ld4l/ore_rdf/models/aggregation_resource_spec.rb +830 -0
- data/spec/ld4l/ore_rdf/models/aggregation_spec.rb +9 -0
- data/spec/ld4l/ore_rdf/models/proxy_resource_spec.rb +690 -0
- data/spec/ld4l/ore_rdf/services/aggregation/add_aggregated_resource_spec.rb +36 -0
- data/spec/ld4l/ore_rdf/services/aggregation/add_aggregated_resources_spec.rb +78 -0
- data/spec/ld4l/ore_rdf/services/aggregation/create_spec.rb +62 -0
- data/spec/ld4l/ore_rdf/services/aggregation/destroy_spec.rb +169 -0
- data/spec/ld4l/ore_rdf/services/aggregation/find_spec.rb +198 -0
- data/spec/ld4l/ore_rdf/services/aggregation/persist_spec.rb +13 -0
- data/spec/ld4l/ore_rdf/services/aggregation/resume_spec.rb +46 -0
- data/spec/ld4l/ore_rdf/services/proxy/create_spec.rb +143 -0
- data/spec/ld4l/ore_rdf/services/proxy/find_spec.rb +138 -0
- data/spec/ld4l/ore_rdf_spec.rb +53 -0
- data/spec/spec_helper.rb +23 -0
- metadata +259 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'LD4L::OreRDF::ResumeAggregation' do
|
4
|
+
|
5
|
+
describe "#call" do
|
6
|
+
|
7
|
+
xit "should have tests -- SO WRITE SOME" do
|
8
|
+
|
9
|
+
end
|
10
|
+
|
11
|
+
context "when aggregation hasn't been persisted" do
|
12
|
+
xit "should return nil" do
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
context "when aggregation doesn't have proxies" do
|
19
|
+
xit "should resume aggregation resource into aggregation and return it" do
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
context "when aggregation has proxies" do
|
27
|
+
context "and all parts are persisted" do
|
28
|
+
xit "should resume aggregation resource and all proxy resources into aggregation and return it" do
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
context "and some proxies are persisted" do
|
34
|
+
xit "should resume aggregation resource and persisted proxies into aggregation and return it" do
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
context "and no proxies are persisted" do
|
40
|
+
xit "should resume aggregation resource into aggregation and return it" do
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,143 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'LD4L::OreRDF::CreateProxy' do
|
4
|
+
|
5
|
+
describe "#call" do
|
6
|
+
it "should create a LD4L::OreRDF::ProxyResource instance" do
|
7
|
+
aggregation = LD4L::OreRDF::Aggregation.new
|
8
|
+
proxy = LD4L::OreRDF::CreateProxy.call(
|
9
|
+
resource: RDF::URI("http://example.org/individual/b1"),
|
10
|
+
aggregation: aggregation)
|
11
|
+
expect(proxy).to be_kind_of LD4L::OreRDF::ProxyResource
|
12
|
+
end
|
13
|
+
|
14
|
+
context "when id is not passed in" do
|
15
|
+
it "should generate an id with random ending" do
|
16
|
+
aggregation = LD4L::OreRDF::Aggregation.new
|
17
|
+
proxy = LD4L::OreRDF::CreateProxy.call(
|
18
|
+
resource: RDF::URI("http://example.org/individual/b1"),
|
19
|
+
aggregation: aggregation)
|
20
|
+
uri = proxy.rdf_subject.to_s
|
21
|
+
expect(uri).to start_with "#{LD4L::OreRDF::ProxyResource.base_uri}#{LD4L::OreRDF::ProxyResource.localname_prefix}"
|
22
|
+
id = uri[uri.length-36..uri.length]
|
23
|
+
expect(id).to be_kind_of String
|
24
|
+
expect(id.length).to eq 36
|
25
|
+
expect(id).to match /[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should set property values" do
|
29
|
+
aggregation = LD4L::OreRDF::Aggregation.new
|
30
|
+
proxy = LD4L::OreRDF::CreateProxy.call(
|
31
|
+
resource: RDF::URI("http://example.org/individual/b1"),
|
32
|
+
aggregation: aggregation)
|
33
|
+
expect(proxy.proxy_for.first.rdf_subject.to_s).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
|
+
# expect(proxy.contentContent.first.rdf_subject.to_s).to eq "http://example.org/individual/b1"
|
38
|
+
# expect(proxy.index).to eq []
|
39
|
+
# expect(proxy.nextItem).to eq []
|
40
|
+
# expect(proxy.previousItem).to eq []
|
41
|
+
expect(proxy.contributor).to eq []
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context "when partial id is passed in" do
|
46
|
+
it "should generate an id ending with partial id" do
|
47
|
+
aggregation = LD4L::OreRDF::Aggregation.new
|
48
|
+
proxy = LD4L::OreRDF::CreateProxy.call(
|
49
|
+
id: "123",
|
50
|
+
resource: RDF::URI("http://example.org/individual/b1"),
|
51
|
+
aggregation: aggregation)
|
52
|
+
expect(proxy.rdf_subject.to_s).to eq "#{LD4L::OreRDF::ProxyResource.base_uri}123"
|
53
|
+
end
|
54
|
+
|
55
|
+
it "should set property values" do
|
56
|
+
aggregation = LD4L::OreRDF::Aggregation.new
|
57
|
+
proxy = LD4L::OreRDF::CreateProxy.call(
|
58
|
+
id: "123",
|
59
|
+
resource: RDF::URI("http://example.org/individual/b1"),
|
60
|
+
aggregation: aggregation)
|
61
|
+
expect(proxy.proxy_for.first.rdf_subject.to_s).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
|
+
# expect(proxy.contentContent.first.rdf_subject.to_s).to eq "http://example.org/individual/b1"
|
66
|
+
# expect(proxy.index).to eq []
|
67
|
+
# expect(proxy.nextItem).to eq []
|
68
|
+
# expect(proxy.previousItem).to eq []
|
69
|
+
expect(proxy.contributor).to eq []
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
context "when URI id is passed in" do
|
74
|
+
it "should use passed in id" do
|
75
|
+
aggregation = LD4L::OreRDF::Aggregation.new
|
76
|
+
proxy = LD4L::OreRDF::CreateProxy.call(
|
77
|
+
id: "http://example.org/individual/ag123",
|
78
|
+
resource: RDF::URI("http://example.org/individual/b1"),
|
79
|
+
aggregation: aggregation)
|
80
|
+
expect(proxy.rdf_subject.to_s).to eq "http://example.org/individual/ag123"
|
81
|
+
end
|
82
|
+
|
83
|
+
it "should set property values" do
|
84
|
+
aggregation = LD4L::OreRDF::Aggregation.new
|
85
|
+
proxy = LD4L::OreRDF::CreateProxy.call(
|
86
|
+
id: "http://example.org/individual/ag123",
|
87
|
+
resource: RDF::URI("http://example.org/individual/b1"),
|
88
|
+
aggregation: aggregation)
|
89
|
+
expect(proxy.proxy_for.first.rdf_subject.to_s).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
|
+
# expect(proxy.itemContent.first.rdf_subject.to_s).to eq "http://example.org/individual/b1"
|
94
|
+
# expect(proxy.index).to eq []
|
95
|
+
# expect(proxy.nextItem).to eq []
|
96
|
+
# expect(proxy.previousItem).to eq []
|
97
|
+
expect(proxy.contributor).to eq []
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
context "when collection is unordered" do
|
102
|
+
context "and insert_position is missing" do
|
103
|
+
xit "should add item without setting ordered properties" do
|
104
|
+
pending "this needs to be implemented"
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
context "and insert position is passed in" do
|
109
|
+
xit "should convert the list from unordered to ordered" do
|
110
|
+
pending "this needs to be implemented"
|
111
|
+
end
|
112
|
+
|
113
|
+
xit "should set ordered properties for new item" do
|
114
|
+
pending "this needs to be implemented"
|
115
|
+
end
|
116
|
+
|
117
|
+
xit "should not change any other items in the collection" do
|
118
|
+
# TODO Is this really the behavior we want when converting from unordered to ordered?
|
119
|
+
pending "this needs to be implemented"
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
context "when collection is ordered" do
|
125
|
+
context "and insert_position is missing" do
|
126
|
+
xit "should append item to the end of the collection" do
|
127
|
+
pending "this needs to be implemented"
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
context "and insert position is passed in" do
|
132
|
+
xit "should set ordered properties for new item" do
|
133
|
+
pending "this needs to be implemented"
|
134
|
+
end
|
135
|
+
|
136
|
+
xit "should not change any other items in the collection" do
|
137
|
+
# TODO Is this really the behavior we want for ordered lists to be partially ordered?
|
138
|
+
pending "this needs to be implemented"
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,138 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'LD4L::OreRDF::FindProxies' do
|
4
|
+
|
5
|
+
describe "#call" do
|
6
|
+
|
7
|
+
context "when repository is empty" do
|
8
|
+
before do
|
9
|
+
ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
|
10
|
+
end
|
11
|
+
it "should return an empty array" do
|
12
|
+
proxies = LD4L::OreRDF::FindProxies.call(
|
13
|
+
:aggregation => 'http://example.org/NON-EXISTING-AGGREGATION' )
|
14
|
+
expect(proxies).to eq []
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context "when repository has one aggregation with one proxy" do
|
19
|
+
before do
|
20
|
+
p = LD4L::FoafRDF::Person.new("http://vivo.cornell.edu/individual/JohnSmith")
|
21
|
+
p.persist!
|
22
|
+
|
23
|
+
ag1 = LD4L::OreRDF::CreateAggregation.call(
|
24
|
+
id: "http::/example.org/ag1",
|
25
|
+
title: "Aggregation 1",
|
26
|
+
description: "Test description of aggregation 1.",
|
27
|
+
owner: p )
|
28
|
+
LD4L::OreRDF::AddAggregatedResources.call(
|
29
|
+
ag1,
|
30
|
+
[RDF::URI("http://example.org/individual/b11")])
|
31
|
+
LD4L::OreRDF::PersistAggregation.call(ag1)
|
32
|
+
end
|
33
|
+
after do
|
34
|
+
ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should return an array with 1 value" do
|
38
|
+
proxies = LD4L::OreRDF::FindProxies.call(
|
39
|
+
:aggregation => 'http::/example.org/ag1' )
|
40
|
+
expect(proxies.size).to eq 1
|
41
|
+
expect(proxies.first).to be_a_kind_of RDF::URI
|
42
|
+
pr = LD4L::OreRDF::ProxyResource.new(proxies.first)
|
43
|
+
expect(pr.proxy_in.first.rdf_subject).to eq RDF::URI("http::/example.org/ag1")
|
44
|
+
expect(pr.proxy_for.first.rdf_subject).to eq RDF::URI("http://example.org/individual/b11")
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context "when repository has multiple aggregations with proxies" do
|
49
|
+
before do
|
50
|
+
p = LD4L::FoafRDF::Person.new("http://vivo.cornell.edu/individual/JohnSmith")
|
51
|
+
p.persist!
|
52
|
+
|
53
|
+
ag1 = LD4L::OreRDF::CreateAggregation.call(
|
54
|
+
id: "http::/example.org/ag1",
|
55
|
+
title: "Aggregation 1",
|
56
|
+
description: "Test description of aggregation 1.",
|
57
|
+
owner: p )
|
58
|
+
LD4L::OreRDF::AddAggregatedResources.call(
|
59
|
+
ag1,
|
60
|
+
[RDF::URI("http://example.org/individual/b11"),
|
61
|
+
RDF::URI("http://example.org/individual/b12"),
|
62
|
+
RDF::URI("http://example.org/individual/b13")])
|
63
|
+
LD4L::OreRDF::PersistAggregation.call(ag1)
|
64
|
+
|
65
|
+
ag2 = LD4L::OreRDF::CreateAggregation.call(
|
66
|
+
id: "http::/example.org/ag2",
|
67
|
+
title: "Aggregation 2",
|
68
|
+
description: "Test description of aggregation 2.",
|
69
|
+
owner: p )
|
70
|
+
LD4L::OreRDF::AddAggregatedResources.call(
|
71
|
+
ag2,
|
72
|
+
[RDF::URI("http://example.org/individual/b21"),
|
73
|
+
RDF::URI("http://example.org/individual/b22"),
|
74
|
+
RDF::URI("http://example.org/individual/b23")])
|
75
|
+
LD4L::OreRDF::PersistAggregation.call(ag2)
|
76
|
+
|
77
|
+
ag3 = LD4L::OreRDF::CreateAggregation.call(
|
78
|
+
id: "http::/example.org/ag3",
|
79
|
+
title: "Aggregation 3",
|
80
|
+
description: "Test description of aggregation 3.",
|
81
|
+
owner: p )
|
82
|
+
LD4L::OreRDF::AddAggregatedResources.call(
|
83
|
+
ag3,
|
84
|
+
[RDF::URI("http://example.org/individual/b31"),
|
85
|
+
RDF::URI("http://example.org/individual/b32"),
|
86
|
+
RDF::URI("http://example.org/individual/b33")])
|
87
|
+
LD4L::OreRDF::PersistAggregation.call(ag3)
|
88
|
+
end
|
89
|
+
after do
|
90
|
+
ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
|
91
|
+
end
|
92
|
+
|
93
|
+
xit "should find aggregation by rdf_subject" do
|
94
|
+
|
95
|
+
|
96
|
+
# TODO not sure how to write the criteria for this test
|
97
|
+
|
98
|
+
|
99
|
+
# proxies = LD4L::OreRDF::FindAggregations.call(
|
100
|
+
# :aggregation => "http::/example.org/ag2",
|
101
|
+
# :criteria => { :subject => "http::/example.org/individual/v21" } )
|
102
|
+
# expect(proxies).not_to include "http::/example.org/ag1"
|
103
|
+
# expect(proxies).not_to include "http::/example.org/ag2"
|
104
|
+
# expect(proxies).to include "http::/example.org/ag3"
|
105
|
+
# expect(proxies.size).to eq 1
|
106
|
+
end
|
107
|
+
|
108
|
+
it "should find proxies by criteria (aka proxy_for)" do
|
109
|
+
proxies = LD4L::OreRDF::FindProxies.call(
|
110
|
+
:aggregation => 'http::/example.org/ag2',
|
111
|
+
:criteria => { RDFVocabularies::ORE.proxyFor => RDF::URI("http://example.org/individual/b22") } )
|
112
|
+
expect(proxies.size).to eq 1
|
113
|
+
expect(proxies.first).to be_a_kind_of RDF::URI
|
114
|
+
pr = LD4L::OreRDF::ProxyResource.new(proxies.first)
|
115
|
+
expect(pr.proxy_for.first.rdf_subject).to eq RDF::URI("http://example.org/individual/b22")
|
116
|
+
expect(pr.proxy_in.first.rdf_subject).to eq RDF::URI("http::/example.org/ag2")
|
117
|
+
end
|
118
|
+
|
119
|
+
it "should find all proxies for aggregation" do
|
120
|
+
proxies = LD4L::OreRDF::FindProxies.call(
|
121
|
+
:aggregation => 'http::/example.org/ag3' )
|
122
|
+
expect(proxies.size).to eq 3
|
123
|
+
proxy_for = []
|
124
|
+
proxies.each do |p|
|
125
|
+
expect(p).to be_a_kind_of RDF::URI
|
126
|
+
pr = LD4L::OreRDF::ProxyResource.new(p)
|
127
|
+
proxy_for << pr.proxy_for.first.rdf_subject
|
128
|
+
expect(pr.proxy_in.first.rdf_subject).to eq RDF::URI("http::/example.org/ag3")
|
129
|
+
end
|
130
|
+
expect(proxy_for).to include RDF::URI("http://example.org/individual/b31")
|
131
|
+
expect(proxy_for).to include RDF::URI("http://example.org/individual/b32")
|
132
|
+
expect(proxy_for).to include RDF::URI("http://example.org/individual/b33")
|
133
|
+
end
|
134
|
+
|
135
|
+
end
|
136
|
+
|
137
|
+
end
|
138
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "LD4L::OreRDF" do
|
4
|
+
describe "#configure" do
|
5
|
+
|
6
|
+
before do
|
7
|
+
LD4L::OreRDF.configure do |config|
|
8
|
+
config.base_uri = "http://localhost/test/"
|
9
|
+
config.localname_minter = lambda { |prefix=""| prefix+'_configured_'+SecureRandom.uuid }
|
10
|
+
end
|
11
|
+
class DummyAggregation < LD4L::OreRDF::AggregationResource
|
12
|
+
configure :type => RDFVocabularies::ORE.Aggregation, :base_uri => LD4L::OreRDF.configuration.base_uri, :repository => :default
|
13
|
+
end
|
14
|
+
end
|
15
|
+
after do
|
16
|
+
LD4L::OreRDF.reset
|
17
|
+
Object.send(:remove_const, "DummyAggregation") if Object
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should return configured value" do
|
21
|
+
config = LD4L::OreRDF.configuration
|
22
|
+
expect(config.base_uri).to eq "http://localhost/test/"
|
23
|
+
expect(config.localname_minter).to be_kind_of Proc
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should use configured value in Person sub-class" do
|
27
|
+
p = DummyAggregation.new('1')
|
28
|
+
expect(p.rdf_subject.to_s).to eq "http://localhost/test/1"
|
29
|
+
|
30
|
+
oa = DummyAggregation.new(ActiveTriples::LocalName::Minter.generate_local_name(
|
31
|
+
LD4L::OreRDF::AggregationResource, 10, 'foo',
|
32
|
+
&LD4L::OreRDF.configuration.localname_minter ))
|
33
|
+
expect(oa.rdf_subject.to_s.size).to eq 73
|
34
|
+
expect(oa.rdf_subject.to_s).to match /http:\/\/localhost\/test\/foo_configured_[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe ".reset" do
|
39
|
+
before :each do
|
40
|
+
LD4L::OreRDF.configure do |config|
|
41
|
+
config.base_uri = "http://localhost/test/"
|
42
|
+
config.localname_minter = lambda { |prefix=""| prefix+'_configured_'+SecureRandom.uuid }
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
it "resets the configuration" do
|
47
|
+
LD4L::OreRDF.reset
|
48
|
+
config = LD4L::OreRDF.configuration
|
49
|
+
expect(config.base_uri).to eq "http://localhost/"
|
50
|
+
expect(config.localname_minter).to eq nil
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
Bundler.setup
|
6
|
+
|
7
|
+
require 'ld4l/ore_rdf'
|
8
|
+
require 'pry'
|
9
|
+
|
10
|
+
Dir['./spec/support/**/*.rb'].each { |f| require f }
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.color = true
|
14
|
+
config.tty = true
|
15
|
+
|
16
|
+
# Uncomment the following line to get errors and backtrace for deprecation warnings
|
17
|
+
# config.raise_errors_for_deprecations!
|
18
|
+
|
19
|
+
# Use the specified formatter
|
20
|
+
config.formatter = :progress
|
21
|
+
end
|
22
|
+
|
23
|
+
ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
|
metadata
ADDED
@@ -0,0 +1,259 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ld4l-ore_rdf
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- E. Lynette Rayle
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rdf
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
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'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: active_triples-local_name
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: ld4l-foaf_rdf
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: doubly_linked_list
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rdoc
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
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'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: coveralls
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: guard-rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
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: webmock
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: LD4L ORE RDF provides tools for modeling list triples based on the ORE
|
168
|
+
ontology and persisting to a triplestore.
|
169
|
+
email:
|
170
|
+
- elr37@cornell.edu
|
171
|
+
executables: []
|
172
|
+
extensions: []
|
173
|
+
extra_rdoc_files:
|
174
|
+
- LICENSE.txt
|
175
|
+
- README.md
|
176
|
+
files:
|
177
|
+
- ".coveralls.yml"
|
178
|
+
- ".gitignore"
|
179
|
+
- ".travis.yml"
|
180
|
+
- Gemfile
|
181
|
+
- LICENSE.txt
|
182
|
+
- README.md
|
183
|
+
- Rakefile
|
184
|
+
- ld4l-ore_rdf.gemspec
|
185
|
+
- lib/ld4l/ore_rdf.rb
|
186
|
+
- lib/ld4l/ore_rdf/configuration.rb
|
187
|
+
- lib/ld4l/ore_rdf/models/aggregation.rb
|
188
|
+
- lib/ld4l/ore_rdf/models/aggregation_resource.rb
|
189
|
+
- lib/ld4l/ore_rdf/models/proxy_resource.rb
|
190
|
+
- lib/ld4l/ore_rdf/services/aggregation/add_aggregated_resource.rb
|
191
|
+
- lib/ld4l/ore_rdf/services/aggregation/add_aggregated_resources.rb
|
192
|
+
- lib/ld4l/ore_rdf/services/aggregation/create.rb
|
193
|
+
- lib/ld4l/ore_rdf/services/aggregation/destroy.rb
|
194
|
+
- lib/ld4l/ore_rdf/services/aggregation/destroy_with_id.rb
|
195
|
+
- lib/ld4l/ore_rdf/services/aggregation/find.rb
|
196
|
+
- lib/ld4l/ore_rdf/services/aggregation/persist.rb
|
197
|
+
- lib/ld4l/ore_rdf/services/aggregation/resume.rb
|
198
|
+
- lib/ld4l/ore_rdf/services/proxy/create.rb
|
199
|
+
- lib/ld4l/ore_rdf/services/proxy/find.rb
|
200
|
+
- lib/ld4l/ore_rdf/version.rb
|
201
|
+
- lib/ld4l/ore_rdf/vocab/co.rb
|
202
|
+
- lib/ld4l/ore_rdf/vocab/dcterms.rb
|
203
|
+
- lib/ld4l/ore_rdf/vocab/iana.rb
|
204
|
+
- lib/ld4l/ore_rdf/vocab/ore.rb
|
205
|
+
- spec/ld4l/ore_rdf/configuration_spec.rb
|
206
|
+
- spec/ld4l/ore_rdf/models/aggregation_resource_spec.rb
|
207
|
+
- spec/ld4l/ore_rdf/models/aggregation_spec.rb
|
208
|
+
- spec/ld4l/ore_rdf/models/proxy_resource_spec.rb
|
209
|
+
- spec/ld4l/ore_rdf/services/aggregation/add_aggregated_resource_spec.rb
|
210
|
+
- spec/ld4l/ore_rdf/services/aggregation/add_aggregated_resources_spec.rb
|
211
|
+
- spec/ld4l/ore_rdf/services/aggregation/create_spec.rb
|
212
|
+
- spec/ld4l/ore_rdf/services/aggregation/destroy_spec.rb
|
213
|
+
- spec/ld4l/ore_rdf/services/aggregation/find_spec.rb
|
214
|
+
- spec/ld4l/ore_rdf/services/aggregation/persist_spec.rb
|
215
|
+
- spec/ld4l/ore_rdf/services/aggregation/resume_spec.rb
|
216
|
+
- spec/ld4l/ore_rdf/services/proxy/create_spec.rb
|
217
|
+
- spec/ld4l/ore_rdf/services/proxy/find_spec.rb
|
218
|
+
- spec/ld4l/ore_rdf_spec.rb
|
219
|
+
- spec/spec_helper.rb
|
220
|
+
homepage: https://github.com/ld4l/ore_rdf
|
221
|
+
licenses:
|
222
|
+
- APACHE2
|
223
|
+
metadata: {}
|
224
|
+
post_install_message:
|
225
|
+
rdoc_options: []
|
226
|
+
require_paths:
|
227
|
+
- lib
|
228
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
229
|
+
requirements:
|
230
|
+
- - ">="
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: 1.9.3
|
233
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
requirements: []
|
239
|
+
rubyforge_project:
|
240
|
+
rubygems_version: 2.4.3
|
241
|
+
signing_key:
|
242
|
+
specification_version: 4
|
243
|
+
summary: ORE RDF models.
|
244
|
+
test_files:
|
245
|
+
- spec/ld4l/ore_rdf/configuration_spec.rb
|
246
|
+
- spec/ld4l/ore_rdf/models/aggregation_resource_spec.rb
|
247
|
+
- spec/ld4l/ore_rdf/models/aggregation_spec.rb
|
248
|
+
- spec/ld4l/ore_rdf/models/proxy_resource_spec.rb
|
249
|
+
- spec/ld4l/ore_rdf/services/aggregation/add_aggregated_resource_spec.rb
|
250
|
+
- spec/ld4l/ore_rdf/services/aggregation/add_aggregated_resources_spec.rb
|
251
|
+
- spec/ld4l/ore_rdf/services/aggregation/create_spec.rb
|
252
|
+
- spec/ld4l/ore_rdf/services/aggregation/destroy_spec.rb
|
253
|
+
- spec/ld4l/ore_rdf/services/aggregation/find_spec.rb
|
254
|
+
- spec/ld4l/ore_rdf/services/aggregation/persist_spec.rb
|
255
|
+
- spec/ld4l/ore_rdf/services/aggregation/resume_spec.rb
|
256
|
+
- spec/ld4l/ore_rdf/services/proxy/create_spec.rb
|
257
|
+
- spec/ld4l/ore_rdf/services/proxy/find_spec.rb
|
258
|
+
- spec/ld4l/ore_rdf_spec.rb
|
259
|
+
- spec/spec_helper.rb
|