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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70afdbf6ef54c0e80c228efcd9df4e23d4b9708a
4
- data.tar.gz: cdaa746bdf4e1bfe7a5e59735ede76b94a81ecfa
3
+ metadata.gz: b804fdbb82631157dbc47116f7982b2c0d5bb54e
4
+ data.tar.gz: c82319dedf15aee6bf0714df28f1376f5baa6d17
5
5
  SHA512:
6
- metadata.gz: 61cf8b5d49355161374e076cc7b9b35277d823acd7495099c47f443a1626daf787271a8cdd8caf51f507218a8d8205b9ceb41f70058931c5248b34492710ea72
7
- data.tar.gz: 5d0e78747d8e10fc57abbe78193fa54946b62d8050fdfed9557da8f77bb647483cc2a3e587e15b0ddfc7bef57f6cdb59d75d78fbd78c1151325ea46490f70c44
6
+ metadata.gz: e7befb3254690d952546e6654f9a60edb2d60f599c25fedda4312ccacbfe2b227c5f1d3964a5f61167a146b7f113569877950b2d2a1ccc840897db4ebb2c772c
7
+ data.tar.gz: f8c82d24b463b38d1f3492b0c851d561542bf8f44e2b2b92f9774a89335d3444008106405340ddd791e26d6eb5ee61887825dec544759eb14a2ff3b7835af7fd
@@ -2,4 +2,10 @@ language: ruby
2
2
  bundler_args: --without debug
3
3
  script: "bundle exec rake ci"
4
4
  rvm:
5
+ - 1.9.3
6
+ - 2.0.0
5
7
  - 2.1.3
8
+ - 2.2.0
9
+ addons:
10
+ code_climate:
11
+ repo_token: fb6cdac8d3db7aff3cb0802bbfd78499d0dcb5a516c1e6e7934dbbc994bb9e03
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec
4
+
5
+ group :test do
6
+ gem "codeclimate-test-reporter", require: false
7
+ end
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  RDF::Marmotta
2
2
  =============
3
3
 
4
- A Ruby RDF::Repository implementation for [Apache Marmotta](http://marmotta.apache.org).
4
+ [![Build Status](https://travis-ci.org/dpla/rdf-marmotta.svg?branch=develop)](https://travis-ci.org/dpla/rdf-marmotta) [![Code Climate](https://codeclimate.com/github/dpla/rdf-marmotta/badges/gpa.svg)](https://codeclimate.com/github/dpla/rdf-marmotta) [![Test Coverage](https://codeclimate.com/github/dpla/rdf-marmotta/badges/coverage.svg)](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.
@@ -4,9 +4,10 @@ require 'sparql/client'
4
4
  require 'enumerator'
5
5
 
6
6
  module RDF
7
- class Marmotta < ::RDF::Repository
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
- @query_client ||= Client.new(endpoints[:sparql])
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
- delete_statements([statement])
48
+ delete(statement)
64
49
  end
65
50
 
66
- def delete_statements(statements)
67
- constant = statements.all? do |value|
68
- !value.respond_to?(:each_statement) && begin
69
- statement = RDF::Statement.from(value)
70
- statement.constant? && !statement.has_blank_nodes?
71
- end
72
- end
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
@@ -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.7'
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')
@@ -8,7 +8,8 @@ require 'rdf/marmotta'
8
8
 
9
9
  describe RDF::Marmotta do
10
10
 
11
- let(:base_url) { 'http://localhost:8983/marmotta/' }
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
- xit 'identifies triples with bnodes as existing' do
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
- xit 'handles large inserts (marmotta)' do
83
- expect { subject.insert_statements(statements) }.not_to raise_error
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
- xit 'handles large inserts (rdf.rb)' do
89
- expect { subject << statements }.not_to raise_error
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.delete_statements(statements)
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
@@ -1,3 +1,6 @@
1
+ require 'codeclimate-test-reporter'
2
+ CodeClimate::TestReporter.start
3
+
1
4
  require 'linkeddata'
2
5
  require 'bundler/setup'
3
6
  Bundler.setup
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.7
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: nokogiri
42
+ name: sparql-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
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: '0'
54
+ version: 1.1.4
55
55
  - !ruby/object:Gem::Dependency
56
- name: rdf-rdfxml
56
+ name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
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: '1.1'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: sparql-client
70
+ name: rdf-rdfxml
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"