rdf 1.1.8 → 1.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 644c6163b7f04341f59f666dc563e29032e6143b
4
- data.tar.gz: acc35d375a889a6a05c7e4d459504fca58ff1210
3
+ metadata.gz: a681b0f9375a55544c4a666e7d9b740cc98b11f1
4
+ data.tar.gz: 8182dbc42d7c64e27c73673c797c8baa29ecf4f1
5
5
  SHA512:
6
- metadata.gz: db9a55622ac5c7316ea8ab92eb69466142a61c11e7c8f0ea3c1da6492c4e1c51107907daf79cfb35b69fd6b86625b6de3c36aced7639bdf30a02b052ea607f68
7
- data.tar.gz: fead177f692a90e6a6fd90c3bb9a85976588c4752a2e92e3612e98748cf0ae3d52b5140ea39ff0479e954006e861abc960bace86a3f54b7a9c4afcf8b7b510ab
6
+ metadata.gz: be0da29f8e4f6f4e0e8539a63b6542354493b4610fa6086251cb8a12f0bcf047d30bb0ceebc557a2ce4b32c24c6361c0f9b33e3d7c978a5a5f11627a5f853659
7
+ data.tar.gz: c2b4889aa55304e0b48e259db3086758d32f28a79806345db50f4277b8c83cec56bd087da77230d7c3513e4ca84b6ff2a5eb17cd91b5aef1083f1ea8c26c31c7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.8
1
+ 1.1.9
data/lib/rdf.rb CHANGED
@@ -198,8 +198,8 @@ module RDF
198
198
 
199
199
  ##
200
200
  # respond to module or RDFV
201
- def self.respond_to?(method)
202
- super || RDF::RDFV.respond_to?(method)
201
+ def self.respond_to?(method, include_all = false)
202
+ super || RDF::RDFV.respond_to?(method, include_all)
203
203
  end
204
204
 
205
205
  ##
@@ -2,7 +2,7 @@ module RDF; class Literal
2
2
  ##
3
3
  # A boolean literal.
4
4
  #
5
- # @see http://www.w3.org/TR/xmlschema-2/#boolean
5
+ # @see http://www.w3.org/TR/xmlschema11-2/#boolean
6
6
  # @since 0.2.1
7
7
  class Boolean < Literal
8
8
  DATATYPE = XSD.boolean
@@ -30,7 +30,7 @@ module RDF; class Literal
30
30
  # Converts this literal into its canonical lexical representation.
31
31
  #
32
32
  # @return [RDF::Literal] `self`
33
- # @see http://www.w3.org/TR/xmlschema-2/#boolean-canonical-representation
33
+ # @see http://www.w3.org/TR/xmlschema11-2/#boolean-canonical-representation
34
34
  def canonicalize!
35
35
  @string = (@object ? :true : :false).to_s
36
36
  self
@@ -2,7 +2,7 @@ module RDF; class Literal
2
2
  ##
3
3
  # A date literal.
4
4
  #
5
- # @see http://www.w3.org/TR/xmlschema-2/#date
5
+ # @see http://www.w3.org/TR/xmlschema11-2/#date
6
6
  # @since 0.2.1
7
7
  class Date < Literal
8
8
  DATATYPE = XSD.date
@@ -29,7 +29,7 @@ module RDF; class Literal
29
29
  # Note that the timezone is recoverable for xsd:date, where it is not for xsd:dateTime and xsd:time, which are both transformed relative to Z, if a timezone is provided.
30
30
  #
31
31
  # @return [RDF::Literal] `self`
32
- # @see http://www.w3.org/TR/xmlschema-2/#date
32
+ # @see http://www.w3.org/TR/xmlschema11-2/#date
33
33
  def canonicalize!
34
34
  @string = @object.strftime(FORMAT) + self.tz.to_s if self.valid?
35
35
  self
@@ -2,7 +2,7 @@ module RDF; class Literal
2
2
  ##
3
3
  # A date/time literal.
4
4
  #
5
- # @see http://www.w3.org/TR/xmlschema-2/#dateTime
5
+ # @see http://www.w3.org/TR/xmlschema11-2/#dateTime#boolean
6
6
  # @since 0.2.1
7
7
  class DateTime < Literal
8
8
  DATATYPE = XSD.dateTime
@@ -28,7 +28,7 @@ module RDF; class Literal
28
28
  # with date and time normalized to UTC.
29
29
  #
30
30
  # @return [RDF::Literal] `self`
31
- # @see http://www.w3.org/TR/xmlschema-2/#dateTime
31
+ # @see http://www.w3.org/TR/xmlschema11-2/#dateTime
32
32
  def canonicalize!
33
33
  if self.valid?
34
34
  @string = if has_timezone?
@@ -8,7 +8,7 @@ module RDF; class Literal
8
8
  # RDF::Literal(BigDecimal('1.0')) * 0.5 #=> RDF::Literal(BigDecimal('0.5'))
