rdf-rdfa 1.1.3.1 → 1.1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa94aaaa648d4da2e0dafb9f82d441e9b6e00066
4
- data.tar.gz: 300cbc452eb89060eefa5d7b4f6d9dc853ecb166
3
+ metadata.gz: ebfca2926f3857c943c000a2ea96df391fc5f4b8
4
+ data.tar.gz: 5c9068badf7e070cf71f911ce8eb4d443f446325
5
5
  SHA512:
6
- metadata.gz: f07f7a03c8d54b0cee86fb63b2e03bcf6fd324067dc7b6dc8e124ce749cae998016acb9436ff8622cb38fcb98cbed748a4e786e8df25556a71fa4e1973b75dac
7
- data.tar.gz: 990b662351c27483a21106c757b2638246e234986b14a8f63693f2479e8720d55c6a7e6b7e1536b66afa3bf753d6b31205f091ca739464638594d83e49afff64
6
+ metadata.gz: 72d7f85461c22d1380749111fe2c85cc9edaf31bed56de28ed40bdb848ae00fa9deeaeae74b73ade9e737d25c9a2bc72a0f3ed2ed1e5bd96179bbce69fdff35e
7
+ data.tar.gz: 10347d6aadaf54eeb0211627bd79bfadc8552bd30922123cad12470a7c47b578e3fff54fe6838a3434c36873f8eaede31819ecb295d968bb01ce2c519b05d073
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3.1
1
+ 1.1.3.2
@@ -280,7 +280,7 @@ module RDF::RDFa
280
280
  # Document errors
281
281
  def doc_errors
282
282
  # FIXME: Nokogiri version 1.5.5 things <time> is invalid
283
- @doc.errors.reject {|e| e.to_s =~ /Tag time invalid/}
283
+ @doc.errors.reject {|e| e.to_s =~ /(Tag time invalid|Missing attribute name)/}
284
284
  end
285
285
 
286
286
  ##
