iq_rdf 0.1.13 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +4 -1
- data/iq_rdf.gemspec +2 -0
- data/lib/iq_rdf/document.rb +3 -1
- data/lib/iq_rdf/predicate.rb +10 -2
- data/lib/iq_rdf/rails/iq_rdf.rb +19 -8
- data/lib/iq_rdf/version.rb +1 -1
- data/test/iq_rdf_test.rb +6 -6
- data/test/ntriples_test.rb +3 -2
- data/test/test_helper.rb +2 -1
- data/test/turtle_test.rb +2 -2
- data/test/xml_test.rb +66 -48
- metadata +35 -36
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8d1e7f78d4501e4926a949b23e9eac85ee22541fdc98445ceecf8125e1b43f6c
|
4
|
+
data.tar.gz: 23fcf45f8d9848b40d655f686fc656981e68d7bb6affc0551ab497c5a0e48e1f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 65cbaee04cc22cf60b667cadc6a107ceca63f2947830b2ac3eff4045754cd8f5fa5f3021e7202a8c5d9aee96d85c6122f781f5e2cf053c12a202e2d3436ae3a3
|
7
|
+
data.tar.gz: fcfec08a7092d8aeec7c737a52a093493da4a8a9e1f12fb12cbf31b97f56c93d0b4e25ae4fb99b718b79c041c43dfe8d01c042aeb33552dcfec319b5e6fd438f
|
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
# IqRdf - RDF Renderering for Ruby and Rails
|
1
|
+
# IqRdf - RDF Renderering for Ruby and Rails
|
2
|
+
|
3
|
+
![CI](https://github.com/innoq/iq_rdf/workflows/CI/badge.svg)
|
4
|
+
|
2
5
|
IqRdf is a RDF renderer for Ruby and Rails. You can use it in any Ruby
|
3
6
|
environment to render Trurtle-, N-Triple- (not implemented yet) or XML-RDF.
|
4
7
|
|
data/iq_rdf.gemspec
CHANGED
@@ -31,6 +31,8 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_dependency "builder"
|
32
32
|
s.add_dependency "activesupport"
|
33
33
|
|
34
|
+
s.add_development_dependency "minitest"
|
35
|
+
|
34
36
|
s.files = %w(LICENSE README.md Rakefile iq_rdf.gemspec) + Dir.glob("{lib,rails,test}/**/*")
|
35
37
|
s.test_files = Dir.glob("{test}/**/*")
|
36
38
|
s.executables = Dir.glob("{bin}/**/*")
|
data/lib/iq_rdf/document.rb
CHANGED
@@ -73,7 +73,9 @@ module IqRdf
|
|
73
73
|
sublist::rdf.build_predicate("type", IqRdf::Rdf::build_uri("List")) # _:b* a rdf:List
|
74
74
|
sublist::rdf.first(current_element) # _:b* rdf:first <...>
|
75
75
|
last = i + 1 == total
|
76
|
-
|
76
|
+
if last
|
77
|
+
sublist::rdf.rest(IqRdf::Rdf::build_uri("nil"))
|
78
|
+
else
|
77
79
|
new_sublist = IqRdf::BlankNode.new
|
78
80
|
sublist::rdf.rest(new_sublist) # _:b* rdf:rest _:b*
|
79
81
|
end
|
data/lib/iq_rdf/predicate.rb
CHANGED
@@ -23,11 +23,19 @@ module IqRdf
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def build_xml(xml)
|
26
|
-
raise "XML Output won't work with full URIs as predicates yet" unless namespace.token # There is a dummy_empty_namespace without token => postfix is a full uri!
|
27
26
|
nodes.each do |node|
|
28
27
|
node.build_xml(xml) do |*args|
|
29
28
|
block = args.pop if args.last.is_a?(Proc)
|
30
|
-
params = namespace.token
|
29
|
+
params = if namespace.token.nil? # Full uri
|
30
|
+
nameStartChar = "[A-Z]|_|[a-z]|[\u{00C0}-\u{00D6}]|[\u{00D8}-\u{00F6}]|[\u{00F8}-\u{02FF}]|[\u{0370}-\u{037D}]|[\u{037F}-\u{1FFF}]|[\u{200C}-\u{200D}]|[\u{2070}-\u{218F}]|[\u{2C00}-\u{2FEF}]|[\u{3001}-\u{D7FF}]|[\u{F900}-\u{FDCF}]|[\u{FDF0}-\u{FFFD}]|[\u{10000}-\u{EFFFF}]"
|
31
|
+
name = Regexp.new("^(.*?)((#{nameStartChar})(#{nameStartChar}|-|[0-9]|\u{00B7}|[\u{0300}-\u{036F}]|[\u{203F}-\u{2040}])*)$")
|
32
|
+
unless matches = name.match(self.uri_postfix.to_s)
|
33
|
+
raise "Coudln't extract namespace and postfix from URI '#{self.uri_postfix}'"
|
34
|
+
end
|
35
|
+
["ns0", matches[2].to_sym, {"xmlns:ns0" => matches[1]}]
|
36
|
+
else
|
37
|
+
namespace.token == :default ? [self.uri_postfix.to_s] : [namespace.token.to_s, self.uri_postfix.to_sym]
|
38
|
+
end
|
31
39
|
params += args
|
32
40
|
params << {"xml:lang" => xml_lang} if xml_lang
|
33
41
|
if block
|
data/lib/iq_rdf/rails/iq_rdf.rb
CHANGED
@@ -12,21 +12,23 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
-
def IqRdf.rails_template(template)
|
15
|
+
def IqRdf.rails_template(template, source = nil)
|
16
|
+
source ||= template.source
|
17
|
+
|
16
18
|
<<-EOV
|
17
19
|
document = IqRdf::Document.new()
|
18
|
-
#{
|
20
|
+
#{source}
|
19
21
|
if params[:format].to_s == "ttl"
|
20
|
-
controller.response.headers["Content-Type"] ||= 'text/turtle'
|
22
|
+
controller.response.headers["Content-Type"] ||= 'text/turtle;charset=utf-8'
|
21
23
|
document.to_turtle
|
22
24
|
elsif params[:format].to_s == "nt"
|
23
|
-
controller.response.headers["Content-Type"] ||= 'text/plain'
|
25
|
+
controller.response.headers["Content-Type"] ||= 'text/plain;charset=utf-8'
|
24
26
|
document.to_ntriples
|
25
27
|
elsif params[:format].to_s == "rdf"
|
26
|
-
controller.response.headers["Content-Type"] ||= 'application/xml+rdf'
|
28
|
+
controller.response.headers["Content-Type"] ||= 'application/xml+rdf;charset=utf-8'
|
27
29
|
document.to_xml
|
28
30
|
else # Default => turtle
|
29
|
-
controller.response.headers["Content-Type"] ||= 'text/turtle'
|
31
|
+
controller.response.headers["Content-Type"] ||= 'text/turtle;charset=utf-8'
|
30
32
|
document.to_turtle
|
31
33
|
end
|
32
34
|
EOV
|
@@ -34,7 +36,16 @@ end
|
|
34
36
|
|
35
37
|
module ActionView
|
36
38
|
|
37
|
-
if Rails.version >= "
|
39
|
+
if Rails.version >= "6"
|
40
|
+
class Template::Handlers::IqRdf
|
41
|
+
# see https://github.com/rails/rails/commit/28f88e0074f473f58c2d3fd54cb3daff81027c12
|
42
|
+
def self.call(template, source)
|
43
|
+
IqRdf.rails_template(template, source)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
ActionView::Template.register_template_handler('iqrdf', ActionView::Template::Handlers::IqRdf)
|
47
|
+
|
48
|
+
elsif Rails.version >= "3"
|
38
49
|
|
39
50
|
class Template::Handlers::IqRdf
|
40
51
|
def self.call(template)
|
@@ -54,6 +65,6 @@ module ActionView
|
|
54
65
|
ActionView::Template.register_template_handler('iqrdf', ActionView::TemplateHandlers::IqRdf)
|
55
66
|
|
56
67
|
end
|
57
|
-
|
68
|
+
|
58
69
|
|
59
70
|
end
|
data/lib/iq_rdf/version.rb
CHANGED
data/test/iq_rdf_test.rb
CHANGED
@@ -16,16 +16,16 @@ $LOAD_PATH << File.dirname(__FILE__)
|
|
16
16
|
|
17
17
|
require 'test_helper'
|
18
18
|
|
19
|
-
class IqRdfTest < Test
|
19
|
+
class IqRdfTest < Minitest::Test
|
20
20
|
|
21
21
|
def test_namespace_definitions
|
22
|
-
|
22
|
+
assert_raises(URI::InvalidURIError) { IqRdf::Document.new(12345) }
|
23
23
|
|
24
24
|
document = IqRdf::Document.new("http://default-namespace.com/")
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
assert_raises(ArgumentError) { document.namespaces :nohash }
|
27
|
+
assert_raises(ArgumentError) { document.namespaces "wrong" => "http://www.innoq.com/" }
|
28
|
+
assert_raises(URI::InvalidURIError) { document.namespaces :correct => 12 }
|
29
29
|
|
30
30
|
document.namespaces :innoq => "http://www.innoq.com/"
|
31
31
|
document.namespaces :uba => "http://www.uba.de/"
|
@@ -52,7 +52,7 @@ class IqRdfTest < Test::Unit::TestCase
|
|
52
52
|
def test_disallow_nested_definitions
|
53
53
|
IqRdf::Document.new('http://www.umweltprobenbank.de/').namespaces :foaf => 'http://xmlns.com/foaf/0.1/'
|
54
54
|
|
55
|
-
|
55
|
+
assert_raises(ArgumentError) {IqRdf::testemann.Foaf::knows(IqRdf::testefrau.Foaf::knows(IqRdf::someone_else)) }
|
56
56
|
end
|
57
57
|
|
58
58
|
end
|
data/test/ntriples_test.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
#
|
2
|
+
#
|
3
3
|
# Copyright 2011 innoQ Deutschland GmbH
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -18,7 +18,7 @@ $LOAD_PATH << File.dirname(__FILE__)
|
|
18
18
|
|
19
19
|
require 'test_helper'
|
20
20
|
|
21
|
-
class NTriplesTest < Test
|
21
|
+
class NTriplesTest < Minitest::Test
|
22
22
|
|
23
23
|
def test_basics
|
24
24
|
document = IqRdf::Document.new('http://example.org/')
|
@@ -109,6 +109,7 @@ _:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://test.de/goodbye>
|
|
109
109
|
_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b4 .
|
110
110
|
_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#List> .
|
111
111
|
_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "bla" .
|
112
|
+
_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
|
112
113
|
<http://test.de/testemann> <http://test.de/testIt> _:b2 .
|
113
114
|
rdf
|
114
115
|
end
|
data/test/test_helper.rb
CHANGED
data/test/turtle_test.rb
CHANGED
@@ -16,7 +16,7 @@ $LOAD_PATH << File.dirname(__FILE__)
|
|
16
16
|
|
17
17
|
require 'test_helper'
|
18
18
|
|
19
|
-
class TurtleTest < Test
|
19
|
+
class TurtleTest < Minitest::Test
|
20
20
|
|
21
21
|
def test_basic_turtle_output
|
22
22
|
document = IqRdf::Document.new('http://www.test.de/', :lang => :de)
|
@@ -42,7 +42,7 @@ rdf
|
|
42
42
|
def test_full_uri_subject_turtle_output
|
43
43
|
document = IqRdf::Document.new('http://www.test.de/')
|
44
44
|
|
45
|
-
|
45
|
+
assert_raises RuntimeError do
|
46
46
|
IqRdf::build_full_uri_subject("bla")
|
47
47
|
end
|
48
48
|
|
data/test/xml_test.rb
CHANGED
@@ -16,7 +16,7 @@ $LOAD_PATH << File.dirname(__FILE__)
|
|
16
16
|
|
17
17
|
require 'test_helper'
|
18
18
|
|
19
|
-
class XmlTest < Test
|
19
|
+
class XmlTest < Minitest::Test
|
20
20
|
|
21
21
|
def test_basic_xml_output
|
22
22
|
document = IqRdf::Document.new('http://www.test.de/', :lang => :de)
|
@@ -40,7 +40,7 @@ rdf
|
|
40
40
|
def test_full_uri_subject_xml_output
|
41
41
|
document = IqRdf::Document.new('http://www.test.de/')
|
42
42
|
|
43
|
-
|
43
|
+
assert_raises RuntimeError do
|
44
44
|
IqRdf::build_full_uri_subject("bla")
|
45
45
|
end
|
46
46
|
|
@@ -54,40 +54,40 @@ rdf
|
|
54
54
|
<sometest>testvalue</sometest>
|
55
55
|
</rdf:Description>
|
56
56
|
rdf
|
57
|
-
|
57
|
+
end
|
58
58
|
|
59
|
-
|
60
|
-
|
59
|
+
def test_complex_features
|
60
|
+
document = IqRdf::Document.new('http://www.umweltprobenbank.de/', :lang => :de)
|
61
61
|
|
62
|
-
|
62
|
+
document.namespaces :skos => 'http://www.w3.org/2008/05/skos#', :foaf => 'http://xmlns.com/foaf/0.1/', :upb => 'http://www.upb.de/'
|
63
63
|
|
64
|
-
|
64
|
+
document << IqRdf::testemann.myCustomNote("This is an example", :lang => :en) # :testemann :myCustomNote "This is an example"@en.
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
document << IqRdf::testemann(IqRdf::Foaf::build_uri("Person")).Foaf::name("Heinz Peter Testemann", :lang => :none) # :testemann a foaf:Person; foaf:name "Heinz Peter Testemann" .
|
67
|
+
document << IqRdf::testemann.Foaf::knows(IqRdf::testefrau) # :testemann foaf:knows :testefrau .
|
68
|
+
document << IqRdf::testemann.Foaf::nick("Crash test dummy") # :testemann foaf:nick "Crash test dummy"@de .
|
69
69
|
|
70
|
-
|
70
|
+
document << IqRdf::testemann.testIt([IqRdf::hello, "bla"]) # :testIt (:hallo :goodbye "bla"@de), "blubb"@de; # XML: rdf:list
|
71
71
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
72
|
+
["u1023", "xkfkrl"].each do |id|
|
73
|
+
document << IqRdf::Upb::build_uri(id, IqRdf::Skos::build_uri(:Concept)) do |doc| # upb:#{id} a skos:Concept;
|
74
|
+
doc.Skos::prefLabel("Test", :lang => :en) # skos:prefLabel "Test"@en;
|
75
|
+
doc.Skos::related(IqRdf::Rdf.anotherThing) # skos:related test:another_thing;
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
doc.test1("bla") # :test1 "bla"@de;
|
78
|
+
doc.testIt(:hello, :goodbye, "bla") # :testIt :hallo, :goodbye, "bla"@de;
|
79
|
+
doc.anotherTest(URI.parse("http://www.test.de/foo")) # :anotherTest <http://www.test.de/foo>;
|
80
80
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
end # ]
|
81
|
+
end # .
|
82
|
+
end
|
83
|
+
document << IqRdf::Skos::testnode.test32 do |blank_node| # Blank nodes # skos:testnode :test32 [
|
84
|
+
blank_node.title("dies ist ein test") # :title "dies ist ein test"@de;
|
85
|
+
blank_node.sub do |subnode| # sub [
|
86
|
+
subnode.title("blubb") # title "blubb"
|
88
87
|
end # ]
|
88
|
+
end # ]
|
89
89
|
|
90
|
-
|
90
|
+
assert_match(<<rdf, document.to_xml)
|
91
91
|
<rdf:Description rdf:about="http://www.umweltprobenbank.de/testemann">
|
92
92
|
<myCustomNote xml:lang="en">This is an example</myCustomNote>
|
93
93
|
</rdf:Description>
|
@@ -156,27 +156,27 @@ skos:testnode :test32 [
|
|
156
156
|
]
|
157
157
|
].
|
158
158
|
=end
|
159
|
+
end
|
160
|
+
|
161
|
+
def test_literals
|
162
|
+
document = IqRdf::Document.new('http://www.test.de/', :lang => :de)
|
163
|
+
document.namespaces :foaf => 'http://xmlns.com/foaf/0.1/'
|
164
|
+
|
165
|
+
document << IqRdf::testemann do |t|
|
166
|
+
t.Foaf::knows(:testefrau)
|
167
|
+
t.Foaf.nick("Testy")
|
168
|
+
t.Foaf.lastname("Testemann", :lang => :none)
|
169
|
+
t.age(32)
|
170
|
+
t.married(false)
|
171
|
+
t.weight(65.8)
|
172
|
+
t.complex(IqRdf::Literal.new("A very complex type", nil, URI.parse("http://this.com/is#complex")))
|
173
|
+
t.complex2(IqRdf::Literal.new("Shorter form", nil, IqRdf::myDatatype))
|
174
|
+
t.quotes("\"I'm \\quoted\"")
|
175
|
+
t.line_breaks("I'm written\nover two lines")
|
176
|
+
t.some_literal(IqRdf::Literal.new("text", :de))
|
159
177
|
end
|
160
178
|
|
161
|
-
|
162
|
-
document = IqRdf::Document.new('http://www.test.de/', :lang => :de)
|
163
|
-
document.namespaces :foaf => 'http://xmlns.com/foaf/0.1/'
|
164
|
-
|
165
|
-
document << IqRdf::testemann do |t|
|
166
|
-
t.Foaf::knows(:testefrau)
|
167
|
-
t.Foaf.nick("Testy")
|
168
|
-
t.Foaf.lastname("Testemann", :lang => :none)
|
169
|
-
t.age(32)
|
170
|
-
t.married(false)
|
171
|
-
t.weight(65.8)
|
172
|
-
t.complex(IqRdf::Literal.new("A very complex type", nil, URI.parse("http://this.com/is#complex")))
|
173
|
-
t.complex2(IqRdf::Literal.new("Shorter form", nil, IqRdf::myDatatype))
|
174
|
-
t.quotes("\"I'm \\quoted\"")
|
175
|
-
t.line_breaks("I'm written\nover two lines")
|
176
|
-
t.some_literal(IqRdf::Literal.new("text", :de))
|
177
|
-
end
|
178
|
-
|
179
|
-
assert_match(<<rdf, document.to_xml)
|
179
|
+
assert_match(<<rdf, document.to_xml)
|
180
180
|
<rdf:Description rdf:about="http://www.test.de/testemann">
|
181
181
|
<foaf:knows rdf:resource="http://www.test.de/testefrau"/>
|
182
182
|
<foaf:nick>Testy</foaf:nick>
|
@@ -192,8 +192,26 @@ over two lines</line_breaks>
|
|
192
192
|
<some_literal xml:lang="de">text</some_literal>
|
193
193
|
</rdf:Description>
|
194
194
|
rdf
|
195
|
+
end
|
196
|
+
|
197
|
+
def test_full_uri_predicates
|
198
|
+
assert_raises RuntimeError do
|
199
|
+
document = IqRdf::Document.new('http://www.test.de/')
|
200
|
+
document << IqRdf::testemann.build_full_uri_predicate(URI.parse("http://www.test.org/12"), 42)
|
201
|
+
document.to_xml
|
195
202
|
end
|
196
203
|
|
204
|
+
document = IqRdf::Document.new('http://www.test.de/')
|
205
|
+
|
206
|
+
document << IqRdf::testemann.build_full_uri_predicate(URI.parse("http://www.test.org/hoho"), 42)
|
207
|
+
|
208
|
+
assert_match(<<-rdf, document.to_xml)
|
209
|
+
<rdf:Description rdf:about="http://www.test.de/testemann">
|
210
|
+
<ns0:hoho xmlns:ns0="http://www.test.org/" rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">42</ns0:hoho>
|
211
|
+
</rdf:Description>
|
212
|
+
rdf
|
213
|
+
end
|
214
|
+
|
197
215
|
def test_blank_nodes
|
198
216
|
document = IqRdf::Document.new('http://www.test.de/')
|
199
217
|
|
@@ -204,7 +222,7 @@ rdf
|
|
204
222
|
subnode.title("blubb") # title "blubb"
|
205
223
|
end # ]
|
206
224
|
end # ]
|
207
|
-
assert_match(
|
225
|
+
assert_match(<<-rdf, document.to_xml)
|
208
226
|
<rdf:Description rdf:about=\"http://www.test.de/testnode\">
|
209
227
|
<test32>
|
210
228
|
<rdf:Description>
|
@@ -218,7 +236,7 @@ rdf
|
|
218
236
|
</rdf:Description>
|
219
237
|
</test32>
|
220
238
|
</rdf:Description>
|
221
|
-
rdf
|
239
|
+
rdf
|
222
240
|
end
|
223
241
|
|
224
|
-
|
242
|
+
end
|
metadata
CHANGED
@@ -1,62 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iq_rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.17
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Till Schulte-Coerne
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: builder
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: activesupport
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
69
|
description: IqRdf - A builder like rdf library for ruby and rails
|
@@ -72,14 +79,15 @@ files:
|
|
72
79
|
- README.md
|
73
80
|
- Rakefile
|
74
81
|
- iq_rdf.gemspec
|
82
|
+
- lib/iq_rdf.rb
|
75
83
|
- lib/iq_rdf/blank_node.rb
|
76
84
|
- lib/iq_rdf/collection.rb
|
77
85
|
- lib/iq_rdf/document.rb
|
86
|
+
- lib/iq_rdf/literal.rb
|
78
87
|
- lib/iq_rdf/literal/boolean.rb
|
79
88
|
- lib/iq_rdf/literal/numeric.rb
|
80
89
|
- lib/iq_rdf/literal/string.rb
|
81
90
|
- lib/iq_rdf/literal/uri.rb
|
82
|
-
- lib/iq_rdf/literal.rb
|
83
91
|
- lib/iq_rdf/namespace.rb
|
84
92
|
- lib/iq_rdf/node.rb
|
85
93
|
- lib/iq_rdf/predicate.rb
|
@@ -87,7 +95,6 @@ files:
|
|
87
95
|
- lib/iq_rdf/rails/iq_rdf.rb
|
88
96
|
- lib/iq_rdf/uri.rb
|
89
97
|
- lib/iq_rdf/version.rb
|
90
|
-
- lib/iq_rdf.rb
|
91
98
|
- rails/init.rb
|
92
99
|
- test/iq_rdf_test.rb
|
93
100
|
- test/ntriples_test.rb
|
@@ -96,37 +103,29 @@ files:
|
|
96
103
|
- test/xml_test.rb
|
97
104
|
homepage: http://github.com/innoq/iq_rdf
|
98
105
|
licenses: []
|
99
|
-
|
106
|
+
metadata: {}
|
107
|
+
post_install_message:
|
100
108
|
rdoc_options: []
|
101
109
|
require_paths:
|
102
110
|
- lib
|
103
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
112
|
requirements:
|
106
|
-
- -
|
113
|
+
- - ">="
|
107
114
|
- !ruby/object:Gem::Version
|
108
115
|
version: '0'
|
109
|
-
segments:
|
110
|
-
- 0
|
111
|
-
hash: -3899584830229943406
|
112
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
117
|
requirements:
|
115
|
-
- -
|
118
|
+
- - ">="
|
116
119
|
- !ruby/object:Gem::Version
|
117
120
|
version: '0'
|
118
|
-
segments:
|
119
|
-
- 0
|
120
|
-
hash: -3899584830229943406
|
121
121
|
requirements: []
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
specification_version: 3
|
122
|
+
rubygems_version: 3.0.3.1
|
123
|
+
signing_key:
|
124
|
+
specification_version: 4
|
126
125
|
summary: IqRdf - A builder like rdf library for ruby and rails
|
127
126
|
test_files:
|
127
|
+
- test/xml_test.rb
|
128
|
+
- test/turtle_test.rb
|
129
|
+
- test/test_helper.rb
|
128
130
|
- test/iq_rdf_test.rb
|
129
131
|
- test/ntriples_test.rb
|
130
|
-
- test/test_helper.rb
|
131
|
-
- test/turtle_test.rb
|
132
|
-
- test/xml_test.rb
|