9
9
  # RDF::Literal(BigDecimal('1.0')) / 0.5 #=> RDF::Literal(BigDecimal('2.0'))
10
10
  #
11
- # @see http://www.w3.org/TR/xmlschema-2/#decimal
11
+ # @see http://www.w3.org/TR/xmlschema11-2/#decimal
12
12
  # @since 0.2.1
13
13
  class Decimal < Numeric
14
14
  DATATYPE = XSD.decimal
@@ -31,7 +31,7 @@ module RDF; class Literal
31
31
  # Converts this literal into its canonical lexical representation.
32
32
  #
33
33
  # @return [RDF::Literal] `self`
34
- # @see http://www.w3.org/TR/xmlschema-2/#decimal
34
+ # @see http://www.w3.org/TR/xmlschema11-2/#decimal
35
35
  def canonicalize!
36
36
  # Can't use simple %f transformation due to special requirements from
37
37
  # N3 tests in representation
@@ -8,7 +8,7 @@ module RDF; class Literal
8
8
  # RDF::Literal(Math::PI) * 2 #=> RDF::Literal(Math::PI * 2)
9
9
  # RDF::Literal(Math::PI) / 2 #=> RDF::Literal(Math::PI / 2)
10
10
  #
11
- # @see http://www.w3.org/TR/xmlschema-2/#double
11
+ # @see http://www.w3.org/TR/xmlschema11-2/#double
12
12
  # @since 0.2.1
13
13
  class Double < Numeric
14
14
  DATATYPE = XSD.double
@@ -38,7 +38,7 @@ module RDF; class Literal
38
38
  # Converts this literal into its canonical lexical representation.
39
39
  #
40
40
  # @return [RDF::Literal] `self`
41
- # @see http://www.w3.org/TR/xmlschema-2/#double
41
+ # @see http://www.w3.org/TR/xmlschema11-2/#double
42
42
  def canonicalize!
43
43
  # Can't use simple %f transformation due to special requirements from
44
44
  # N3 tests in representation
@@ -8,7 +8,7 @@ module RDF; class Literal
8
8
  # RDF::Literal(6) * 7 #=> RDF::Literal(42)
9
9
  # RDF::Literal(84) / 2 #=> RDF::Literal(42)
10
10
  #
11
- # @see http://www.w3.org/TR/xmlschema-2/#integer
11
+ # @see http://www.w3.org/TR/xmlschema11-2/#integer
12
12
  # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#integer
13
13
  # @since 0.2.1
14
14
  class Integer < Decimal
@@ -34,7 +34,7 @@ module RDF; class Literal
34
34
  # Converts this literal into its canonical lexical representation.
35
35
  #
36
36
  # @return [RDF::Literal] `self`
37
- # @see http://www.w3.org/TR/xmlschema-2/#integer
37
+ # @see http://www.w3.org/TR/xmlschema11-2/#integer
38
38
  def canonicalize!
39
39
  @string = @object.to_s if @object
40
40
  self
@@ -7,7 +7,7 @@ module RDF; class Literal
7
7
  # representation for `xsd:dateTime`: "hh:mm:ss.sss" with an optional
8
8
  # following time zone indicator.
9
9
  #
10
- # @see http://www.w3.org/TR/xmlschema-2/#time
10
+ # @see http://www.w3.org/TR/xmlschema11-2/#time
11
11
  # @since 0.2.1
12
12
  class Time < Literal
13
13
  DATATYPE = XSD.time
@@ -40,7 +40,7 @@ module RDF; class Literal
40
40
  # Additionally, the canonical representation for midnight is 00:00:00.
41
41
  #
42
42
  # @return [RDF::Literal] `self`
43
- # @see http://www.w3.org/TR/xmlschema-2/#time
43
+ # @see http://www.w3.org/TR/xmlschema11-2/#time
44
44
  def canonicalize!
45
45
  if self.valid?
46
46
  @string = if has_timezone?
@@ -2,7 +2,7 @@ module RDF; class Literal
2
2
  ##
3
3
  # A token literal.
4
4
  #
5
- # @see http://www.w3.org/TR/xmlschema-2/#token
5
+ # @see http://www.w3.org/TR/xmlschema11-2/#token
6
6
  # @since 0.2.3
7
7
  class Token < Literal
8
8
  DATATYPE = XSD.token
@@ -22,7 +22,7 @@ module RDF; class Literal
22
22
  # Converts this literal into its canonical lexical representation.
23
23
  #
24
24
  # @return [RDF::Literal] `self`
25
- # @see http://www.w3.org/TR/xmlschema-2/#boolean
25
+ # @see http://www.w3.org/TR/xmlschema11-2/#boolean
26
26
  def canonicalize!
27
27
  @string = @object.to_s if @object
