rdf-marmotta 0.0.7 → 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 +4 -4
- data/.travis.yml +6 -0
- data/Gemfile +5 -1
- data/README.md +12 -1
- data/lib/rdf/marmotta.rb +23 -34
- data/rdf-marmotta.gemspec +2 -2
- data/spec/marmotta_spec.rb +123 -7
- data/spec/spec_helper.rb +3 -0
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b804fdbb82631157dbc47116f7982b2c0d5bb54e
|
4
|
+
data.tar.gz: c82319dedf15aee6bf0714df28f1376f5baa6d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7befb3254690d952546e6654f9a60edb2d60f599c25fedda4312ccacbfe2b227c5f1d3964a5f61167a146b7f113569877950b2d2a1ccc840897db4ebb2c772c
|
7
|
+
data.tar.gz: f8c82d24b463b38d1f3492b0c851d561542bf8f44e2b2b92f9774a89335d3444008106405340ddd791e26d6eb5ee61887825dec544759eb14a2ff3b7835af7fd
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
RDF::Marmotta
|
2
2
|
=============
|
3
3
|
|
4
|
-
|
4
|
+
[](https://travis-ci.org/dpla/rdf-marmotta) [](https://codeclimate.com/github/dpla/rdf-marmotta) [](https://codeclimate.com/github/dpla/rdf-marmotta)
|
5
|
+
|
6
|
+
A Ruby [RDF::Repository](http://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Repository) implementation for [Apache Marmotta](http://marmotta.apache.org), an open platform for linked data.
|
5
7
|
|
6
8
|
Installing & Using
|
7
9
|
------------------
|
@@ -15,9 +17,18 @@ Add `gem rdf-marmotta` to `Gemfile` and run:
|
|
15
17
|
To use, `require rdf/marmotta` and initialize a repository with
|
16
18
|
`RDF::Marmotta.new('http://path.to/marmotta_base')`.
|
17
19
|
|
20
|
+
If you need a simple bundled version of Marmotta and Solr, see
|
21
|
+
[`marmotta-jetty`](https://github.com/dpla/marmotta-jetty).
|
22
|
+
|
18
23
|
NOTE: WIP
|
19
24
|
---------
|
20
25
|
|
21
26
|
This software implements simple RDF::Repository functionality, but is
|
22
27
|
likely riddled with problems and non-performant. Don't point it at a
|
23
28
|
datastore you care about.
|
29
|
+
|
30
|
+
License
|
31
|
+
-------
|
32
|
+
|
33
|
+
This is free and unencumbered public domain software. For more information,
|
34
|
+
see <http://unlicense.org/> or the accompanying [UNLICENSE](UNLICENSE) file.
|
data/lib/rdf/marmotta.rb
CHANGED
@@ -4,9 +4,10 @@ require 'sparql/client'
|
|
4
4
|
require 'enumerator'
|
5
5
|
|
6
6
|
module RDF
|
7
|
-
class Marmotta < ::
|
7
|
+
class Marmotta < ::SPARQL::Client::Repository
|
8
8
|
|
9
9
|
attr_accessor :endpoints
|
10
|
+
attr_reader :update_client
|
10
11
|
|
11
12
|
DEFAULT_OPTIONS = {
|
12
13
|
:sparql => 'sparql/select',
|
@@ -28,53 +29,33 @@ module RDF
|
|
28
29
|
end
|
29
30
|
|
30
31
|
def initialize(base_url, options = {})
|
32
|
+
@options = options.dup
|
31
33
|
@endpoints = DEFAULT_OPTIONS
|
32
34
|
@endpoints.merge!(options)
|
33
35
|
@endpoints.each do |k, v|
|
34
36
|
next unless RDF::URI(v.to_s).relative?
|
35
37
|
@endpoints[k] = (RDF::URI(base_url.to_s) / v.to_s)
|
36
38
|
end
|
39
|
+
@client = Client.new(endpoints[:sparql].to_s, options)
|
40
|
+
@update_client = Client.new(endpoints[:sparql_update].to_s, options)
|
37
41
|
end
|
38
42
|
|
39
43
|
def query_client
|
40
|
-
@
|
44
|
+
@client
|
41
45
|
end
|
42
46
|
|
43
|
-
def update_client
|
44
|
-
@update_client ||= Client.new(endpoints[:sparql_update])
|
45
|
-
end
|
46
|
-
|
47
|
-
# @see RDF::Enumerable#each.
|
48
|
-
def each(&block)
|
49
|
-
query_client.construct([:s, :p, :o]).where([:s, :p, :o]).each_statement(&block)
|
50
|
-
end
|
51
|
-
|
52
|
-
# @see RDF::Mutable#insert_statement
|
53
|
-
def insert_statement(statement)
|
54
|
-
insert_statements([statement])
|
55
|
-
end
|
56
|
-
|
57
|
-
def insert_statements(statements)
|
58
|
-
update_client.insert_data(statements)
|
59
|
-
end
|
60
|
-
|
61
|
-
# @see RDF::Mutable#delete_statement
|
62
47
|
def delete_statement(statement)
|
63
|
-
|
48
|
+
delete(statement)
|
64
49
|
end
|
65
50
|
|
66
|
-
def
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
if constant
|
75
|
-
update_client.delete_data(statements)
|
76
|
-
else
|
77
|
-
update_client.delete_insert(statements)
|
51
|
+
def count
|
52
|
+
begin
|
53
|
+
binding = client.query("SELECT (COUNT(*) AS ?no) WHERE { ?s ?p ?o }").first.to_hash
|
54
|
+
binding[binding.keys.first].value.to_i
|
55
|
+
rescue SPARQL::Client::ServerError
|
56
|
+
count = 0
|
57
|
+
each_statement { count += 1 }
|
58
|
+
count
|
78
59
|
end
|
79
60
|
end
|
80
61
|
|
@@ -99,8 +80,16 @@ module RDF
|
|
99
80
|
(query.respond_to?(:expects_statements?) ?
|
100
81
|
query.expects_statements? :
|
101
82
|
(query =~ /CONSTRUCT|DESCRIBE|DELETE|CLEAR/))
|
83
|
+
|
102
84
|
super
|
103
85
|
end
|
86
|
+
|
87
|
+
# Do HTTP POST if it's an INSERT
|
88
|
+
def request_method(query)
|
89
|
+
method = (self.options[:method] || DEFAULT_METHOD).to_sym
|
90
|
+
method = :post if query.to_s =~ /INSERT/
|
91
|
+
method
|
92
|
+
end
|
104
93
|
end
|
105
94
|
end
|
106
95
|
end
|
data/rdf-marmotta.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "rdf-marmotta"
|
6
|
-
s.version = '0.0.
|
6
|
+
s.version = '0.0.8'
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Tom Johnson"]
|
9
9
|
s.homepage = 'https://github.com/dpla/rdf-marmotta'
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.add_dependency('rake')
|
20
20
|
s.add_dependency('rdf', '~> 1.1')
|
21
|
+
s.add_dependency('sparql-client', '~> 1.1.4')
|
21
22
|
s.add_dependency('nokogiri')
|
22
23
|
s.add_dependency('rdf-rdfxml', '~> 1.1')
|
23
|
-
s.add_dependency('sparql-client', '~> 1.1')
|
24
24
|
s.add_development_dependency('jettywrapper')
|
25
25
|
s.add_development_dependency('linkeddata')
|
26
26
|
s.add_development_dependency('rspec')
|
data/spec/marmotta_spec.rb
CHANGED
@@ -8,7 +8,8 @@ require 'rdf/marmotta'
|
|
8
8
|
|
9
9
|
describe RDF::Marmotta do
|
10
10
|
|
11
|
-
let(:
|
11
|
+
let(:port) { '8983' }
|
12
|
+
let(:base_url) { "http://localhost:#{port}/marmotta/" }
|
12
13
|
let(:opts) { {} }
|
13
14
|
let(:statement) { RDF::Statement(RDF::URI('http://api.dp.la/example/item/1234'), RDF::DC.title, 'Moomin') }
|
14
15
|
let(:statements) {
|
@@ -58,7 +59,7 @@ describe RDF::Marmotta do
|
|
58
59
|
expect(subject.count).to eq 2 # returns 0
|
59
60
|
end
|
60
61
|
|
61
|
-
|
62
|
+
it 'identifies triples with bnodes as existing' do
|
62
63
|
subject << node_triple
|
63
64
|
expect(subject).to have_triple node_triple # returns false
|
64
65
|
end
|
@@ -79,14 +80,18 @@ describe RDF::Marmotta do
|
|
79
80
|
|
80
81
|
##
|
81
82
|
# This tests an issue that may be an upstream Marmotta problem
|
82
|
-
|
83
|
-
expect { subject.
|
83
|
+
it 'handles large inserts (marmotta)' do
|
84
|
+
expect { subject.insert(*statements) }.not_to raise_error
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'handles requests that are too big for a GET url' do
|
88
|
+
expect(subject.update_client.request(large_insert)).to be_kind_of Net::HTTPOK
|
84
89
|
end
|
85
90
|
|
86
91
|
##
|
87
92
|
# This tests an issue that may be an upstream RDF.rb problem
|
88
|
-
|
89
|
-
expect { subject
|
93
|
+
it 'handles large inserts (rdf.rb)' do
|
94
|
+
expect { subject.insert(*statements) }.not_to raise_error
|
90
95
|
end
|
91
96
|
end
|
92
97
|
|
@@ -104,7 +109,7 @@ describe RDF::Marmotta do
|
|
104
109
|
xit 'deletes triples even when some are not in store' do
|
105
110
|
statement.object = RDF::Literal('Moominpapa')
|
106
111
|
subject << statement
|
107
|
-
subject.
|
112
|
+
subject.delete(*statements)
|
108
113
|
expect(subject.count).to eq 0
|
109
114
|
end
|
110
115
|
end
|
@@ -122,3 +127,114 @@ describe RDF::Marmotta do
|
|
122
127
|
# include RDF_Repository
|
123
128
|
# end
|
124
129
|
end
|
130
|
+
|
131
|
+
|
132
|
+
def large_insert
|
133
|
+
<<EOF
|
134
|
+
INSERT DATA {
|
135
|
+
_:b0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/RecordInfo#RecordInfo> .
|
136
|
+
_:b0 <http://id.loc.gov/ontologies/RecordInfo#languageOfCataloging> <http://id.loc.gov/vocabulary/iso639-2/eng> .
|
137
|
+
_:b0 <http://id.loc.gov/ontologies/RecordInfo#recordChangeDate> "2008-03-05T05:30:10"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
|
138
|
+
_:b0 <http://id.loc.gov/ontologies/RecordInfo#recordContentSource> <http://id.loc.gov/vocabulary/organizations/dlc> .
|
139
|
+
_:b0 <http://id.loc.gov/ontologies/RecordInfo#recordStatus> "revised" .
|
140
|
+
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/vocab/changeset/schema#ChangeSet> .
|
141
|
+
_:b1 <http://purl.org/vocab/changeset/schema#changeReason> "new" .
|
142
|
+
_:b1 <http://purl.org/vocab/changeset/schema#createdDate> "1988-04-25T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
|
143
|
+
_:b1 <http://purl.org/vocab/changeset/schema#creatorName> <http://id.loc.gov/vocabulary/organizations/dlc> .
|
144
|
+
_:b1 <http://purl.org/vocab/changeset/schema#subjectOfChange> <http://id.loc.gov/authorities/names/n87914041> .
|
145
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#CorporateName> .
|
146
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Authority> .
|
147
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
|
148
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://id.loc.gov/vocabulary/identifiers/lccn> "n 87914041" .
|
149
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://id.loc.gov/vocabulary/identifiers/oclcnum> "oca02258986" .
|
150
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#adminMetadata> _:b20 .
|
151
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#adminMetadata> _:b0 .
|
152
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#authoritativeLabel> "American Film Manufacturing Company"@en .
|
153
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#elementList> _:b13 .
|
154
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasExactExternalAuthority> <http://viaf.org/viaf/sourceID/LC%7Cn+87914041#skos:Concept> .
|
155
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasSource> _:b10 .
|
156
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasSource> _:b17 .
|
157
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasSource> _:b18 .
|
158
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasSource> _:b12 .
|
159
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasVariant> _:b4 .
|
160
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasVariant> _:b8 .
|
161
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#hasVariant> _:b21 .
|
162
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#identifiesRWO> _:b2 .
|
163
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection> <http://id.loc.gov/authorities/names/collection_NamesAuthorizedHeadings> .
|
164
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection> <http://id.loc.gov/authorities/names/collection_LCNAF> .
|
165
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme> <http://id.loc.gov/authorities/names> .
|
166
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#altLabel> "American Film Company"@en .
|
167
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#altLabel> "North American Film Corporation"@en .
|
168
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#altLabel> "Flying A Studio"@en .
|
169
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#changeNote> _:b1 .
|
170
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#changeNote> _:b22 .
|
171
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://viaf.org/viaf/sourceID/LC%7Cn+87914041#skos:Concept> .
|
172
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#inScheme> <http://id.loc.gov/authorities/names> .
|
173
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2004/02/skos/core#prefLabel> "American Film Manufacturing Company"@en .
|
174
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2008/05/skos-xl#altLabel> _:b16 .
|
175
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2008/05/skos-xl#altLabel> _:b19 .
|
176
|
+
<http://id.loc.gov/authorities/names/n87914041> <http://www.w3.org/2008/05/skos-xl#altLabel> _:b7 .
|
177
|
+
_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#RWO> .
|
178
|
+
_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Organization> .
|
179
|
+
_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#NameElement> .
|
180
|
+
_:b3 <http://www.loc.gov/mads/rdf/v1#elementValue> "American Film Company"@en .
|
181
|
+
_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#CorporateName> .
|
182
|
+
_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Variant> .
|
183
|
+
_:b4 <http://www.loc.gov/mads/rdf/v1#elementList> _:b5 .
|
184
|
+
_:b4 <http://www.loc.gov/mads/rdf/v1#variantLabel> "American Film Company"@en .
|
185
|
+
_:b5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b3 .
|
186
|
+
_:b5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
|
187
|
+
_:b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#NameElement> .
|
188
|
+
_:b6 <http://www.loc.gov/mads/rdf/v1#elementValue> "North American Film Corporation"@en .
|
189
|
+
_:b7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2008/05/skos-xl#Label> .
|
190
|
+
_:b7 <http://www.w3.org/2008/05/skos-xl#literalForm> "Flying A Studio"@en .
|
191
|
+
_:b8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#CorporateName> .
|
192
|
+
_:b8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Variant> .
|
193
|
+
_:b8 <http://www.loc.gov/mads/rdf/v1#elementList> _:b9 .
|
194
|
+
_:b8 <http://www.loc.gov/mads/rdf/v1#variantLabel> "North American Film Corporation"@en .
|
195
|
+
_:b9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b6 .
|
196
|
+
_:b9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
|
197
|
+
_:b10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Source> .
|
198
|
+
_:b10 <http://www.loc.gov/mads/rdf/v1#citation-note> "credits (American Film Manufacturing Company)"@en .
|
199
|
+
_:b10 <http://www.loc.gov/mads/rdf/v1#citation-source> "The Rose of San Juan [MP] 1913:" .
|
200
|
+
_:b10 <http://www.loc.gov/mads/rdf/v1#citation-status> "found" .
|
201
|
+
_:b11 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#NameElement> .
|
202
|
+
_:b11 <http://www.loc.gov/mads/rdf/v1#elementValue> "Flying A Studio"@en .
|
203
|
+
_:b12 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Source> .
|
204
|
+
_:b12 <http://www.loc.gov/mads/rdf/v1#citation-note> "CIP galley (American Film Manufacturing Co. was popularly known as the Flying A Studio)"@en .
|
205
|
+
_:b12 <http://www.loc.gov/mads/rdf/v1#citation-source> "Lawton, S. Santa Barbara's Flying A Studio, 1997:" .
|
206
|
+
_:b12 <http://www.loc.gov/mads/rdf/v1#citation-status> "found" .
|
207
|
+
_:b13 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b14 .
|
208
|
+
_:b13 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
|
209
|
+
_:b14 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#NameElement> .
|
210
|
+
_:b14 <http://www.loc.gov/mads/rdf/v1#elementValue> "American Film Manufacturing Company"@en .
|
211
|
+
_:b15 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b11 .
|
212
|
+
_:b15 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
|
213
|
+
_:b16 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2008/05/skos-xl#Label> .
|
214
|
+
_:b16 <http://www.w3.org/2008/05/skos-xl#literalForm> "American Film Company"@en .
|
215
|
+
_:b17 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Source> .
|
216
|
+
_:b17 <http://www.loc.gov/mads/rdf/v1#citation-note> "(hdg.: American Film Manufacturing Company)"@en .
|
217
|
+
_:b17 <http://www.loc.gov/mads/rdf/v1#citation-source> "LC data base, 9-16-87" .
|
218
|
+
_:b17 <http://www.loc.gov/mads/rdf/v1#citation-status> "found" .
|
219
|
+
_:b18 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Source> .
|
220
|
+
_:b18 <http://www.loc.gov/mads/rdf/v1#citation-source> "The Great Stanley secret. Chapter 1, The gipsy's trust [MP] 1917 (produced by American Film Company; North American Film Corporation presents)" .
|
221
|
+
_:b18 <http://www.loc.gov/mads/rdf/v1#citation-status> "found" .
|
222
|
+
_:b19 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2008/05/skos-xl#Label> .
|
223
|
+
_:b19 <http://www.w3.org/2008/05/skos-xl#literalForm> "North American Film Corporation"@en .
|
224
|
+
_:b20 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/RecordInfo#RecordInfo> .
|
225
|
+
_:b20 <http://id.loc.gov/ontologies/RecordInfo#languageOfCataloging> <http://id.loc.gov/vocabulary/iso639-2/eng> .
|
226
|
+
_:b20 <http://id.loc.gov/ontologies/RecordInfo#recordChangeDate> "1988-04-25T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
|
227
|
+
_:b20 <http://id.loc.gov/ontologies/RecordInfo#recordContentSource> <http://id.loc.gov/vocabulary/organizations/dlc> .
|
228
|
+
_:b20 <http://id.loc.gov/ontologies/RecordInfo#recordStatus> "new" .
|
229
|
+
_:b21 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#CorporateName> .
|
230
|
+
_:b21 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Variant> .
|
231
|
+
_:b21 <http://www.loc.gov/mads/rdf/v1#elementList> _:b15 .
|
232
|
+
_:b21 <http://www.loc.gov/mads/rdf/v1#variantLabel> "Flying A Studio"@en .
|
233
|
+
_:b22 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/vocab/changeset/schema#ChangeSet> .
|
234
|
+
_:b22 <http://purl.org/vocab/changeset/schema#changeReason> "revised" .
|
235
|
+
_:b22 <http://purl.org/vocab/changeset/schema#createdDate> "2008-03-05T05:30:10"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
|
236
|
+
_:b22 <http://purl.org/vocab/changeset/schema#creatorName> <http://id.loc.gov/vocabulary/organizations/dlc> .
|
237
|
+
_:b22 <http://purl.org/vocab/changeset/schema#subjectOfChange> <http://id.loc.gov/authorities/names/n87914041> .
|
238
|
+
}
|
239
|
+
EOF
|
240
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-marmotta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Johnson
|
@@ -39,35 +39,35 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: sparql-client
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.1.4
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.1.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rdf-rdfxml
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|