rdf 1.1.0p4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/README +33 -33
- data/VERSION +1 -1
- data/lib/rdf.rb +60 -12
- data/lib/rdf/cli.rb +7 -1
- data/lib/rdf/cli/vocab-loader.rb +240 -0
- data/lib/rdf/format.rb +2 -2
- data/lib/rdf/mixin/enumerable.rb +12 -4
- data/lib/rdf/mixin/queryable.rb +13 -13
- data/lib/rdf/model/graph.rb +5 -4
- data/lib/rdf/model/list.rb +15 -4
- data/lib/rdf/model/literal.rb +2 -1
- data/lib/rdf/model/statement.rb +10 -1
- data/lib/rdf/model/term.rb +8 -0
- data/lib/rdf/model/uri.rb +107 -2
- data/lib/rdf/model/value.rb +8 -0
- data/lib/rdf/ntriples/reader.rb +5 -4
- data/lib/rdf/query.rb +47 -12
- data/lib/rdf/query/solutions.rb +29 -29
- data/lib/rdf/reader.rb +13 -3
- data/lib/rdf/repository.rb +1 -0
- data/lib/rdf/util/file.rb +86 -6
- data/lib/rdf/vocab.rb +158 -58
- data/lib/rdf/vocab/cc.rb +28 -11
- data/lib/rdf/vocab/cert.rb +127 -9
- data/lib/rdf/vocab/dc.rb +242 -60
- data/lib/rdf/vocab/dc11.rb +42 -20
- data/lib/rdf/vocab/doap.rb +121 -42
- data/lib/rdf/vocab/exif.rb +540 -165
- data/lib/rdf/vocab/foaf.rb +353 -66
- data/lib/rdf/vocab/geo.rb +40 -10
- data/lib/rdf/vocab/gr.rb +1094 -0
- data/lib/rdf/vocab/http.rb +81 -23
- data/lib/rdf/vocab/ical.rb +361 -0
- data/lib/rdf/vocab/ma.rb +281 -69
- data/lib/rdf/vocab/og.rb +98 -0
- data/lib/rdf/vocab/owl.rb +226 -56
- data/lib/rdf/vocab/prov.rb +489 -0
- data/lib/rdf/vocab/rdfs.rb +38 -14
- data/lib/rdf/vocab/rsa.rb +25 -9
- data/lib/rdf/vocab/rss.rb +29 -11
- data/lib/rdf/vocab/schema.rb +3729 -647
- data/lib/rdf/vocab/sioc.rb +224 -89
- data/lib/rdf/vocab/skos.rb +141 -33
- data/lib/rdf/vocab/skosxl.rb +43 -0
- data/lib/rdf/vocab/v.rb +154 -0
- data/lib/rdf/vocab/vcard.rb +337 -0
- data/lib/rdf/vocab/void.rb +142 -0
- data/lib/rdf/vocab/wdrs.rb +129 -0
- data/lib/rdf/vocab/wot.rb +52 -18
- data/lib/rdf/vocab/xhtml.rb +3 -6
- data/lib/rdf/vocab/xhv.rb +239 -0
- data/lib/rdf/writer.rb +3 -3
- metadata +81 -14
data/lib/rdf/writer.rb
CHANGED
@@ -237,10 +237,10 @@ module RDF
|
|
237
237
|
# @example
|
238
238
|
# writer.prefixes[:dc] #=> RDF::URI('http://purl.org/dc/terms/')
|
239
239
|
#
|
240
|
-
# @return [
|
240
|
+
# @return [RDF::URI]
|
241
241
|
# @since 0.3.4
|
242
242
|
def base_uri
|
243
|
-
@options[:base_uri]
|
243
|
+
RDF::URI(@options[:base_uri]) if @options[:base_uri]
|
244
244
|
end
|
245
245
|
|
246
246
|
##
|
@@ -472,7 +472,7 @@ module RDF
|
|
472
472
|
##
|
473
473
|
# @return [void]
|
474
474
|
def puts(*args)
|
475
|
-
@output.puts(*args.map {|s| s.encode
|
475
|
+
@output.puts(*args.map {|s| s.encode(encoding)})
|
476
476
|
end
|
477
477
|
|
478
478
|
##
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf-spec
|
@@ -30,42 +30,98 @@ dependencies:
|
|
30
30
|
name: rdf-rdfxml
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - '>='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 1.1.0
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.1.0
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rdf-rdfa
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 1.1.0
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.1.0
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rdf-turtle
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 1.1.0
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.1.0
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rdf-xsd
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.1.0
|
36
78
|
type: :development
|
37
79
|
prerelease: false
|
38
80
|
version_requirements: !ruby/object:Gem::Requirement
|
39
81
|
requirements:
|
40
|
-
- -
|
82
|
+
- - '>='
|
41
83
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
84
|
+
version: 1.1.0
|
43
85
|
- !ruby/object:Gem::Dependency
|
44
86
|
name: rspec
|
45
87
|
requirement: !ruby/object:Gem::Requirement
|
46
88
|
requirements:
|
47
|
-
- -
|
89
|
+
- - '>='
|
48
90
|
- !ruby/object:Gem::Version
|
49
91
|
version: '2.14'
|
50
92
|
type: :development
|
51
93
|
prerelease: false
|
52
94
|
version_requirements: !ruby/object:Gem::Requirement
|
53
95
|
requirements:
|
54
|
-
- -
|
96
|
+
- - '>='
|
55
97
|
- !ruby/object:Gem::Version
|
56
98
|
version: '2.14'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: webmock
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '1.15'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '1.15'
|
57
113
|
- !ruby/object:Gem::Dependency
|
58
114
|
name: yard
|
59
115
|
requirement: !ruby/object:Gem::Requirement
|
60
116
|
requirements:
|
61
|
-
- -
|
117
|
+
- - '>='
|
62
118
|
- !ruby/object:Gem::Version
|
63
119
|
version: '0.8'
|
64
120
|
type: :development
|
65
121
|
prerelease: false
|
66
122
|
version_requirements: !ruby/object:Gem::Requirement
|
67
123
|
requirements:
|
68
|
-
- -
|
124
|
+
- - '>='
|
69
125
|
- !ruby/object:Gem::Version
|
70
126
|
version: '0.8'
|
71
127
|
description: RDF.rb is a pure-Ruby library for working with Resource Description Framework
|
@@ -84,6 +140,7 @@ files:
|
|
84
140
|
- bin/rdf
|
85
141
|
- etc/doap.nt
|
86
142
|
- lib/df.rb
|
143
|
+
- lib/rdf/cli/vocab-loader.rb
|
87
144
|
- lib/rdf/cli.rb
|
88
145
|
- lib/rdf/format.rb
|
89
146
|
- lib/rdf/mixin/countable.rb
|
@@ -142,17 +199,27 @@ files:
|
|
142
199
|
- lib/rdf/vocab/exif.rb
|
143
200
|
- lib/rdf/vocab/foaf.rb
|
144
201
|
- lib/rdf/vocab/geo.rb
|
202
|
+
- lib/rdf/vocab/gr.rb
|
145
203
|
- lib/rdf/vocab/http.rb
|
204
|
+
- lib/rdf/vocab/ical.rb
|
146
205
|
- lib/rdf/vocab/ma.rb
|
206
|
+
- lib/rdf/vocab/og.rb
|
147
207
|
- lib/rdf/vocab/owl.rb
|
208
|
+
- lib/rdf/vocab/prov.rb
|
148
209
|
- lib/rdf/vocab/rdfs.rb
|
149
210
|
- lib/rdf/vocab/rsa.rb
|
150
211
|
- lib/rdf/vocab/rss.rb
|
151
212
|
- lib/rdf/vocab/schema.rb
|
152
213
|
- lib/rdf/vocab/sioc.rb
|
153
214
|
- lib/rdf/vocab/skos.rb
|
215
|
+
- lib/rdf/vocab/skosxl.rb
|
216
|
+
- lib/rdf/vocab/v.rb
|
217
|
+
- lib/rdf/vocab/vcard.rb
|
218
|
+
- lib/rdf/vocab/void.rb
|
219
|
+
- lib/rdf/vocab/wdrs.rb
|
154
220
|
- lib/rdf/vocab/wot.rb
|
155
221
|
- lib/rdf/vocab/xhtml.rb
|
222
|
+
- lib/rdf/vocab/xhv.rb
|
156
223
|
- lib/rdf/vocab/xsd.rb
|
157
224
|
- lib/rdf/vocab.rb
|
158
225
|
- lib/rdf/writer.rb
|
@@ -167,17 +234,17 @@ require_paths:
|
|
167
234
|
- lib
|
168
235
|
required_ruby_version: !ruby/object:Gem::Requirement
|
169
236
|
requirements:
|
170
|
-
- -
|
237
|
+
- - '>='
|
171
238
|
- !ruby/object:Gem::Version
|
172
239
|
version: 1.9.2
|
173
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
241
|
requirements:
|
175
|
-
- -
|
242
|
+
- - '>='
|
176
243
|
- !ruby/object:Gem::Version
|
177
|
-
version:
|
244
|
+
version: '0'
|
178
245
|
requirements: []
|
179
246
|
rubyforge_project: rdf
|
180
|
-
rubygems_version: 2.
|
247
|
+
rubygems_version: 2.1.11
|
181
248
|
signing_key:
|
182
249
|
specification_version: 4
|
183
250
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|