28
28
  self
@@ -156,10 +156,7 @@ module RDF
156
156
  # Returns a symbol appropriate to use with RDF::Reader.for()
157
157
  # @return [Symbol]
158
158
  def self.to_sym
159
- elements = self.to_s.split("::")
160
- sym = elements.pop
161
- sym = elements.pop if sym == 'Reader'
162
- sym.downcase.to_s.to_sym
159
+ self.format.to_sym
163
160
  end
164
161
 
165
162
  ##
@@ -5,351 +5,476 @@ module RDF
5
5
  class XSD < RDF::Vocabulary("http://www.w3.org/2001/XMLSchema#")
6
6
 
7
7
  # Datatype definitions
8
+ term :ENTITIES,
9
+ comment: %(
10
+ ENTITIES represents the ENTITIES attribute type from [XML]. The ·value
11
+ space· of ENTITIES is the set of finite, non-zero-length sequences of
12
+ ·ENTITY· values that have been declared as unparsed entities in a document
13
+ type definition. The ·lexical space· of ENTITIES is the set of
14
+ space-separated lists of tokens, of which each token is in the ·lexical
15
+ space· of ENTITY. The ·item type· of ENTITIES is ENTITY. ENTITIES is
16
+ derived from ·anySimpleType· in two steps: an anonymous list type is
17
+ defined, whose ·item type· is ENTITY; this is the ·base type· of ENTITIES,
18
+ which restricts its value space to lists with at least one item.
19
+ ).freeze,
20
+ label: "ENTITIES".freeze,
21
+ subClassOf: "xsd:anySimpleType".freeze,
22
+ type: "rdfs:Datatype".freeze
23
+ term :ENTITY,
24
+ comment: %(
25
+ ENTITY represents the ENTITY attribute type from [XML]. The ·value space·
26
+ of ENTITY is the set of all strings that ·match· the NCName production in
27
+ [Namespaces in XML] and have been declared as an unparsed entity in a
28
+ document type definition. The ·lexical space· of ENTITY is the set of all
29
+ strings that ·match· the NCName production in [Namespaces in XML]. The
30
+ ·base type· of ENTITY is NCName.
31
+ ).freeze,
32
+ label: "ENTITY".freeze,
33
+ subClassOf: "xsd:NCName".freeze,
34
+ type: "rdfs:Datatype".freeze
35
+ term :ID,
36
+ comment: %(
37
+ ID represents the ID attribute type from [XML]. The ·value space· of ID is
38
+ the set of all strings that ·match· the NCName production in [Namespaces
39
+ in XML]. The ·lexical space· of ID is the set of all strings that ·match·
40
+ the NCName production in [Namespaces in XML]. The ·base type· of ID is
41
+ NCName.
42
+ ).freeze,
43
+ label: "ID".freeze,
44
+ subClassOf: "xsd:NCName".freeze,
45
+ type: "rdfs:Datatype".freeze
46
+ term :IDREF,
47
+ comment: %(
48
+ IDREF represents the IDREF attribute type from [XML]. The ·value space· of
49
+ IDREF is the set of all strings that ·match· the NCName production in
50
+ [Namespaces in XML]. The ·lexical space· of IDREF is the set of strings
51
+ that ·match· the NCName production in [Namespaces in XML]. The ·base type·
52
+ of IDREF is NCName.
53
+ ).freeze,
54
+ label: "IDREF".freeze,
55
+ subClassOf: "xsd:NCName".freeze,
56
+ type: "rdfs:Datatype".freeze
57
+ term :IDREFS,
58
+ comment: %(
59
+ IDREFS represents the IDREFS attribute type from [XML]. The ·value space·
60
+ of IDREFS is the set of finite, non-zero-length sequences of IDREFs. The
61
+ ·lexical space· of IDREFS is the set of space-separated lists of tokens, of
62
+ which each token is in the ·lexical space· of IDREF. The ·item type· of
63
+ IDREFS is IDREF. IDREFS is derived from ·anySimpleType· in two steps: an
64
+ anonymous list type is defined, whose ·item type· is IDREF; this is the
65
+ ·base type· of IDREFS, which restricts its value space to lists with at
66
+ least one item.
67
+ ).freeze,
68
+ label: "IDREFS".freeze,
69
+ subClassOf: "xsd:anySimpleType".freeze,
70
+ type: "rdfs:Datatype".freeze
8
71
  term :NCName,
9
72
  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,
73
+ NCName represents XML "non-colonized" Names. The ·value space· of NCName
74
+ is the set of all strings which ·match· the NCName production of
75
+ [Namespaces in XML]. The ·lexical space· of NCName is the set of all
76
+ strings which ·match· the NCName production of [Namespaces in XML]. The
77
+ ·base type· of NCName is Name.
78
+ ).freeze,
16
79
  label: "NCName".freeze,
