rdf 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CREDITS +1 -0
- data/VERSION +1 -1
- data/lib/rdf.rb +10 -48
- data/lib/rdf/cli/vocab-loader.rb +78 -142
- data/lib/rdf/mixin/enumerable.rb +25 -0
- data/lib/rdf/mixin/mutable.rb +3 -0
- data/lib/rdf/model/graph.rb +1 -1
- data/lib/rdf/model/node.rb +25 -2
- data/lib/rdf/model/statement.rb +20 -12
- data/lib/rdf/model/uri.rb +11 -2
- data/lib/rdf/nquads.rb +8 -6
- data/lib/rdf/ntriples/writer.rb +14 -10
- data/lib/rdf/query/pattern.rb +10 -8
- data/lib/rdf/reader.rb +11 -2
- data/lib/rdf/repository.rb +1 -1
- data/lib/rdf/vocab.rb +396 -96
- data/lib/rdf/vocab/cc.rb +117 -25
- data/lib/rdf/vocab/cert.rb +230 -117
- data/lib/rdf/vocab/dc.rb +930 -233
- data/lib/rdf/vocab/dc11.rb +151 -37
- data/lib/rdf/vocab/doap.rb +326 -114
- data/lib/rdf/vocab/exif.rb +930 -533
- data/lib/rdf/vocab/foaf.rb +602 -346
- data/lib/rdf/vocab/geo.rb +139 -33
- data/lib/rdf/vocab/gr.rb +1551 -1084
- data/lib/rdf/vocab/ht.rb +319 -0
- data/lib/rdf/vocab/ical.rb +507 -349
- data/lib/rdf/vocab/ma.rb +504 -280
- data/lib/rdf/vocab/mo.rb +2425 -876
- data/lib/rdf/vocab/og.rb +178 -90
- data/lib/rdf/vocab/owl.rb +513 -219
- data/lib/rdf/vocab/prov.rb +1557 -479
- data/lib/rdf/vocab/rdfs.rb +107 -31
- data/lib/rdf/vocab/rdfv.rb +165 -0
- data/lib/rdf/vocab/rsa.rb +61 -18
- data/lib/rdf/vocab/rss.rb +55 -22
- data/lib/rdf/vocab/schema.rb +8590 -3995
- data/lib/rdf/vocab/sioc.rb +657 -218
- data/lib/rdf/vocab/skos.rb +227 -134
- data/lib/rdf/vocab/skosxl.rb +47 -33
- data/lib/rdf/vocab/vcard.rb +693 -327
- data/lib/rdf/vocab/void.rb +175 -132
- data/lib/rdf/vocab/vs.rb +27 -0
- data/lib/rdf/vocab/wdrs.rb +123 -119
- data/lib/rdf/vocab/wot.rb +155 -45
- data/lib/rdf/vocab/xhtml.rb +2 -1
- data/lib/rdf/vocab/xhv.rb +496 -231
- data/lib/rdf/vocab/xsd.rb +382 -53
- data/lib/rdf/writer.rb +8 -4
- metadata +5 -4
- data/lib/rdf/vocab/http.rb +0 -84
- data/lib/rdf/vocab/v.rb +0 -154
data/lib/rdf/vocab/xsd.rb
CHANGED
@@ -1,58 +1,387 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# This file generated automatically using vocab-fetch from etc/xsd.ttl
|
3
|
+
require 'rdf'
|
1
4
|
module RDF
|
2
|
-
##
|
3
|
-
# XML Schema (XSD) vocabulary.
|
4
|
-
#
|
5
|
-
# @see http://www.w3.org/XML/Schema
|
6
|
-
# @see http://www.w3.org/TR/xmlschema-2/#built-in-datatypes
|
7
5
|
class XSD < Vocabulary("http://www.w3.org/2001/XMLSchema#")
|
8
|
-
# XML Schema built-in primitive types
|
9
|
-
# @see http://www.w3.org/TR/xmlschema-2/#built-in-primitive-datatypes
|
10
|
-
property :NOTATION
|
11
|
-
property :QName
|
12
|
-
property :anyURI
|
13
|
-
property :base64Binary
|
14
|
-
property :boolean
|
15
|
-
property :date
|
16
|
-
property :dateTime
|
17
|
-
property :decimal
|
18
|
-
property :double
|
19
|
-
property :duration
|
20
|
-
property :float
|
21
|
-
property :gDay
|
22
|
-
property :gMonth
|
23
|
-
property :gMonthDay
|
24
|
-
property :gYear
|
25
|
-
property :gYearMonth
|
26
|
-
property :hexBinary
|
27
|
-
property :string
|
28
|
-
property :time
|
29
6
|
|
30
|
-
#
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
7
|
+
# Datatype definitions
|
8
|
+
term :NCName,
|
9
|
+
comment: %(
|
10
|
+
NCName represents XML "non-colonized" Names. The ·value space· of NCName
|
11
|
+
is the set of all strings which ·match· the NCName production of
|
12
|
+
[Namespaces in XML]. The ·lexical space· of NCName is the set of all
|
13
|
+
strings which ·match· the NCName production of [Namespaces in XML]. The
|
14
|
+
·base type· of NCName is Name.
|
15
|
+
).freeze,
|
16
|
+
label: "NCName".freeze,
|
17
|
+
subClassOf: "xsd:name".freeze,
|
18
|
+
type: "rdfs:Datatype".freeze
|
19
|
+
term :NMTOKEN,
|
20
|
+
comment: %(
|
21
|
+
NMTOKEN represents the NMTOKEN attribute type from [XML 1.0 \(Second
|
22
|
+
Edition\)]. The ·value space· of NMTOKEN is the set of tokens that ·match·
|
23
|
+
the Nmtoken production in [XML 1.0 \(Second Edition\)]. The ·lexical space·
|
24
|
+
of NMTOKEN is the set of strings that ·match· the Nmtoken production in
|
25
|
+
[XML 1.0 \(Second Edition\)]. The ·base type· of NMTOKEN is token.
|
26
|
+
).freeze,
|
27
|
+
label: "NMTOKEN".freeze,
|
28
|
+
subClassOf: "xsd:token".freeze,
|
29
|
+
type: "rdfs:Datatype".freeze
|
30
|
+
term :Name,
|
31
|
+
comment: %(
|
32
|
+
Name represents XML Names. The ·value space· of Name is the set of all
|
33
|
+
strings which ·match· the Name production of [XML 1.0 \(Second Edition\)].
|
34
|
+
The ·lexical space· of Name is the set of all strings which ·match· the
|
35
|
+
Name production of [XML 1.0 \(Second Edition\)]. The ·base type· of Name is
|
36
|
+
token.
|
37
|
+
).freeze,
|
38
|
+
label: "Name".freeze,
|
39
|
+
subClassOf: "xsd:token".freeze,
|
40
|
+
type: "rdfs:Datatype".freeze
|
41
|
+
term :anyURI,
|
42
|
+
comment: %(
|
43
|
+
anyURI represents a Uniform Resource Identifier Reference \(URI\). An
|
44
|
+
anyURI value can be absolute or relative, and may have an optional
|
45
|
+
fragment identifier \(i.e., it may be a URI Reference\). This type should
|
46
|
+
be used to specify the intention that the value fulfills the role of a
|
47
|
+
URI as defined by [RFC 2396], as amended by [RFC 2732].
|
48
|
+
).freeze,
|
49
|
+
label: "anyURI".freeze,
|
50
|
+
type: "rdfs:Datatype".freeze
|
51
|
+
term :base64Binary,
|
52
|
+
comment: %(
|
53
|
+
base64Binary represents Base64-encoded arbitrary binary data. The ·value
|
54
|
+
space· of base64Binary is the set of finite-length sequences of binary
|
55
|
+
octets. For base64Binary data the entire binary stream is encoded using
|
56
|
+
the Base64 Alphabet in [RFC 2045].
|
57
|
+
).freeze,
|
58
|
+
label: "base64Binary".freeze,
|
59
|
+
type: "rdfs:Datatype".freeze
|
60
|
+
term :boolean,
|
61
|
+
comment: %(
|
62
|
+
boolean has the ·value space· required to support the mathematical
|
63
|
+
concept of binary-valued logic: {true, false}.
|
64
|
+
).freeze,
|
65
|
+
label: "boolean".freeze,
|
66
|
+
type: "rdfs:Datatype".freeze
|
67
|
+
term :byte,
|
68
|
+
comment: %(
|
69
|
+
byte is ·derived· from short by setting the value of ·maxInclusive· to be
|
70
|
+
127 and ·minInclusive· to be -128. The ·base type· of byte is short.
|
71
|
+
).freeze,
|
72
|
+
label: "byte".freeze,
|
73
|
+
subClassOf: "xsd:short".freeze,
|
74
|
+
type: "rdfs:Datatype".freeze
|
75
|
+
term :date,
|
76
|
+
comment: %(
|
77
|
+
The ·value space· of date consists of top-open intervals of exactly one
|
78
|
+
day in length on the timelines of dateTime, beginning on the beginning
|
79
|
+
moment of each day \(in each timezone\), i.e. '00:00:00', up to but not
|
80
|
+
including '24:00:00' \(which is identical with '00:00:00' of the next
|
81
|
+
day\). For nontimezoned values, the top-open intervals disjointly cover
|
82
|
+
the nontimezoned timeline, one per day. For timezoned values, the
|
83
|
+
intervals begin at every minute and therefore overlap.
|
84
|
+
).freeze,
|
85
|
+
label: "date".freeze,
|
86
|
+
type: "rdfs:Datatype".freeze
|
87
|
+
term :dateTime,
|
88
|
+
comment: %(
|
89
|
+
dateTime values may be viewed as objects with integer-valued year, month,
|
90
|
+
day, hour and minute properties, a decimal-valued second property, and a
|
91
|
+
boolean timezoned property. Each such object also has one decimal-valued
|
92
|
+
method or computed property, timeOnTimeline, whose value is always a
|
93
|
+
decimal number; the values are dimensioned in seconds, the integer 0 is
|
94
|
+
0001-01-01T00:00:00 and the value of timeOnTimeline for other dateTime
|
95
|
+
values is computed using the Gregorian algorithm as modified for
|
96
|
+
leap-seconds. The timeOnTimeline values form two related "timelines", one
|
97
|
+
for timezoned values and one for non-timezoned values. Each timeline is a
|
98
|
+
copy of the ·value space· of decimal, with integers given units of seconds.
|
99
|
+
).freeze,
|
100
|
+
label: "dateTime".freeze,
|
101
|
+
type: "rdfs:Datatype".freeze
|
102
|
+
term :decimal,
|
103
|
+
comment: %(
|
104
|
+
decimal represents a subset of the real numbers, which can be represented
|
105
|
+
by decimal numerals. The ·value space· of decimal is the set of numbers
|
106
|
+
that can be obtained by multiplying an integer by a non-positive power of
|
107
|
+
ten, i.e., expressible as i × 10^-n where i and n are integers and n >=
|
108
|
+
0. Precision is not reflected in this value space; the number 2.0 is not
|
109
|
+
distinct from the number 2.00. The ·order-relation· on decimal is the
|
110
|
+
order relation on real numbers, restricted to this subset.
|
111
|
+
).freeze,
|
112
|
+
label: "decimal".freeze,
|
113
|
+
type: "rdfs:Datatype".freeze
|
114
|
+
term :double,
|
115
|
+
comment: %(
|
116
|
+
The double datatype is patterned after the IEEE double-precision 64-bit
|
117
|
+
floating point type [IEEE 754-1985]. The basic ·value space· of double
|
118
|
+
consists of the values m × 2^e, where m is an integer whose absolute
|
119
|
+
value is less than 2^53, and e is an integer between -1075 and 970,
|
120
|
+
inclusive. In addition to the basic ·value space· described above, the
|
121
|
+
·value space· of double also contains the following three special values:
|
122
|
+
positive and negative infinity and not-a-number \(NaN\). The
|
123
|
+
·order-relation· on double is: x < y iff y - x is positive for x and y in
|
124
|
+
the value space. Positive infinity is greater than all other non-NaN
|
125
|
+
values. NaN equals itself but is ·incomparable· with \(neither greater
|
126
|
+
than nor less than\) any other value in the ·value space·.
|
127
|
+
).freeze,
|
128
|
+
label: "double".freeze,
|
129
|
+
type: "rdfs:Datatype".freeze
|
130
|
+
term :duration,
|
131
|
+
comment: %(
|
132
|
+
duration represents a duration of time. The ·value space· of duration is
|
133
|
+
a six-dimensional space where the coordinates designate the Gregorian
|
134
|
+
year, month, day, hour, minute, and second components defined in §
|
135
|
+
5.5.3.2 of [ISO 8601], respectively. These components are ordered in
|
136
|
+
their significance by their order of appearance i.e. as year, month, day,
|
137
|
+
hour, minute, and second.
|
138
|
+
).freeze,
|
139
|
+
label: "duration".freeze,
|
140
|
+
type: "rdfs:Datatype".freeze
|
141
|
+
term :float,
|
142
|
+
comment: %(
|
143
|
+
float is patterned after the IEEE single-precision 32-bit floating point
|
144
|
+
type [IEEE 754-1985]. The basic ·value space· of float consists of the
|
145
|
+
values m × 2^e, where m is an integer whose absolute value is less than
|
146
|
+
2^24, and e is an integer between -149 and 104, inclusive. In addition to
|
147
|
+
the basic ·value space· described above, the ·value space· of float also
|
148
|
+
contains the following three special values: positive and negative infinity
|
149
|
+
and not-a-number \(NaN\). The ·order-relation· on float is: x < y iff y - x
|
150
|
+
is positive for x and y in the value space. Positive infinity is greater
|
151
|
+
than all other non-NaN values. NaN equals itself but is ·incomparable· with
|
152
|
+
\(neither greater than nor less than\) any other value in the ·value space·.
|
153
|
+
).freeze,
|
154
|
+
label: "float".freeze,
|
155
|
+
type: "rdfs:Datatype".freeze
|
156
|
+
term :gDay,
|
157
|
+
comment: %(
|
158
|
+
gDay is a gregorian day that recurs, specifically a day of the month such
|
159
|
+
as the 5th of the month. Arbitrary recurring days are not supported by
|
160
|
+
this datatype. The ·value space· of gDay is the space of a set of
|
161
|
+
calendar dates as defined in § 3 of [ISO 8601]. Specifically, it is a set
|
162
|
+
of one-day long, monthly periodic instances.
|
163
|
+
).freeze,
|
164
|
+
label: "gDay".freeze,
|
165
|
+
type: "rdfs:Datatype".freeze
|
166
|
+
term :gMonth,
|
167
|
+
comment: %(
|
168
|
+
gMonth is a gregorian month that recurs every year. The ·value space· of
|
169
|
+
gMonth is the space of a set of calendar months as defined in § 3 of [ISO
|
170
|
+
8601]. Specifically, it is a set of one-month long, yearly periodic
|
171
|
+
instances.
|
172
|
+
).freeze,
|
173
|
+
label: "gMonth".freeze,
|
174
|
+
type: "rdfs:Datatype".freeze
|
175
|
+
term :gMonthDay,
|
176
|
+
comment: %(
|
177
|
+
gMonthDay is a gregorian date that recurs, specifically a day of the year
|
178
|
+
such as the third of May. Arbitrary recurring dates are not supported by
|
179
|
+
this datatype. The ·value space· of gMonthDay is the set of calendar
|
180
|
+
dates, as defined in § 3 of [ISO 8601]. Specifically, it is a set of
|
181
|
+
one-day long, annually periodic instances.
|
182
|
+
).freeze,
|
183
|
+
label: "gMonthDay".freeze,
|
184
|
+
type: "rdfs:Datatype".freeze
|
185
|
+
term :gYear,
|
186
|
+
comment: %(
|
187
|
+
gYear represents a gregorian calendar year. The ·value space· of gYear is
|
188
|
+
the set of Gregorian calendar years as defined in § 5.2.1 of [ISO 8601].
|
189
|
+
Specifically, it is a set of one-year long, non-periodic instances e.g.
|
190
|
+
lexical 1999 to represent the whole year 1999, independent of how many
|
191
|
+
months and days this year has.
|
192
|
+
).freeze,
|
193
|
+
label: "gYear".freeze,
|
194
|
+
type: "rdfs:Datatype".freeze
|
195
|
+
term :gYearMonth,
|
196
|
+
comment: %(
|
197
|
+
gYearMonth represents a specific gregorian month in a specific gregorian
|
198
|
+
year. The ·value space· of gYearMonth is the set of Gregorian calendar
|
199
|
+
months as defined in § 5.2.1 of [ISO 8601]. Specifically, it is a set of
|
200
|
+
one-month long, non-periodic instances e.g. 1999-10 to represent the
|
201
|
+
whole month of 1999-10, independent of how many days this month has.
|
202
|
+
).freeze,
|
203
|
+
label: "gYearMonth".freeze,
|
204
|
+
type: "rdfs:Datatype".freeze
|
205
|
+
term :hexBinary,
|
206
|
+
comment: %(
|
207
|
+
hexBinary represents arbitrary hex-encoded binary data. The ·value space·
|
208
|
+
of hexBinary is the set of finite-length sequences of binary octets.
|
209
|
+
).freeze,
|
210
|
+
label: "hexBinary".freeze,
|
211
|
+
type: "rdfs:Datatype".freeze
|
212
|
+
term :int,
|
213
|
+
comment: %(
|
214
|
+
int is ·derived· from long by setting the value of ·maxInclusive· to be
|
215
|
+
2147483647 and ·minInclusive· to be -2147483648. The ·base type· of int
|
216
|
+
is long.
|
217
|
+
).freeze,
|
218
|
+
label: "int".freeze,
|
219
|
+
subClassOf: "xsd:long".freeze,
|
220
|
+
type: "rdfs:Datatype".freeze
|
221
|
+
term :integer,
|
222
|
+
comment: %(
|
223
|
+
integer is ·derived· from decimal by fixing the value of ·fractionDigits·
|
224
|
+
to be 0and disallowing the trailing decimal point. This results in the
|
225
|
+
standard mathematical concept of the integer numbers. The ·value space·
|
226
|
+
of integer is the infinite set {...,-2,-1,0,1,2,...}. The ·base type· of
|
227
|
+
integer is decimal.
|
228
|
+
).freeze,
|
229
|
+
label: "integer".freeze,
|
230
|
+
subClassOf: "xsd:decimal".freeze,
|
231
|
+
type: "rdfs:Datatype".freeze
|
232
|
+
term :language,
|
233
|
+
comment: %(
|
234
|
+
language represents natural language identifiers as defined by by [RFC
|
235
|
+
3066] . The ·value space· of language is the set of all strings that are
|
236
|
+
valid language identifiers as defined [RFC 3066] . The ·lexical space· of
|
237
|
+
language is the set of all strings that conform to the pattern
|
238
|
+
[a-zA-Z]{1,8}\(-[a-zA-Z0-9]{1,8}\)* . The ·base type· of language is token.
|
239
|
+
).freeze,
|
240
|
+
label: "language".freeze,
|
241
|
+
subClassOf: "xsd:token".freeze,
|
242
|
+
type: "rdfs:Datatype".freeze
|
243
|
+
term :long,
|
244
|
+
comment: %(
|
245
|
+
long is ·derived· from integer by setting the value of ·maxInclusive· to
|
246
|
+
be 9223372036854775807 and ·minInclusive· to be -9223372036854775808. The
|
247
|
+
·base type· of long is integer.
|
248
|
+
).freeze,
|
249
|
+
label: "long".freeze,
|
250
|
+
subClassOf: "xsd:integer".freeze,
|
251
|
+
type: "rdfs:Datatype".freeze
|
252
|
+
term :negativeInteger,
|
253
|
+
comment: %(
|
254
|
+
negativeInteger is ·derived· from nonPositiveInteger by setting the value
|
255
|
+
of ·maxInclusive· to be -1. This results in the standard mathematical
|
256
|
+
concept of the negative integers. The ·value space· of negativeInteger is
|
257
|
+
the infinite set {...,-2,-1}. The ·base type· of negativeInteger is
|
258
|
+
nonPositiveInteger.
|
259
|
+
).freeze,
|
260
|
+
label: "negativeInteger".freeze,
|
261
|
+
subClassOf: "xsd:nonPositiveInteger".freeze,
|
262
|
+
type: "rdfs:Datatype".freeze
|
263
|
+
term :nonNegativeInteger,
|
264
|
+
comment: %(
|
265
|
+
nonNegativeInteger is ·derived· from integer by setting the value of
|
266
|
+
·minInclusive· to be 0. This results in the standard mathematical concept
|
267
|
+
of the non-negative integers. The ·value space· of nonNegativeInteger is
|
268
|
+
the infinite set {0,1,2,...}. The ·base type· of nonNegativeInteger is
|
269
|
+
integer.
|
270
|
+
).freeze,
|
271
|
+
label: "nonNegativeInteger".freeze,
|
272
|
+
subClassOf: "xsd:integer".freeze,
|
273
|
+
type: "rdfs:Datatype".freeze
|
274
|
+
term :nonPositiveInteger,
|
275
|
+
comment: %(
|
276
|
+
nonPositiveInteger is ·derived· from integer by setting the value of
|
277
|
+
·maxInclusive· to be 0. This results in the standard mathematical concept
|
278
|
+
of the non-positive integers. The ·value space· of nonPositiveInteger is
|
279
|
+
the infinite set {...,-2,-1,0}. The ·base type· of nonPositiveInteger is
|
280
|
+
integer.
|
281
|
+
).freeze,
|
282
|
+
label: "nonPositiveInteger".freeze,
|
283
|
+
subClassOf: "xsd:integer".freeze,
|
284
|
+
type: "rdfs:Datatype".freeze
|
285
|
+
term :normalizedString,
|
286
|
+
comment: %(
|
287
|
+
normalizedString represents white space normalized strings. The ·value
|
288
|
+
space· of normalizedString is the set of strings that do not contain the
|
289
|
+
carriage return \(#xD\), line feed \(#xA\) nor tab \(#x9\) characters. The
|
290
|
+
·lexical space· of normalizedString is the set of strings that do not
|
291
|
+
contain the carriage return \(#xD\), line feed \(#xA\) nor tab \(#x9\)
|
292
|
+
characters. The ·base type· of normalizedString is string.
|
293
|
+
).freeze,
|
294
|
+
label: "normalizedString".freeze,
|
295
|
+
subClassOf: "xsd:string".freeze,
|
296
|
+
type: "rdfs:Datatype".freeze
|
297
|
+
term :positiveInteger,
|
298
|
+
comment: %(
|
299
|
+
positiveInteger is ·derived· from nonNegativeInteger by setting the value
|
300
|
+
of ·minInclusive· to be 1. This results in the standard mathematical
|
301
|
+
concept of the positive integer numbers. The ·value space· of
|
302
|
+
positiveInteger is the infinite set {1,2,...}. The ·base type· of
|
303
|
+
positiveInteger is nonNegativeInteger.
|
304
|
+
).freeze,
|
305
|
+
label: "positiveInteger".freeze,
|
306
|
+
subClassOf: "xsd:nonNegativeInteger".freeze,
|
307
|
+
type: "rdfs:Datatype".freeze
|
308
|
+
term :short,
|
309
|
+
comment: %(
|
310
|
+
short is ·derived· from int by setting the value of ·maxInclusive· to be
|
311
|
+
32767 and ·minInclusive· to be -32768. The ·base type· of short is int.
|
312
|
+
).freeze,
|
313
|
+
label: "short".freeze,
|
314
|
+
subClassOf: "xsd:int".freeze,
|
315
|
+
type: "rdfs:Datatype".freeze
|
316
|
+
term :string,
|
317
|
+
comment: %(
|
318
|
+
The string datatype represents character strings in XML. The ·value space·
|
319
|
+
of string is the set of finite-length sequences of characters \(as defined
|
320
|
+
in [XML 1.0 \(Second Edition\)]\) that ·match· the Char production from [XML
|
321
|
+
1.0 \(Second Edition\)]. A character is an atomic unit of communication; it
|
322
|
+
is not further specified except to note that every character has a
|
323
|
+
corresponding Universal Character Set code point, which is an integer.
|
324
|
+
).freeze,
|
325
|
+
label: "string".freeze,
|
326
|
+
type: "rdfs:Datatype".freeze
|
327
|
+
term :time,
|
328
|
+
comment: %(
|
329
|
+
time represents an instant of time that recurs every day. The ·value
|
330
|
+
space· of time is the space of time of day values as defined in § 5.3 of
|
331
|
+
[ISO 8601]. Specifically, it is a set of zero-duration daily time
|
332
|
+
instances.
|
333
|
+
).freeze,
|
334
|
+
label: "time".freeze,
|
335
|
+
type: "rdfs:Datatype".freeze
|
336
|
+
term :token,
|
337
|
+
comment: %(
|
338
|
+
token represents tokenized strings. The ·value space· of token is the set
|
339
|
+
of strings that do not contain the carriage return \(#xD\), line feed \(#xA\)
|
340
|
+
nor tab \(#x9\) characters, that have no leading or trailing spaces \(#x20\)
|
341
|
+
and that have no internal sequences of two or more spaces. The ·lexical
|
342
|
+
space· of token is the set of strings that do not contain the carriage
|
343
|
+
return \(#xD\), line feed \(#xA\) nor tab \(#x9\) characters, that have no
|
344
|
+
leading or trailing spaces \(#x20\) and that have no internal sequences of
|
345
|
+
two or more spaces. The ·base type· of token is normalizedString.
|
346
|
+
).freeze,
|
347
|
+
label: "token".freeze,
|
348
|
+
subClassOf: "xsd:normalizedString".freeze,
|
349
|
+
type: "rdfs:Datatype".freeze
|
350
|
+
term :unsignedByte,
|
351
|
+
comment: %(
|
352
|
+
unsignedByte is ·derived· from unsignedShort by setting the value of
|
353
|
+
·maxInclusive· to be 255. The ·base type· of unsignedByte is
|
354
|
+
unsignedShort.
|
355
|
+
).freeze,
|
356
|
+
label: "unsignedByte".freeze,
|
357
|
+
subClassOf: "xsd:unsignedShort".freeze,
|
358
|
+
type: "rdfs:Datatype".freeze
|
359
|
+
term :unsignedInt,
|
360
|
+
comment: %(
|
361
|
+
unsignedInt is ·derived· from unsignedLong by setting the value of
|
362
|
+
·maxInclusive· to be 4294967295. The ·base type· of unsignedInt is
|
363
|
+
unsignedLong.
|
364
|
+
).freeze,
|
365
|
+
label: "unsignedInt".freeze,
|
366
|
+
subClassOf: "xsd:unsignedLong".freeze,
|
367
|
+
type: "rdfs:Datatype".freeze
|
368
|
+
term :unsignedLong,
|
369
|
+
comment: %(
|
370
|
+
unsignedLong is ·derived· from nonNegativeInteger by setting the value of
|
371
|
+
·maxInclusive· to be 18446744073709551615. The ·base type· of
|
372
|
+
unsignedLong is nonNegativeInteger.
|
373
|
+
).freeze,
|
374
|
+
label: "unsignedLong".freeze,
|
375
|
+
subClassOf: "xsd:nonNegativeInteger".freeze,
|
376
|
+
type: "rdfs:Datatype".freeze
|
377
|
+
term :unsignedShort,
|
378
|
+
comment: %(
|
379
|
+
unsignedShort is ·derived· from unsignedInt by setting the value of
|
380
|
+
·maxInclusive· to be 65535. The ·base type· of unsignedShort is
|
381
|
+
unsignedInt.
|
382
|
+
).freeze,
|
383
|
+
label: "unsignedShort".freeze,
|
384
|
+
subClassOf: "xsd:unsignedInt".freeze,
|
385
|
+
type: "rdfs:Datatype".freeze
|
57
386
|
end
|
58
387
|
end
|
data/lib/rdf/writer.rb
CHANGED
@@ -207,6 +207,8 @@ module RDF
|
|
207
207
|
# @option options [#to_s] :base_uri (nil)
|
208
208
|
# the base URI to use when constructing relative URIs (not supported
|
209
209
|
# by all writers)
|
210
|
+
# @option options [Boolean] :unique_bnodes (false)
|
211
|
+
# Use unique {Node} identifiers, defaults to using the identifier which the node was originall initialized with (if any). Implementations should ensure that Nodes are serialized using a unique representation independent of any identifier used when creating the node. See {NTriples#format_node}
|
210
212
|
# @yield [writer] `self`
|
211
213
|
# @yieldparam [RDF::Writer] writer
|
212
214
|
# @yieldreturn [void]
|
@@ -429,7 +431,9 @@ module RDF
|
|
429
431
|
|
430
432
|
##
|
431
433
|
# @param [RDF::Node] value
|
432
|
-
# @param [Hash{Symbol => Object}] options
|
434
|
+
# @param [Hash{Symbol => Object}] options = ({})
|
435
|
+
# @option options [Boolean] :unique_bnodes (false)
|
436
|
+
# Serialize node using unique identifier, rather than any used to create the node.
|
433
437
|
# @return [String]
|
434
438
|
# @raise [NotImplementedError] unless implemented in subclass
|
435
439
|
# @abstract
|
@@ -439,7 +443,7 @@ module RDF
|
|
439
443
|
|
440
444
|
##
|
441
445
|
# @param [RDF::URI] value
|
442
|
-
# @param [Hash{Symbol => Object}] options
|
446
|
+
# @param [Hash{Symbol => Object}] options = ({})
|
443
447
|
# @return [String]
|
444
448
|
# @raise [NotImplementedError] unless implemented in subclass
|
445
449
|
# @abstract
|
@@ -449,7 +453,7 @@ module RDF
|
|
449
453
|
|
450
454
|
##
|
451
455
|
# @param [RDF::Literal, String, #to_s] value
|
452
|
-
# @param [Hash{Symbol => Object}] options
|
456
|
+
# @param [Hash{Symbol => Object}] options = ({})
|
453
457
|
# @return [String]
|
454
458
|
# @raise [NotImplementedError] unless implemented in subclass
|
455
459
|
# @abstract
|
@@ -459,7 +463,7 @@ module RDF
|
|
459
463
|
|
460
464
|
##
|
461
465
|
# @param [RDF::List] value
|
462
|
-
# @param [Hash{Symbol => Object}] options
|
466
|
+
# @param [Hash{Symbol => Object}] options = ({})
|
463
467
|
# @return [String]
|
464
468
|
# @abstract
|
465
469
|
# @since 0.2.3
|