rdf-marmotta 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rdf-marmotta.gemspec +5 -5
- data/spec/marmotta_spec.rb +10 -10
- data/spec/spec_helper.rb +1 -0
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07aabe4c84e27b91b774ef4d474925257831e71d
|
4
|
+
data.tar.gz: 4bcddf34961df985e8a235afd2ccec388238d817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecd9e1d42caec9c844010b7c285652200ed7dfff9b34f4dbdaca615752bc044f2485bee9d69732fa5b1cd7e595966464c6b41af1f59fbcd8de345bbe24958475
|
7
|
+
data.tar.gz: 0ffcda37f7cdbc433267284f5c5623da35244247da293d85515774a7bedb2fb41b5b90a7165ede1a0732e7e09242f45caedc9e34994db719fd13e52c1b8cb640
|
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.1.0'
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Tom Johnson"]
|
9
9
|
s.homepage = 'https://github.com/dpla/rdf-marmotta'
|
@@ -11,21 +11,21 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = %q{RDF::Repository layer for Apache Marmotta.}
|
12
12
|
s.description = %q{RDF::Repository layer for Apache Marmotta.}
|
13
13
|
s.license = "Unlicense"
|
14
|
-
s.required_ruby_version = '>=
|
14
|
+
s.required_ruby_version = '>= 2.0.0'
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
18
18
|
|
19
19
|
s.add_dependency('rake')
|
20
|
-
s.add_dependency('rdf', '~>
|
21
|
-
s.add_dependency('sparql-client', '~>
|
20
|
+
s.add_dependency('rdf', '~> 2.0')
|
21
|
+
s.add_dependency('sparql-client', '~> 2.0.0')
|
22
22
|
s.add_dependency('nokogiri')
|
23
|
-
s.add_dependency('rdf-rdfxml', '~> 1.1')
|
24
23
|
s.add_development_dependency('jettywrapper')
|
25
24
|
s.add_development_dependency('linkeddata')
|
26
25
|
s.add_development_dependency('rspec')
|
27
26
|
s.add_development_dependency('rspec-its')
|
28
27
|
s.add_development_dependency('rdf-spec')
|
28
|
+
s.add_development_dependency('rdf-vocab')
|
29
29
|
s.add_development_dependency('pry')
|
30
30
|
|
31
31
|
end
|
data/spec/marmotta_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe RDF::Marmotta do
|
|
11
11
|
let(:port) { '8983' }
|
12
12
|
let(:base_url) { "http://localhost:#{port}/marmotta/" }
|
13
13
|
let(:opts) { {} }
|
14
|
-
let(:statement) { RDF::Statement(RDF::URI('http://api.dp.la/example/item/1234'), RDF::DC.title, 'Moomin') }
|
14
|
+
let(:statement) { RDF::Statement(RDF::URI('http://api.dp.la/example/item/1234'), RDF::Vocab::DC.title, 'Moomin') }
|
15
15
|
let(:statements) {
|
16
16
|
nodes = [RDF::Node.new, RDF::Node.new, RDF::Node.new]
|
17
17
|
[
|
@@ -20,12 +20,12 @@ describe RDF::Marmotta do
|
|
20
20
|
RDF::Statement(RDF::URI('http://dbpedia.org/resource/Moomin'), RDF::URI('http://dbpedia.org/ontology/country'), RDF::URI('http://dbpedia.org/resource/Finland')),
|
21
21
|
RDF::Statement(RDF::URI('http://dbpedia.org/resource/Moomin'), RDF::URI('http://dbpedia.org/ontology/illustrator'), RDF::URI('http://dbpedia.org/resource/Tove_Jansson')),
|
22
22
|
RDF::Statement(RDF::URI('http://dbpedia.org/resource/Moomin'), RDF::URI('http://dbpedia.org/ontology/abstract'), RDF::Literal.new("Muminki (szw. Mumintroll, fiń. Muumi) – fikcyjne istoty o antropomorficznej budowie ciała (nieco podobne do hipopotamów, ale dwunożne), zamieszkujące pewną dolinę gdzieś w Finlandii, bohaterowie cyklu dziewięciu książek fińskiej (piszącej po szwedzku) pisarki Tove Jansson. Są one odmianą trolli. Pierwsza książka o Muminkach, Małe trolle i duża powódź, została opublikowana przez Tove Jansson w 1945 (pierwsza wersja powstała już zimą 1939 roku).Wszystkie książki o Muminkach odniosły sukces: zostały przełożone na ponad trzydzieści języków. Muminki doczekały się też swojej wersji teatralnej, filmowej (między innymi serial zrealizowany w Polsce w Studio Małych Form Filmowych Se-ma-for), radiowej, telewizyjnej i komiksowej. Świat, w którym żyją Muminki, pełen jest rozmaitych stworzeń – żyją w nim Paszczaki, Hatifnatowie, Mimble – każde z nich ma swój punkt widzenia na świat, swój charakter i temperament.W Tampere, trzecim co do wielkości fińskim mieście, mieści się Muzeum „Dolina Muminków”. Natomiast w Naantali, miejscowości położonej niedaleko Turku, powstał park rozrywki \"Dolina Muminków\".", :language => 'pl')),
|
23
|
-
RDF::Statement(RDF::URI('http://dbpedia.org/resource/Moomin'), RDF::DC.relation, nodes[0]),
|
24
|
-
RDF::Statement(nodes[0], RDF::DC.title, "Comet in Moominland"),
|
25
|
-
RDF::Statement(nodes[0], RDF::DC.subject, nodes[1]),
|
26
|
-
RDF::Statement(nodes[1], RDF::SKOS.prefLabel, 'Moomin Valley'),
|
27
|
-
RDF::Statement(nodes[0], RDF::DC.subject, nodes[2]),
|
28
|
-
RDF::Statement(nodes[2], RDF::SKOS.prefLabel, 'Astronomical Events (apocryphal)')
|
23
|
+
RDF::Statement(RDF::URI('http://dbpedia.org/resource/Moomin'), RDF::Vocab::DC.relation, nodes[0]),
|
24
|
+
RDF::Statement(nodes[0], RDF::Vocab::DC.title, "Comet in Moominland"),
|
25
|
+
RDF::Statement(nodes[0], RDF::Vocab::DC.subject, nodes[1]),
|
26
|
+
RDF::Statement(nodes[1], RDF::Vocab::SKOS.prefLabel, 'Moomin Valley'),
|
27
|
+
RDF::Statement(nodes[0], RDF::Vocab::DC.subject, nodes[2]),
|
28
|
+
RDF::Statement(nodes[2], RDF::Vocab::SKOS.prefLabel, 'Astronomical Events (apocryphal)')
|
29
29
|
]
|
30
30
|
}
|
31
31
|
|
@@ -49,12 +49,12 @@ describe RDF::Marmotta do
|
|
49
49
|
# folks about how they currently/should handle bnodes.
|
50
50
|
describe 'bnode handling' do
|
51
51
|
|
52
|
-
let(:node_triple) { RDF::Statement(RDF::Node.new, RDF::DC.title, 'Moomin') }
|
52
|
+
let(:node_triple) { RDF::Statement(RDF::Node.new, RDF::Vocab::DC.title, 'Moomin') }
|
53
53
|
|
54
54
|
xit 'deletes only the relevant bnode' do
|
55
55
|
subject << node_triple
|
56
|
-
subject << [RDF::Node.new, RDF::DC.title, 'Moomin']
|
57
|
-
subject << [RDF::Node.new, RDF::DC.title, 'Moomin']
|
56
|
+
subject << [RDF::Node.new, RDF::Vocab::DC.title, 'Moomin']
|
57
|
+
subject << [RDF::Node.new, RDF::Vocab::DC.title, 'Moomin']
|
58
58
|
subject.delete_statement(node_triple)
|
59
59
|
expect(subject.count).to eq 2 # returns 0
|
60
60
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
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: 2.0.0
|
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: 2.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,21 +67,21 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: jettywrapper
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
76
|
-
type: :
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: linkeddata
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec
|
112
|
+
name: rspec-its
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rdf-spec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name: rdf-
|
140
|
+
name: rdf-vocab
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
194
194
|
requirements:
|
195
195
|
- - ">="
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
197
|
+
version: 2.0.0
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
200
|
- - ">="
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
204
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
205
|
+
rubygems_version: 2.5.1
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: RDF::Repository layer for Apache Marmotta.
|