17
- subClassOf: "xsd:name".freeze,
80
+ subClassOf: "xsd:Name".freeze,
18
81
  type: "rdfs:Datatype".freeze
19
82
  term :NMTOKEN,
20
83
  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,
84
+ NMTOKEN represents the NMTOKEN attribute type from [XML]. The ·value
85
+ space· of NMTOKEN is the set of tokens that ·match· the Nmtoken production
86
+ in [XML]. The ·lexical space· of NMTOKEN is the set of strings that
87
+ ·match· the Nmtoken production in [XML]. The ·base type· of NMTOKEN is
88
+ token.
89
+ ).freeze,
27
90
  label: "NMTOKEN".freeze,
28
91
  subClassOf: "xsd:token".freeze,
29
92
  type: "rdfs:Datatype".freeze
93
+ term :NMTOKENS,
94
+ comment: %(
95
+ NMTOKENS represents the NMTOKENS attribute type from [XML]. The ·value
96
+ space· of NMTOKENS is the set of finite, non-zero-length sequences of
97
+ ·NMTOKEN·s. The ·lexical space· of NMTOKENS is the set of space-separated
98
+ lists of tokens, of which each token is in the ·lexical space· of NMTOKEN.
99
+ The ·item type· of NMTOKENS is NMTOKEN. NMTOKENS is derived from
100
+ ·anySimpleType· in two steps: an anonymous list type is defined, whose
101
+ ·item type· is NMTOKEN; this is the ·base type· of NMTOKENS, which
102
+ restricts its value space to lists with at least one item.
103
+ ).freeze,
104
+ label: "NMTOKENS".freeze,
105
+ subClassOf: "xsd:anySimpleType".freeze,
106
+ type: "rdfs:Datatype".freeze
107
+ term :NOTATION,
108
+ comment: %(
109
+ NOTATION represents the NOTATION attribute type from [XML]. The ·value
110
+ space· of NOTATION is the set of QNames of notations declared in the
111
+ current schema. The ·lexical space· of NOTATION is the set of all names of
112
+ notations declared in the current schema \(in the form of QNames\).
113
+ ).freeze,
114
+ label: "NOTATION".freeze,
115
+ subClassOf: "xsd:anyAtomicType".freeze,
116
+ type: "rdfs:Datatype".freeze
30
117
  term :Name,
31
118
  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,
119
+ Name represents XML Names. The ·value space· of Name is the set of all
120
+ strings which ·match· the Name production of [XML]. The ·lexical space· of
121
+ Name is the set of all strings which ·match· the Name production of [XML].
122
+ The ·base type· of Name is token.
123
+ ).freeze,
38
124
  label: "Name".freeze,
39
125
  subClassOf: "xsd:token".freeze,
40
126
  type: "rdfs:Datatype".freeze
127
+ term :QName,
128
+ comment: %(
129
+ QName represents XML qualified names. The ·value space· of QName is the set
130
+ of tuples {namespace name, local part}, where namespace name is an anyURI
131
+ and local part is an NCName. The ·lexical space· of QName is the set of
132
+ strings that ·match· the QName production of [Namespaces in XML].
133
+ ).freeze,
134
+ label: "QName".freeze,
135
+ subClassOf: "xsd:anyAtomicType".freeze,
136
+ type: "rdfs:Datatype".freeze
137
+ term :anyAtomicType,
138
+ comment: %(
139
+ anyAtomicType is a special ·restriction· of anySimpleType. The ·value· and
140
+ ·lexical spaces· of anyAtomicType are the unions of the ·value· and
141
+ ·lexical spaces· of all the ·primitive· datatypes, and anyAtomicType is
142
+ their ·base type·.
143
+ ).freeze,
144
+ label: "anySimpleType".freeze,
145
+ subClassOf: "xsd:anyType".freeze,
146
+ type: "rdfs:Datatype".freeze
147
+ term :anySimpleType,
148
+ comment: %(
149
+ The definition of anySimpleType is a special ·restriction· of anyType. The
150
+ ·lexical space· of anySimpleType is the set of all sequences of Unicode
151
+ characters, and its ·value space· includes all ·atomic values· and all
152
+ finite-length lists of zero or more ·atomic values·.
153
+ ).freeze,
154
+ label: "anySimpleType".freeze,
155
+ subClassOf: "xsd:anyType".freeze,
156
+ type: "rdfs:Datatype".freeze
157
+ term :anyType,
158
+ comment: %(
159
+ The root of the [XML Schema 1.1] datatype heirarchy.
160
+ ).freeze,
161
+ label: "anyType".freeze,
162
+ type: "rdfs:Datatype".freeze
41
163
  term :anyURI,
42
164
  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,