@@ -1,6 +1,324 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  module RDF
2
- class PTR < Vocabulary("http://www.w3.org/2009/pointers#"); end
3
- class RDFA < Vocabulary("http://www.w3.org/ns/rdfa#"); end
3
+ class PTR < Vocabulary("http://www.w3.org/2009/pointers#")
4
+ # Class definitions
5
+ term :ByteOffsetCompoundPointer,
6
+ comment: %(Pointer to a byte range with a defined start and a byte offset from there.).freeze,
7
+ label: "Byte Offset Compound Pointer".freeze,
8
+ subClassOf: "ptr:CompoundPointer".freeze,
9
+ type: "rdfs:Class".freeze
10
+ term :ByteOffsetPointer,
11
+ comment: %(Single pointer using a byte offset from the start of the reference.).freeze,
12
+ label: "Byte Offset Pointer".freeze,
13
+ subClassOf: "ptr:OffsetPointer".freeze,
14
+ type: "rdfs:Class".freeze
15
+ term :ByteSnippetCompoundPointer,
16
+ comment: %(Pointer to a range with a defined start and a byte snippet from there.).freeze,
17
+ label: "Byte Snippet Compound Pointer".freeze,
18
+ subClassOf: "ptr:CompoundPointer".freeze,
19
+ type: "rdfs:Class".freeze
20
+ term :CSSSelectorPointer,
21
+ comment: %(Single pointer using a CSS selector.).freeze,
22
+ label: "CSS selector Pointer".freeze,
23
+ subClassOf: "ptr:ExpressionPointer".freeze,
24
+ type: "rdfs:Class".freeze
25
+ term :CharOffsetCompoundPointer,
26
+ comment: %(Pointer to a char range with a defined start and a char offset from there.).freeze,
27
+ label: "Char Offset Compound Pointer".freeze,
28
+ subClassOf: "ptr:CompoundPointer".freeze,
29
+ type: "rdfs:Class".freeze
30
+ term :CharOffsetPointer,
31
+ comment: %(Single pointer using a character offset from the start of the reference.).freeze,
32
+ label: "Char Offset Pointer".freeze,
33
+ subClassOf: "ptr:OffsetPointer".freeze,
34
+ type: "rdfs:Class".freeze
35
+ term :CharSnippetCompoundPointer,
36
+ comment: %(Pointer to a range with a defined start and a character snippet from there.).freeze,
37
+ label: "Char Snippet Compound Pointer".freeze,
38
+ subClassOf: "ptr:CompoundPointer".freeze,
39
+ type: "rdfs:Class".freeze
40
+ term :CompoundPointer,
41
+ comment: %(An abstract method made of a pair of pointers to a defined section to be subclassed for extensibility.).freeze,
42
+ label: "Compound Pointer".freeze,
43
+ subClassOf: "ptr:Pointer".freeze,
44
+ type: "rdfs:Class".freeze
45
+ term :EquivalentPointers,
46
+ comment: %(Group of equivalent pointers that point to the same places.).freeze,
47
+ label: "Equivalent Pointers".freeze,
48
+ subClassOf: "ptr:PointersGroup".freeze,
49
+ type: "rdfs:Class".freeze
50
+ term :ExpressionPointer,
51
+ comment: %(Generic single pointer that make use of an expression language such as xPath, CSS selectors, etc.).freeze,
52
+ label: "Expression Pointer".freeze,
53
+ subClassOf: "ptr:SinglePointer".freeze,
54
+ type: "rdfs:Class".freeze
55
+ term :LineCharPointer,
56
+ comment: %(Single pointer using line and char numbers.).freeze,
57
+ label: "Line-Char Pointer".freeze,
58
+ subClassOf: "ptr:SinglePointer".freeze,
59
+ type: "rdfs:Class".freeze
60
+ term :OffsetPointer,
61
+ comment: %(Generic single pointer based on an offset.).freeze,
62
+ label: "Offset Pointer".freeze,
63
+ subClassOf: "ptr:SinglePointer".freeze,
64
+ type: "rdfs:Class".freeze
65
+ term :Pointer,
66
+ comment: %(Abstract Pointer to be subclassed for extensibility.).freeze,
67
+ label: "Pointer".freeze,
68
+ type: "rdfs:Class".freeze
69
+ term :PointersGroup,
70
+ comment: %(Generic container for a group of Pointers).freeze,
71
+ label: "Pointers Group".freeze,
72
+ subClassOf: "ptr:Pointer".freeze,
73
+ type: "rdfs:Class".freeze
74
+ term :RelatedPointers,
75
+ comment: %(Group of related pointers you use together for some purpose.).freeze,
76
+ label: "Related Pointers".freeze,
77
+ subClassOf: "ptr:PointersGroup".freeze,
78
+ type: "rdfs:Class".freeze
79
+ term :SinglePointer,
80
+ comment: %(Abstract pointer to a single point to be subclassed for extensibility.).freeze,
81
+ label: "Single Pointer".freeze,
82
+ subClassOf: "ptr:Pointer".freeze,
83
+ type: "rdfs:Class".freeze
84
+ term :StartEndPointer,
85
+ comment: %(Compound pointer to a range with a start and an end point.).freeze,
86
+ label: "Start-End Pointer".freeze,
87
+ subClassOf: "ptr:CompoundPointer".freeze,
88
+ type: "rdfs:Class".freeze
89
+ term :XMLNamespace,
90
+ comment: %(An XML Namespace.).freeze,
91
+ label: "XMLNamespace".freeze,
92
+ type: "rdfs:Class".freeze
93
+ term :XPathPointer,
94
+ comment: %(Single pointer using an XPath expression.).freeze,
95
+ label: "XPath Pointer".freeze,
96
+ subClassOf: "ptr:ExpressionPointer".freeze,
97
+ type: "rdfs:Class".freeze
98
+ term :XPointerPointer,
99
+ comment: %(Single pointer using an XPointer expression.).freeze,
100
+ label: "XPointer Pointer".freeze,
101
+ subClassOf: "ptr:XPathPointer".freeze,
102
+ type: "rdfs:Class".freeze
103
+
104
+ # Property definitions
105
+ property :byteOffset,
106
+ comment: %(Number of bytes counting from the start point.).freeze,
107
+ domain: "ptr:ByteOffsetCompoundPointer".freeze,
108
+ label: "byte offset".freeze,
109
+ range: "xsd:positiveInteger".freeze,
110
+ type: "rdf:Property".freeze
111
+ property :charNumber,
112
+ comment: %(Char number within a line starting at one.
113
+ ).freeze,
114
+ domain: "ptr:LineCharPointer".freeze,
115
+ label: "char number".freeze,
116
+ range: "xsd:positiveInteger".freeze,
117
+ type: "rdf:Property".freeze
118
+ property :charOffset,
119
+ comment: %(Number of characters counting from the start point.).freeze,
120
+ domain: "ptr:CharOffsetCompoundPointer".freeze,
121
+ label: "char offset".freeze,
122
+ range: "xsd:positiveInteger".freeze,
123
+ type: "rdf:Property".freeze
124
+ property :endPointer,
125
+ comment: %(Pointer to the end point of the range.).freeze,
126
+ domain: "ptr:StartEndPointer".freeze,
127
+ label: "end pointer".freeze,
128
+ range: "ptr:SinglePointer".freeze,
129
+ type: "rdf:Property".freeze
130
+ property :expression,
131
+ comment: %(Expressions, such as xPath or CSS selectors, that identify points.).freeze,
132
+ domain: "ptr:ExpressionPointer".freeze,
133
+ label: "expression".freeze,
134
+ range: "rdfs:Literal".freeze,
135
+ type: "rdf:Property".freeze
136
+ property :groupPointer,
137
+ comment: %(A Pointer that is part of a Group).freeze,
138
+ domain: "ptr:PointersGroup".freeze,
139
+ label: "groupPointer".freeze,
140
+ range: "ptr:Pointer".freeze,
141
+ type: "rdf:Property".freeze
142
+ property :lineNumber,
143
+ comment: %(Line number within the reference starting at one.
144
+ ).freeze,
145
+ domain: "ptr:LineCharPointer".freeze,
146
+ label: "line number".freeze,
147
+ range: "xsd:positiveInteger".freeze,
148
+ type: "rdf:Property".freeze
149
+ property :namespace,
150
+ comment: %(The namespace being used for the XPath expression.).freeze,
151
+ domain: "ptr:XPathPointer".freeze,
152
+ label: "namespace".freeze,
153
+ range: "ptr:XMLNamespace".freeze,
154
+ type: "rdf:Property".freeze
155
+ property :namespaceName,
156
+ comment: %(The namespace name being used for an XML Namespace.).freeze,
157
+ domain: "ptr:XMLNamespace".freeze,
158
+ label: "namespace name".freeze,
159
+ type: "rdf:Property".freeze
160
+ property :offset,
161
+ comment: %(Offset from the start of the reference.).freeze,
162
+ domain: "ptr:OffsetPointer".freeze,
163
+ label: "offset".freeze,
164
+ range: "xsd:positiveInteger".freeze,
165
+ type: "rdf:Property".freeze
166
+ property :prefix,
167
+ comment: %(The namespace prefix being used for an XML Namespace.).freeze,
168
+ domain: "ptr:XMLNamespace".freeze,
169
+ label: "prefix".freeze,
170
+ type: "rdf:Property".freeze
171
+ property :reference,
172
+ comment: %(Scope within which a single pointer operates.).freeze,
173
+ domain: "ptr:SinglePointer".freeze,
174
+ label: "reference".freeze,
175
+ type: "rdf:Property".freeze
176
+ property :startPointer,
177
+ comment: %(Pointer to the start point of the range in a compound pointer.).freeze,
178
+ domain: "ptr:CompoundPointer".freeze,
179
+ label: "start pointer".freeze,
180
+ range: "ptr:SinglePointer".freeze,
181
+ type: "rdf:Property".freeze
182
+ property :version,
183
+ comment: %(Version for the expression language being used.).freeze,
184
+ domain: "ptr:ExpressionPointer".freeze,
185
+ label: "version".freeze,
186
+ range: "rdfs:Literal".freeze,
187
+ type: "rdf:Property".freeze
188
+ end
189
+
190
+ class RDFA < Vocabulary("http://www.w3.org/ns/rdfa#")
191
+ # Class definitions
192
+ __property__ :DocumentError,
193
+ comment: %(error condition; to be used when the document fails to be fully processed as a result of non-conformant host language markup).freeze,
194
+ "dc:description" => %(error condition; to be used when the document fails to be fully processed as a result of non-conformant host language markup).freeze,
195
+ label: "DocumentError".freeze,
196
+ subClassOf: "rdfa:Error".freeze,
197
+ type: "rdfs:Class".freeze
198
+ __property__ :Error,
199
+ comment: %(is the class for all error conditions).freeze,
200
+ "dc:description" => %(is the class for all error conditions).freeze,
201
+ label: "Error".freeze,
202
+ subClassOf: "rdfa:PGClass".freeze.freeze,
203
+ type: "rdfs:Class".freeze
204
+ __property__ :Info,
205
+ comment: %(is the class for all informations).freeze,
206
+ "dc:description" => %(is the class for all informations).freeze,
207
+ label: "Info".freeze,
208
+ subClassOf: "rdfa:PGClass".freeze.freeze,
209
+ type: "rdfs:Class".freeze
210
+ __property__ :PGClass,
211
+ comment: %(is the top level class of the hierarchy).freeze,
212
+ "dc:description" => %(is the top level class of the hierarchy).freeze,
213
+ label: "PGClass".freeze,
214
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
215
+ __property__ :Pattern,
216
+ comment: %(Class to identify an \(RDF\) resource whose properties are to be copied to another resource).freeze,
217
+ "dc:description" => %(Class to identify an \(RDF\) resource whose properties are to be copied to another resource).freeze,
218
+ label: "Pattern".freeze,
219
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
220
+ __property__ :PrefixMapping,
221
+ comment: %(is the class for prefix mappings).freeze,
222
+ "dc:description" => %(is the class for prefix mappings).freeze,
223
+ label: "PrefixMapping".freeze,
224
+ subClassOf: "rdfa:PrefixOrTermMapping".freeze.freeze,
225
+ type: "rdfs:Class".freeze
226
+ __property__ :PrefixOrTermMapping,
227
+ comment: %(is the top level class for prefix or term mappings).freeze,
228
+ "dc:description" => %(is the top level class for prefix or term mappings).freeze,
229
+ label: "PrefixOrTermMapping".freeze,
230
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
231
+ __property__ :PrefixRedefinition,
232
+ comment: %(warning; to be used when a prefix, either from the initial context or inherited from an ancestor node, is redefined in an element).freeze,
233
+ "dc:description" => %(warning; to be used when a prefix, either from the initial context or inherited from an ancestor node, is redefined in an element).freeze,
234
+ label: "PrefixRedefinition".freeze,
235
+ subClassOf: "rdfa:Warning".freeze.freeze,
236
+ type: "rdfs:Class".freeze
237
+ __property__ :TermMapping,
238
+ comment: %(is the class for term mappings).freeze,
239
+ "dc:description" => %(is the class for term mappings).freeze,
240
+ label: "TermMapping".freeze,
241
+ subClassOf: "rdfa:PrefixOrTermMapping".freeze.freeze,
242
+ type: "rdfs:Class".freeze
243
+ __property__ :UnresolvedCURIE,
244
+ comment: %(warning; to be used when a CURIE prefix fails to be resolved).freeze,
245
+ "dc:description" => %(warning; to be used when a CURIE prefix fails to be resolved).freeze,
246
+ label: "UnresolvedCURIE".freeze,
247
+ subClassOf: "rdfa:Warning".freeze.freeze,
248
+ type: "rdfs:Class".freeze
249
+ __property__ :UnresolvedTerm,
250
+ comment: %(warning; to be used when a Term fails to be resolved).freeze,
251
+ "dc:description" => %(warning; to be used when a Term fails to be resolved).freeze,
252
+ label: "UnresolvedTerm".freeze,
253
+ subClassOf: "rdfa:Warning".freeze.freeze,
254
+ type: "rdfs:Class".freeze
255
+ __property__ :VocabReferenceError,
256
+ comment: %(warning; to be used when the value of a @vocab attribute cannot be dereferenced, hence the vocabulary expansion cannot be completed).freeze,
257
+ "dc:description" => %(warning; to be used when the value of a @vocab attribute cannot be dereferenced, hence the vocabulary expansion cannot be completed).freeze,
258
+ label: "VocabReferenceError".freeze,
259
+ subClassOf: "rdfa:Warning".freeze.freeze,
260
+ type: "rdfs:Class".freeze
261
+ __property__ :Warning,
262
+ comment: %(is the class for all warnings).freeze,
263
+ "dc:description" => %(is the class for all warnings).freeze,
264
+ label: "Warning".freeze,
265
+ subClassOf: "rdfa:PGClass".freeze.freeze,
266
+ type: "rdfs:Class".freeze
267
+
268
+ # Property definitions
269
+ __property__ :context,
270
+ comment: %(provides extra context for the error, eg, http response, an XPointer/XPath information, or simply the URI that created the error).freeze,
271
+ "dc:description" => %(provides extra context for the error, eg, http response, an XPointer/XPath information, or simply the URI that created the error).freeze,
272
+ domain: "rdfa:PGClass".freeze,
273
+ label: "context".freeze,
274
+ type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
275
+ __property__ :copy,
276
+ comment: %(identifies the resource \(i.e., pattern\) whose properties and values should be copied to replace the current triple \(retaining the subject of the triple\).).freeze,
277
+ "dc:description" => %(identifies the resource \(i.e., pattern\) whose properties and values should be copied to replace the current triple \(retaining the subject of the triple\).).freeze,
278
+ label: "copy".freeze,
279
+ type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
280
+ __property__ :prefix,
281
+ comment: %(defines a prefix mapping for a URI; the value is supposed to be a NMTOKEN).freeze,
282
+ "dc:description" => %(defines a prefix mapping for a URI; the value is supposed to be a NMTOKEN).freeze,
283
+ domain: "rdfa:PrefixMapping".freeze,
284
+ label: "prefix".freeze,
285
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
286
+ __property__ :term,
287
+ comment: %(defines a term mapping for a URI; the value is supposed to be a NMTOKEN).freeze,
288
+ "dc:description" => %(defines a term mapping for a URI; the value is supposed to be a NMTOKEN).freeze,
289
+ domain: "rdfa:TermMapping".freeze,
290
+ label: "term".freeze,
291
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
292
+ __property__ :uri,
293
+ comment: %(defines the URI for either a prefix or a term mapping; the value is supposed to be an absolute URI).freeze,
294
+ "dc:description" => %(defines the URI for either a prefix or a term mapping; the value is supposed to be an absolute URI).freeze,
295
+ domain: "rdfa:PrefixOrTermMapping".freeze,
296
+ label: "uri".freeze,
297
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
298
+ __property__ :usesVocabulary,
299
+ comment: %(provides a relationship between the host document and a vocabulary defined using the @vocab facility of RDFa1.1).freeze,
300
+ "dc:description" => %(provides a relationship between the host document and a vocabulary defined using the @vocab facility of RDFa1.1).freeze,
301
+ label: "usesVocabulary".freeze,
302
+ type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
303
+ __property__ :vocabulary,
304
+ comment: %(defines an absolute URI to be used as a default vocabulary; the value is can be any string; for documentation purposes it is advised to use the string 'true' or 'True'.).freeze,
305
+ "dc:description" => %(defines an absolute URI to be used as a default vocabulary; the value is can be any string; for documentation purposes it is advised to use the string 'true' or 'True'.).freeze,
306
+ label: "vocabulary".freeze,
307
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
308
+
309
+ # Extra definitions
310
+ __property__ :"",
311
+ "dc:creator" => %(http://www.ivan-herman.net/foaf#me).freeze,
312
+ "dc:date" => %(2013-01-18).freeze,
313
+ "dc:description" => %(This document describes the RDFa Vocabulary for Term and Prefix Assignment. The Vocabulary is used to modify RDFa 1.1 processing behavior.).freeze,
314
+ "dc:publisher" => %(http://www.w3.org/data#W3C).freeze,
315
+ "dc:title" => %(RDFa Vocabulary for Term and Prefix Assignment, and for Processor Graph Reporting).freeze,
316
+ label: "".freeze,
317
+ "owl:versionInfo" => %($Date: 2013-03-11 07:54:23 $).freeze,
318
+ "rdfs:isDefinedBy" => %(http://www.w3.org/TR/rdfa-core/#s_initialcontexts).freeze,
319
+ type: "owl:Ontology".freeze
320
+ end
321
+
4
322
  class XML < Vocabulary("http://www.w3.org/XML/1998/namespace"); end
5
323
  class XSI < Vocabulary("http://www.w3.org/2001/XMLSchema-instance"); end
6
324
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-rdfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3.1
4
+ version: 1.1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-23 00:00:00.000000000 Z
12
+ date: 2014-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -121,12 +121,26 @@ dependencies:
121
121
  requirements:
122
122
  - - ~>
123
123
  - !ruby/object:Gem::Version
124
- version: '2.14'
124
+ version: '3.0'
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ~>
128
128
  - !ruby/object:Gem::Version
129
- version: '2.14'
129
+ version: '3.0'
130
+ prerelease: false
131
+ type: :development
132
+ - !ruby/object:Gem::Dependency
133
+ name: rspec-its
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: '1.0'
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ~>
142
+ - !ruby/object:Gem::Version
143
+ version: '1.0'
130
144
  prerelease: false
131
145
  type: :development
132
146
  - !ruby/object:Gem::Dependency