iq_rdf 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/iq_rdf/document.rb +3 -1
- data/lib/iq_rdf/version.rb +1 -1
- data/test/ntriples_test.rb +2 -1
- metadata +34 -43
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 388a43724e78bc9037169308e7dc83ded4993e61
|
4
|
+
data.tar.gz: 8eea3d5d7312f380b9bc2a9b66ef3ed0d4e9a70a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 690cbe8e61e9784ed98b0b4b8424bae1d43e1ea50a0c265d4915bc2fb12a2c3218f0345a8729ea63ed8845d2013692c0d6cd1e577bc71c5a8437cc16e33aad51
|
7
|
+
data.tar.gz: 3cac63b15bc7624fa16eb0a8eab974347daaefa161a77ce32014eac63be1d1df9d911c0f3e318d04808a1865478751d105a2ff9ffba54a45e4e44984575e7190
|
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/version.rb
CHANGED
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");
|
@@ -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
|
metadata
CHANGED
@@ -1,64 +1,57 @@
|
|
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.15
|
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: 2014-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
16
20
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
21
|
requirements:
|
19
|
-
- -
|
22
|
+
- - '>='
|
20
23
|
- !ruby/object:Gem::Version
|
21
24
|
version: '0'
|
22
|
-
type: :runtime
|
23
25
|
prerelease: false
|
26
|
+
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: builder
|
24
29
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
30
|
requirements:
|
27
|
-
- -
|
31
|
+
- - '>='
|
28
32
|
- !ruby/object:Gem::Version
|
29
33
|
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: builder
|
32
34
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
35
|
requirements:
|
35
|
-
- -
|
36
|
+
- - '>='
|
36
37
|
- !ruby/object:Gem::Version
|
37
38
|
version: '0'
|
38
|
-
type: :runtime
|
39
39
|
prerelease: false
|
40
|
+
type: :runtime
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
40
43
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
44
|
requirements:
|
43
|
-
- -
|
45
|
+
- - '>='
|
44
46
|
- !ruby/object:Gem::Version
|
45
47
|
version: '0'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: activesupport
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
49
|
requirements:
|
51
|
-
- -
|
50
|
+
- - '>='
|
52
51
|
- !ruby/object:Gem::Version
|
53
52
|
version: '0'
|
54
|
-
type: :runtime
|
55
53
|
prerelease: false
|
56
|
-
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
54
|
+
type: :runtime
|
62
55
|
description: IqRdf - A builder like rdf library for ruby and rails
|
63
56
|
email:
|
64
57
|
- till.schulte-coerne@innoq.com
|
@@ -72,22 +65,22 @@ files:
|
|
72
65
|
- README.md
|
73
66
|
- Rakefile
|
74
67
|
- iq_rdf.gemspec
|
68
|
+
- lib/iq_rdf.rb
|
75
69
|
- lib/iq_rdf/blank_node.rb
|
76
70
|
- lib/iq_rdf/collection.rb
|
77
71
|
- lib/iq_rdf/document.rb
|
78
|
-
- lib/iq_rdf/literal/boolean.rb
|
79
|
-
- lib/iq_rdf/literal/numeric.rb
|
80
|
-
- lib/iq_rdf/literal/string.rb
|
81
|
-
- lib/iq_rdf/literal/uri.rb
|
82
72
|
- lib/iq_rdf/literal.rb
|
83
73
|
- lib/iq_rdf/namespace.rb
|
84
74
|
- lib/iq_rdf/node.rb
|
85
75
|
- lib/iq_rdf/predicate.rb
|
86
76
|
- lib/iq_rdf/predicate_namespace.rb
|
87
|
-
- lib/iq_rdf/rails/iq_rdf.rb
|
88
77
|
- lib/iq_rdf/uri.rb
|
89
78
|
- lib/iq_rdf/version.rb
|
90
|
-
- lib/iq_rdf.rb
|
79
|
+
- lib/iq_rdf/literal/boolean.rb
|
80
|
+
- lib/iq_rdf/literal/numeric.rb
|
81
|
+
- lib/iq_rdf/literal/string.rb
|
82
|
+
- lib/iq_rdf/literal/uri.rb
|
83
|
+
- lib/iq_rdf/rails/iq_rdf.rb
|
91
84
|
- rails/init.rb
|
92
85
|
- test/iq_rdf_test.rb
|
93
86
|
- test/ntriples_test.rb
|
@@ -96,27 +89,26 @@ files:
|
|
96
89
|
- test/xml_test.rb
|
97
90
|
homepage: http://github.com/innoq/iq_rdf
|
98
91
|
licenses: []
|
99
|
-
|
92
|
+
metadata: {}
|
93
|
+
post_install_message:
|
100
94
|
rdoc_options: []
|
101
95
|
require_paths:
|
102
96
|
- lib
|
103
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
98
|
requirements:
|
106
|
-
- -
|
99
|
+
- - '>='
|
107
100
|
- !ruby/object:Gem::Version
|
108
101
|
version: '0'
|
109
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
103
|
requirements:
|
112
|
-
- -
|
104
|
+
- - '>='
|
113
105
|
- !ruby/object:Gem::Version
|
114
106
|
version: '0'
|
115
107
|
requirements: []
|
116
|
-
rubyforge_project:
|
117
|
-
rubygems_version: 1.
|
118
|
-
signing_key:
|
119
|
-
specification_version:
|
108
|
+
rubyforge_project:
|
109
|
+
rubygems_version: 2.1.9
|
110
|
+
signing_key:
|
111
|
+
specification_version: 4
|
120
112
|
summary: IqRdf - A builder like rdf library for ruby and rails
|
121
113
|
test_files:
|
122
114
|
- test/iq_rdf_test.rb
|
@@ -124,4 +116,3 @@ test_files:
|
|
124
116
|
- test/test_helper.rb
|
125
117
|
- test/turtle_test.rb
|
126
118
|
- test/xml_test.rb
|
127
|
-
has_rdoc:
|