165
+ anyURI represents an Internationalized Resource Identifier Reference
166
+ \(IRI\). An anyURI value can be absolute or relative, and may have an
167
+ optional fragment identifier \(i.e., it may be an IRI Reference\). This
168
+ type should be used when the value fulfills the role of an IRI, as
169
+ defined in [RFC 3987] or its successor\(s\) in the IETF Standards Track.
170
+ ).freeze,
49
171
  label: "anyURI".freeze,
172
+ subClassOf: "xsd:anyAtomicType".freeze,
50
173
  type: "rdfs:Datatype".freeze
51
174
  term :base64Binary,
52
175
  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,
176
+ base64Binary represents arbitrary Base64-encoded binary data. For
177
+ base64Binary data the entire binary stream is encoded using the Base64
178
+ Encoding defined in [RFC 3548], which is derived from the encoding
179
+ described in [RFC 2045].
180
+ ).freeze,
58
181
  label: "base64Binary".freeze,
182
+ subClassOf: "xsd:anyAtomicType".freeze,
59
183
  type: "rdfs:Datatype".freeze
60
184
  term :boolean,
61
185
  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,
186
+ boolean represents the values of two-valued logic.
187
+ ).freeze,
188
+ label: "base64Binary".freeze,
189
+ subClassOf: "xsd:anyAtomicType".freeze,
66
190
  type: "rdfs:Datatype".freeze
67
191
  term :byte,
68
192
  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,
193
+ byte is ·derived· from short by setting the value of ·maxInclusive· to be
194
+ 127 and ·minInclusive· to be -128. The ·base type· of byte is short.
195
+ ).freeze,
72
196
  label: "byte".freeze,
73
197
  subClassOf: "xsd:short".freeze,
74
198
  type: "rdfs:Datatype".freeze
75
199
  term :date,
76
200
  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,
201
+ date represents top-open intervals of exactly one day in length on the
202
+ timelines of dateTime, beginning on the beginning moment of each day, up to
203
+ but not including the beginning moment of the next day\). For non-timezoned
204
+ values, the top-open intervals disjointly cover the non-timezoned timeline,
205
+ one per day. For timezoned values, the intervals begin at every minute and
206
+ therefore overlap.
207
+ ).freeze,
85
208
  label: "date".freeze,
209
+ subClassOf: "xsd:anyAtomicType".freeze,
86
210
  type: "rdfs:Datatype".freeze
87
211
  term :dateTime,
88
212
  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,
213
+ dateTime represents instants of time, optionally marked with a particular
214
+ time zone offset. Values representing the same instant but having different
215
+ time zone offsets are equal but not identical.
216
+ ).freeze,
100
217
  label: "dateTime".freeze,
218
+ subClassOf: "xsd:anyAtomicType".freeze,
219
+ type: "rdfs:Datatype".freeze
220
+ term :dateTimeStamp,
221
+ comment: %(
222
+ The dateTimeStamp datatype is ·derived· from dateTime by giving the value
223
+ required to its explicitTimezone facet. The result is that all values of
224
+ dateTimeStamp are required to have explicit time zone offsets and the
225
+ datatype is totally ordered.
226
+ ).freeze,
227
+ label: "dateTimeStamp".freeze,
228
+ subClassOf: "xsd:dateTime".freeze,
229
+ type: "rdfs:Datatype".freeze
230
+ term :dayTimeDuration,
231
+ comment: %(
232
+ dayTimeDuration is a datatype ·derived· from duration by restricting its
233
+ ·lexical representations· to instances of dayTimeDurationLexicalRep. The
234
+ ·value space· of dayTimeDuration is therefore that of duration restricted
235
+ to those whose ·months· property is 0. This results in a duration datatype
236
+ which is totally ordered.
237
+ ).freeze,
238
+ label: "dayTimeDuration".freeze,
239
+ subClassOf: "xsd:duration".freeze,
101
240
  type: "rdfs:Datatype".freeze
102
241
  term :decimal,
103
242
  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,
243
+ decimal represents a subset of the real numbers, which can be represented
244
+ by decimal numerals. The ·value space· of decimal is the set of numbers
245
+ that can be obtained by dividing an integer by a non-negative power of ten,
246
+ i.e., expressible as i / 10n where i and n are integers and n ≥ 0.
247
+ Precision is not reflected in this value space; the number 2.0 is not
248
+ distinct from the number 2.00. The order relation on decimal is the order
249
+ relation on real numbers, restricted to this subset.
250
+ ).freeze,
112
251
  label: "decimal".freeze,
252
+ subClassOf: "xsd:anyAtomicType".freeze,
113
253
  type: "rdfs:Datatype".freeze
114
254
  term :double,
115
255
  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,
256
+ The double datatype is patterned after the IEEE double-precision 64-bit
257
+ floating point datatype [IEEE 754-2008]. Each floating point datatype has a
258
+ value space that is a subset of the rational numbers. Floating point
259
+ numbers are often used to approximate arbitrary real numbers.
260
+ ).freeze,
128
261
  label: "double".freeze,
