openlogic-rdf 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rdf/ntriples/writer.rb +4 -0
- metadata +13 -10
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.7
|
data/lib/rdf/ntriples/writer.rb
CHANGED
@@ -169,6 +169,10 @@ module RDF::NTriples
|
|
169
169
|
# @param [RDF::Term] object
|
170
170
|
# @return [String]
|
171
171
|
def format_triple(subject, predicate, object)
|
172
|
+
if subject.nil? || predicate.nil? || object.nil?
|
173
|
+
raise ArgumentError, "Invalid statement [#{subject.inspect}, #{predicate.inspect}, #{object.inspect}]"
|
174
|
+
end
|
175
|
+
|
172
176
|
"%s %s %s ." % [subject, predicate, object].map { |value| format_term(value) }
|
173
177
|
end
|
174
178
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openlogic-rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-03
|
14
|
+
date: 2012-04-03 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: addressable
|
18
|
-
requirement: &
|
18
|
+
requirement: &2152790380 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 2.2.6
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2152790380
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: yard
|
29
|
-
requirement: &
|
29
|
+
requirement: &2152789760 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 0.7.5
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *2152789760
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: rdf-spec
|
40
|
-
requirement: &
|
40
|
+
requirement: &2152789120 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: 0.3.5
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *2152789120
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rspec
|
51
|
-
requirement: &
|
51
|
+
requirement: &2152788440 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: 2.8.0
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *2152788440
|
60
60
|
description: RDF.rb is a pure-Ruby library for working with Resource Description Framework
|
61
61
|
(RDF) data.
|
62
62
|
email: public-rdf-ruby@w3.org
|
@@ -163,6 +163,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- - ! '>='
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
|
+
segments:
|
167
|
+
- 0
|
168
|
+
hash: -649790658474027200
|
166
169
|
requirements: []
|
167
170
|
rubyforge_project: rdf
|
168
171
|
rubygems_version: 1.8.17
|