262
+ subClassOf: "xsd:anyAtomicType".freeze,
129
263
  type: "rdfs:Datatype".freeze
130
264
  term :duration,
131
265
  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,
266
+ duration is a datatype that represents durations of time. The concept of
267
+ duration being captured is drawn from those of [ISO 8601], specifically
268
+ durations without fixed endpoints. For example, "15 days" \(whose most
269
+ common lexical representation in duration is "'P15D'"\) is a duration value;
270
+ "15 days beginning 12 July 1995" and "15 days ending 12 July 1995" are not
271
+ duration values. duration can provide addition and subtraction operations
272
+ between duration values and between duration/dateTime value pairs, and can
273
+ be the result of subtracting dateTime values. However, only addition to
274
+ dateTime is required for XML Schema processing and is defined in the
275
+ function ·dateTimePlusDuration·.
276
+ ).freeze,
139
277
  label: "duration".freeze,
278
+ subClassOf: "xsd:anyAtomicType".freeze,
140
279
  type: "rdfs:Datatype".freeze
141
280
  term :float,
142
281
  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·.
282
+ The float datatype is patterned after the IEEE single-precision 32-bit
283
+ floating point datatype [IEEE 754-2008]. Its value space is a subset of the
284
+ rational numbers. Floating point numbers are often used to approximate
285
+ arbitrary real numbers.
153
286
  ).freeze,
154
287
  label: "float".freeze,
288
+ subClassOf: "xsd:anyAtomicType".freeze,
155
289
  type: "rdfs:Datatype".freeze
156
290
  term :gDay,
157
291
  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,
292
+ gDay represents whole days within an arbitrary month—days that recur at the
293
+ same point in each \(Gregorian\) month. This datatype is used to represent a
294
+ specific day of the month. To indicate, for example, that an employee gets
295
+ a paycheck on the 15th of each month. \(Obviously, days beyond 28 cannot
296
+ occur in all months; they are nonetheless permitted, up to 31.\)
297
+ ).freeze,
164
298
  label: "gDay".freeze,
299
+ subClassOf: "xsd:anyAtomicType".freeze,
165
300
  type: "rdfs:Datatype".freeze
166
301
  term :gMonth,
167
302
  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,
303
+ gMonth represents whole \(Gregorian\) months within an arbitrary year—months
304
+ that recur at the same point in each year. It might be used, for example,
305
+ to say what month annual Thanksgiving celebrations fall in different
306
+ countries \(--11 in the United States, --10 in Canada, and possibly other
307
+ months in other countries\).
308
+ ).freeze,
173
309
  label: "gMonth".freeze,
310
+ subClassOf: "xsd:anyAtomicType".freeze,
174
311
  type: "rdfs:Datatype".freeze
175
312
  term :gMonthDay,
176
313
  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,
314
+ gMonthDay represents whole calendar days that recur at the same point in
315
+ each calendar year, or that occur in some arbitrary calendar year.
316
+ \(Obviously, days beyond 28 cannot occur in all Februaries; 29 is
317
+ nonetheless permitted.\)
318
+ ).freeze,
183
319
  label: "gMonthDay".freeze,
320
+ subClassOf: "xsd:anyAtomicType".freeze,
184
321
  type: "rdfs:Datatype".freeze
185
322
  term :gYear,
186
323
  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,
324
+ gYear represents Gregorian calendar years.
325
+ ).freeze,
193
326
  label: "gYear".freeze,
327
+ subClassOf: "xsd:anyAtomicType".freeze,
194
328
  type: "rdfs:Datatype".freeze
195
329
  term :gYearMonth,
196
330
  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,
331
+ gYearMonth represents specific whole Gregorian months in specific Gregorian years.
332
+ ).freeze,
203
333
  label: "gYearMonth".freeze,
334
+ subClassOf: "xsd:anyAtomicType".freeze,
204
335
  type: "rdfs:Datatype".freeze
205
336
  term :hexBinary,
206
337
  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,
338
+ hexBinary represents arbitrary hex-encoded binary data.
339
+ ).freeze,
210
340
  label: "hexBinary".freeze,
341
+ subClassOf: "xsd:anyAtomicType".freeze,
211
342
  type: "rdfs:Datatype".freeze
212
343
  term :int,
213
344
  comment: %(
214
345
  int is ·derived· from long by setting the value of ·maxInclusive· to be
215
346
  2147483647 and ·minInclusive· to be -2147483648. The ·base type· of int
216
347
  is long.
217
- ).freeze,
348
+ ).freeze,
218
349
  label: "int".freeze,
219
350
  subClassOf: "xsd:long".freeze,
220
351
  type: "rdfs:Datatype".freeze
221
352
  term :integer,
222
353
  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,
354
+ integer is ·derived· from decimal by fixing the value of ·fractionDigits·
355
+ to be 0 and disallowing the trailing decimal point. This results in the
356
+ standard mathematical concept of the integer numbers. The ·value space· of
357
+ integer is the infinite set {...,-2,-1,0,1,2,...}. The ·base type· of
358
+ integer is decimal.
359
+ ).freeze,
229
360
  label: "integer".freeze,
230
361
  subClassOf: "xsd:decimal".freeze,
231
362
  type: "rdfs:Datatype".freeze
232
363
  term :language,
233
364
  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,
365
+ language represents formal natural language identifiers, as defined by [BCP
366
+ 47] \(currently represented by [RFC 4646] and [RFC 4647]\) or its
367
+ successor\(s\). The ·value space· and ·lexical space· of language are the set
368
+ of all strings that conform to the pattern [a-zA-Z]{1,8}\(-[a-zA-Z0-9]{1,8}\)*
369
+ ).freeze,
240
370
  label: "language".freeze,
241
371
  subClassOf: "xsd:token".freeze,
242
372
  type: "rdfs:Datatype".freeze
243
373
  term :long,
244
374
  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,
375
+ long is ·derived· from integer by setting the value of ·maxInclusive· to
376
+ be 9223372036854775807 and ·minInclusive· to be -9223372036854775808. The
377
+ ·base type· of long is integer.
378
+ ).freeze,
249
379
  label: "long".freeze,
250
380
  subClassOf: "xsd:integer".freeze,
251
381
  type: "rdfs:Datatype".freeze
252
382
  term :negativeInteger,
253
383
  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,
384
+ negativeInteger is ·derived· from nonPositiveInteger by setting the value
385
+ of ·maxInclusive· to be -1. This results in the standard mathematical
386
+ concept of the negative integers. The ·value space· of negativeInteger is
387
+ the infinite set {...,-2,-1}. The ·base type· of negativeInteger is
388
+ nonPositiveInteger.
389
+ ).freeze,
260
390
  label: "negativeInteger".freeze,
261
391
  subClassOf: "xsd:nonPositiveInteger".freeze,
262
392
  type: "rdfs:Datatype".freeze
263
393
  term :nonNegativeInteger,
264
394
  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,
395
+ nonNegativeInteger is ·derived· from integer by setting the value of
396
+ ·minInclusive· to be 0. This results in the standard mathematical concept
397
+ of the non-negative integers. The ·value space· of nonNegativeInteger is
398
+ the infinite set {0,1,2,...}. The ·base type· of nonNegativeInteger is
399
+ integer.
400
+ ).freeze,
271
401
  label: "nonNegativeInteger".freeze,
272
402
  subClassOf: "xsd:integer".freeze,
273
403
  type: "rdfs:Datatype".freeze
274
404
  term :nonPositiveInteger,
275
405
  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,
406
+ nonPositiveInteger is ·derived· from integer by setting the value of
407
+ ·maxInclusive· to be 0. This results in the standard mathematical concept
408
+ of the non-positive integers. The ·value space· of nonPositiveInteger is
409
+ the infinite set {...,-2,-1,0}. The ·base type· of nonPositiveInteger is
410
+ integer.
411
+ ).freeze,
282
412
  label: "nonPositiveInteger".freeze,
283
413
  subClassOf: "xsd:integer".freeze,
284
414
  type: "rdfs:Datatype".freeze
285
415
  term :normalizedString,
286
416
  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,
417
+ normalizedString represents white space normalized strings. The ·value
418
+ space· of normalizedString is the set of strings that do not contain the
419
+ carriage return \(#xD\), line feed \(#xA\) nor tab \(#x9\) characters. The
420
+ ·lexical space· of normalizedString is the set of strings that do not
421
+ contain the carriage return \(#xD\), line feed \(#xA\) nor tab \(#x9\)
422
+ characters. The ·base type· of normalizedString is string.
423
+ ).freeze,
294
424
  label: "normalizedString".freeze,
295
425
  subClassOf: "xsd:string".freeze,
296
426
  type: "rdfs:Datatype".freeze
297
427
  term :positiveInteger,
298
428
  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,
429
+ positiveInteger is ·derived· from nonNegativeInteger by setting the value
430
+ of ·minInclusive· to be 1. This results in the standard mathematical
431
+ concept of the positive integer numbers. The ·value space· of
432
+ positiveInteger is the infinite set {1,2,...}. The ·base type· of
433
+ positiveInteger is nonNegativeInteger.
434
+ ).freeze,
305
435
  label: "positiveInteger".freeze,
306
436
  subClassOf: "xsd:nonNegativeInteger".freeze,
307
437
  type: "rdfs:Datatype".freeze
308
438
  term :short,
309
439
  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,
440
+ short is ·derived· from int by setting the value of ·maxInclusive· to be
441
+ 32767 and ·minInclusive· to be -32768. The ·base type· of short is int.
442
+ ).freeze,
313
443
  label: "short".freeze,
314
444
  subClassOf: "xsd:int".freeze,
315
445
  type: "rdfs:Datatype".freeze
316
446
  term :string,
317
447
  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,
448
+ The string datatype represents character strings in XML.
449
+ ).freeze,
325
450
  label: "string".freeze,
451
+ subClassOf: "xsd:anyAtomicType".freeze,
326
452
  type: "rdfs:Datatype".freeze
327
453
  term :time,
328
454
  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,
455
+ time represents instants of time that recur at the same point in each
456
+ calendar day, or that occur in some arbitrary calendar day.
457
+ ).freeze,
334
458
  label: "time".freeze,
459
+ subClassOf: "xsd:anyAtomicType".freeze,
335
460
  type: "rdfs:Datatype".freeze
336
461
  term :token,
337
462
  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,
463
+ token represents tokenized strings. The ·value space· of token is the set
464
+ of strings that do not contain the carriage return \(#xD\), line feed \(#xA\)
465
+ nor tab \(#x9\) characters, that have no leading or trailing spaces \(#x20\)
466
+ and that have no internal sequences of two or more spaces. The ·lexical
467
+ space· of token is the set of strings that do not contain the carriage
468
+ return \(#xD\), line feed \(#xA\) nor tab \(#x9\) characters, that have no
469
+ leading or trailing spaces \(#x20\) and that have no internal sequences of
470
+ two or more spaces. The ·base type· of token is normalizedString.
471
+ ).freeze,
347
472
  label: "token".freeze,
348
473
  subClassOf: "xsd:normalizedString".freeze,
349
474
  type: "rdfs:Datatype".freeze
350
475
  term :unsignedByte,
351
476
  comment: %(
352
- unsignedByte is ·derived· from unsignedShort by setting the value of
477
+ nsignedByte is ·derived· from unsignedShort by setting the value of
353
478
  ·maxInclusive· to be 255. The ·base type· of unsignedByte is
354
479
  unsignedShort.
355
480
  ).freeze,
@@ -358,30 +483,41 @@ module RDF
358
483
  type: "rdfs:Datatype".freeze
359
484
  term :unsignedInt,
360
485
  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,
486
+ unsignedInt is ·derived· from unsignedLong by setting the value of
487
+ ·maxInclusive· to be 4294967295. The ·base type· of unsignedInt is
488
+ unsignedLong.
489
+ ).freeze,
365
490
  label: "unsignedInt".freeze,
366
491
  subClassOf: "xsd:unsignedLong".freeze,
367
492
  type: "rdfs:Datatype".freeze
368
493
  term :unsignedLong,
369
494
  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,
495
+ unsignedLong is ·derived· from nonNegativeInteger by setting the value of
496
+ ·maxInclusive· to be 18446744073709551615. The ·base type· of unsignedLong
497
+ is nonNegativeInteger.
498
+ ).freeze,
374
499
  label: "unsignedLong".freeze,
375
500
  subClassOf: "xsd:nonNegativeInteger".freeze,
376
501
  type: "rdfs:Datatype".freeze
377
502
  term :unsignedShort,
378
503
  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.
504
+ unsignedShort is ·derived· from unsignedInt by setting the value of
505
+ ·maxInclusive· to be 65535. The ·base type· of unsignedShort is
506
+ unsignedInt.
382
507
  ).freeze,
383
508
  label: "unsignedShort".freeze,
384
509
  subClassOf: "xsd:unsignedInt".freeze,
385
510
  type: "rdfs:Datatype".freeze
511
+ term :yearMonthDuration,
512
+ comment: %(
513
+ yearMonthDuration is a datatype ·derived· from duration by restricting its
514
+ ·lexical representations· to instances of yearMonthDurationLexicalRep. The
515
+ ·value space· of yearMonthDuration is therefore that of duration
516
+ restricted to those whose ·seconds· property is 0. This results in a
517
+ duration datatype which is totally ordered.
518
+ ).freeze,
519
+ label: "yearMonthDuration".freeze,
520
+ subClassOf: "xsd:duration".freeze,
521
+ type: "rdfs:Datatype".freeze
386
522
  end
387
523
  end
@@ -176,10 +176,7 @@ module RDF
176
176
  # Returns a symbol appropriate to use with RDF::Writer.for()
177
177
  # @return [Symbol]
178
178
  def self.to_sym
179
- elements = self.to_s.split("::")
180
- sym = elements.pop
181
- sym = elements.pop if sym == 'Writer'
182
- sym.downcase.to_s.to_sym
179
+ self.format.to_sym
183
180
  end
184
181
 
185
182
  ##
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.8
4
+ version: 1.1.9
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: 2015-02-07 00:00:00.000000000 Z
13
+ date: 2015-02-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: link_header