rdf-tabular 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,17 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://w3c.github.io/csvw/ns/csvw.ttl
2
+ # This file generated automatically using vocab-fetch from etc/csvw.jsonld
3
3
  require 'rdf'
4
4
  module RDF::Tabular
5
- class CSVW < RDF::Vocabulary("http://www.w3.org/ns/csvw#")
5
+ class CSVW < RDF::StrictVocabulary("http://www.w3.org/ns/csvw#")
6
6
 
7
7
  # Class definitions
8
+ term :Cell,
9
+ comment: %(A Cell represents a cell at the intersection of a Row and a Column within a Table.).freeze,
10
+ label: "Cell".freeze,
11
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
12
+ type: "rdfs:Class".freeze
8
13
  term :Column,
9
- comment: %(A Column Description describes a single column.).freeze,
14
+ comment: %(A Column represents a vertical arrangement of Cells within a Table.).freeze,
10
15
  label: "Column Description".freeze,
11
16
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
12
17
  type: "rdfs:Class".freeze
@@ -25,19 +30,39 @@ module RDF::Tabular
25
30
  label: "Direction".freeze,
26
31
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
27
32
  type: "rdfs:Class".freeze
33
+ term :ForeignKey,
34
+ comment: %(Describes relationships between Columns in one or more Tables.).freeze,
35
+ label: "Foreign Key Definition".freeze,
36
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
37
+ type: "rdfs:Class".freeze
38
+ term :NumericFormat,
39
+ comment: %(If the datatype is a numeric type, the format property indicates the expected format for that number. Its value must be either a single string or an object with one or more properties.).freeze,
40
+ label: "Numeric Format".freeze,
41
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
42
+ type: "rdfs:Class".freeze
43
+ term :Row,
44
+ comment: %(A Row represents a horizontal arrangement of cells within a Table.).freeze,
45
+ label: "Row".freeze,
46
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
47
+ type: "rdfs:Class".freeze
28
48
  term :Schema,
29
49
  comment: %(A Schema is a definition of a tabular format that may be common to multiple tables.).freeze,
30
50
  label: "Schema".freeze,
31
51
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
32
52
  type: "rdfs:Class".freeze
33
53
  term :Table,
34
- comment: %(A Table describes an Annotated Table.).freeze,
35
- label: "Table Description".freeze,
54
+ comment: %(An annotated table is a table that is annotated with additional metadata.).freeze,
55
+ label: "Annotated Table".freeze,
36
56
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
37
57
  type: "rdfs:Class".freeze
38
58
  term :TableGroup,
39
- comment: %(A Table Group describes an Annotated Table Group.).freeze,
40
- label: "Table Group Description".freeze,
59
+ comment: %(A Group of Tables comprises a set of Annotated Tables and a set of annotations that relate to those Tables.).freeze,
60
+ label: "Group of Tables".freeze,
61
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
62
+ type: "rdfs:Class".freeze
63
+ term :TableReference,
64
+ comment: %(An object property that identifies a referenced table and a set of referenced columns within that table.).freeze,
65
+ label: "Table Reference".freeze,
41
66
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
42
67
  type: "rdfs:Class".freeze
43
68
  term :Transformation,
@@ -48,58 +73,69 @@ module RDF::Tabular
48
73
 
49
74
  # Property definitions
50
75
  property :aboutUrl,
51
- comment: %(A URI template property that may be used to create a unique identifier for each cell within a row when mapping data to other formats).freeze,
76
+ comment: %(A URI template property that may be used to create a unique identifier for each cell within a row when mapping data to other formats.).freeze,
52
77
  label: "about URL".freeze,
53
78
  range: "http://www.w3.org/ns/csvw#uriTemplate".freeze,
54
79
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
55
80
  type: "rdf:Property".freeze
56
81
  property :base,
57
- comment: %(An atomic property that contains a single string: a term defined in the default context representing a built-in datatype URL).freeze,
82
+ comment: %(An atomic property that contains a single string: a term defined in the default context representing a built-in datatype URL.).freeze,
58
83
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
59
84
  label: "base".freeze,
60
- range: "rdfs:Datatype".freeze,
85
+ range: "xsd:string".freeze,
61
86
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
62
87
  type: "rdf:Property".freeze
63
- property :columns,
64
- comment: %(An array of Column Descriptions.).freeze,
88
+ property :column,
89
+ comment: %(An array property of column descriptions as described in section 4.9 Columns.).freeze,
65
90
  domain: "http://www.w3.org/ns/csvw#Schema".freeze,
66
- label: "columns".freeze,
91
+ label: "column".freeze,
67
92
  range: "http://www.w3.org/ns/csvw#Column".freeze,
68
93
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
69
94
  type: "rdf:Property".freeze
95
+ property :columnReference,
96
+ comment: %(A column reference property that holds either a single reference to a column description object within this schema, or an array of references.).freeze,
97
+ label: "column reference".freeze,
98
+ range: "xsd:string".freeze,
99
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
100
+ type: "rdf:Property".freeze
70
101
  property :commentPrefix,
71
- comment: %(A character that, when it appears at the beginning of a skipped row, indicates a comment that should be associated as a comment annotation to the table. The default is "#".).freeze,
102
+ comment: %(An atomic property that sets the comment prefix flag to the single provided value, which must be a single character string.).freeze,
72
103
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
73
104
  label: "comment prefix".freeze,
74
105
  range: "xsd:string".freeze,
75
106
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
76
107
  type: "rdf:Property".freeze
77
108
  property :datatype,
78
- comment: %(An object property that contains either a single string that is the main datatype of the values of the cell or a datatype description object.).freeze,
109
+ comment: %(An atomic property that contains either a single string that is the main datatype of the values of the cell or a datatype description object.).freeze,
79
110
  label: "datatype".freeze,
80
- range: "http://www.w3.org/ns/csvw#Datatype".freeze,
81
111
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
82
112
  type: "rdf:Property".freeze
83
113
  property :decimalChar,
84
- comment: %(A single character string whose value is used to represent a decimal point within the number. The default value is ".".).freeze,
85
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
114
+ comment: %(An atomic property containing a single character string whose value is used to represent a decimal point within the number.).freeze,
115
+ domain: "http://www.w3.org/ns/csvw#NumericFormat".freeze,
86
116
  label: "decimal character".freeze,
87
117
  range: "xsd:string".freeze,
88
118
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
89
119
  type: "rdf:Property".freeze
90
120
  property :default,
91
- comment: %(An atomic property holding a single string that provides a default string value for the cell in cases where the original string value is a null value. This default value may be used when converting the table into other formats.).freeze,
121
+ comment: %(An atomic property holding a single string that is used to create a default value for the cell in cases where the original string value is an empty string.).freeze,
92
122
  label: "default".freeze,
93
123
  range: "xsd:string".freeze,
94
124
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
95
125
  type: "rdf:Property".freeze
96
126
  property :delimiter,
97
- comment: %(The separator between cells. The default is ",".).freeze,
127
+ comment: %(An atomic property that sets the delimiter flag to the single provided value, which must be a single character string.).freeze,
98
128
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
99
129
  label: "delimiter".freeze,
100
130
  range: "xsd:string".freeze,
101
131
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
102
132
  type: "rdf:Property".freeze
133
+ property :describes,
134
+ comment: %(From IANA describes: The relationship A 'describes' B asserts that resource A provides a description of resource B. There are no constraints on the format or representation of either A or B, neither are there any further constraints on either resource.).freeze,
135
+ domain: "http://www.w3.org/ns/csvw#Row".freeze,
136
+ label: "describes".freeze,
137
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
138
+ type: "rdf:Property".freeze
103
139
  property :dialect,
104
140
  comment: %(Provides hints to processors about how to parse the referenced files for to create tabular data models for an individual table, or all the tables in a group.).freeze,
105
141
  label: "dialect".freeze,
@@ -107,55 +143,46 @@ module RDF::Tabular
107
143
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
108
144
  type: "rdf:Property".freeze
109
145
  property :doubleQuote,
110
- comment: %(If true, sets the escape character flag to ". If false, to \.).freeze,
146
+ comment: %(A boolean atomic property that, if `true`, sets the escape character flag to `"`. If `false`, to `\\`.).freeze,
111
147
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
112
148
  label: "double quote".freeze,
113
149
  range: "xsd:boolean".freeze,
114
150
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
115
151
  type: "rdf:Property".freeze
116
152
  property :encoding,
117
- comment: %(The character encoding for the file, one of the encodings listed in [encoding]. The default is utf-8.).freeze,
153
+ comment: %(An atomic property that sets the encoding flag to the single provided string value, which must be a defined [encoding].).freeze,
118
154
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
119
155
  label: "encoding".freeze,
120
156
  range: "xsd:string".freeze,
121
157
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
122
158
  type: "rdf:Property".freeze
123
- property :foreignKeys,
124
- comment: %(An array of foreign key definitions that define how the values from specified columns within this table link to rows within this table or other tables.).freeze,
159
+ property :foreignKey,
160
+ comment: %(An array property of foreign key definitions that define how the values from specified columns within this table link to rows within this table or other tables.).freeze,
125
161
  domain: "http://www.w3.org/ns/csvw#Schema".freeze,
126
- label: "foreign keys".freeze,
127
- range: "xsd:string".freeze,
162
+ label: "foreign key".freeze,
163
+ range: "http://www.w3.org/ns/csvw#ForeignKey".freeze,
128
164
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
129
165
  type: "rdf:Property".freeze
130
166
  property :format,
131
- comment: %(A definition of the format of the cell, used when parsing the cell.).freeze,
167
+ comment: %(An atomic property that contains either a single string or an object that defines the format of a value of this type.).freeze,
132
168
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
133
169
  label: "format".freeze,
134
170
  range: "xsd:string".freeze,
135
171
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
136
172
  type: "rdf:Property".freeze
137
173
  property :groupChar,
138
- comment: %(A single character string whose value is used to group digits within the number. The default value is ",".).freeze,
139
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
174
+ comment: %(An atomic property containing a single character string whose value is used to group digits within the number.).freeze,
175
+ domain: "http://www.w3.org/ns/csvw#NumericFormat".freeze,
140
176
  label: "group character".freeze,
141
- range: "xsd:string".freeze,
142
177
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
143
178
  type: "rdf:Property".freeze
144
179
  property :header,
145
- comment: %(A single boolean atomic property that, if true, sets the header row count flag to 1, and if false to 0, unless headerRowCount is provided, in which case the value provided for the header property is ignored.).freeze,
180
+ comment: %(A boolean atomic property that, if `true`, sets the header row count flag to `1`, and if `false` to `0`, unless headerRowCount is provided, in which case the value provided for the header property is ignored.).freeze,
146
181
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
147
182
  label: "header".freeze,
148
183
  range: "xsd:boolean".freeze,
149
184
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
150
185
  type: "rdf:Property".freeze
151
- property :headerColumnCount,
152
- comment: %(The number of header columns \(following the skipped columns\) in each row. The default is 0.
153
- ).freeze,
154
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
155
- label: "header column count".freeze,
156
- range: "xsd:nonNegativeInteger".freeze,
157
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
158
- type: "rdf:Property".freeze
159
186
  property :headerRowCount,
160
187
  comment: %(The number of header rows \(following the skipped rows\) in the file. The default is 1.).freeze,
161
188
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
@@ -163,8 +190,8 @@ module RDF::Tabular
163
190
  range: "xsd:nonNegativeInteger".freeze,
164
191
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
165
192
  type: "rdf:Property".freeze
166
- property :language,
167
- comment: %(A language code as defined by [BCP47]. Indicates the language of the value within the cell.).freeze,
193
+ property :lang,
194
+ comment: %(An atomic property giving a single string language code as defined by [BCP47].).freeze,
168
195
  label: "language".freeze,
169
196
  range: "xsd:string".freeze,
170
197
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
@@ -176,50 +203,50 @@ module RDF::Tabular
176
203
  range: "xsd:nonNegativeInteger".freeze,
177
204
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
178
205
  type: "rdf:Property".freeze
179
- property :lineTerminator,
180
- comment: %(The character that is used at the end of a row. The default is CRLF.).freeze,
206
+ property :lineTerminators,
207
+ comment: %(An atomic property that is either an array containing the single provided string value).freeze,
181
208
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
182
209
  label: "line terminator".freeze,
183
210
  range: "xsd:string".freeze,
184
211
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
185
212
  type: "rdf:Property".freeze
186
213
  property :maxExclusive,
187
- comment: %(The maximum value for the cell \(exclusive\).).freeze,
214
+ comment: %(An atomic property that contains a single number that is the maximum valid value \(exclusive\).).freeze,
188
215
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
189
216
  label: "max exclusive".freeze,
190
217
  range: "xsd:integer".freeze,
191
218
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
192
219
  type: "rdf:Property".freeze
193
220
  property :maxInclusive,
194
- comment: %(The maximum value for the cell \(inclusive\). ).freeze,
221
+ comment: %(An atomic property that contains a single number that is the maximum valid value \(inclusive\).).freeze,
195
222
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
196
223
  label: "max inclusive".freeze,
197
224
  range: "xsd:integer".freeze,
198
225
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
199
226
  type: "rdf:Property".freeze
200
227
  property :maxLength,
201
- comment: %(The maximum length of the value of the cell.).freeze,
228
+ comment: %(A numeric atomic property that contains a single integer that is the maximum length of the value.).freeze,
202
229
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
203
230
  label: "max length".freeze,
204
231
  range: "xsd:nonNegativeInteger".freeze,
205
232
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
206
233
  type: "rdf:Property".freeze
207
234
  property :minExclusive,
208
- comment: %(The minimum value for the cell \(exclusive\).).freeze,
235
+ comment: %(An atomic property that contains a single number that is the minimum valid value \(exclusive\).).freeze,
209
236
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
210
237
  label: "min exclusive".freeze,
211
238
  range: "xsd:integer".freeze,
212
239
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
213
240
  type: "rdf:Property".freeze
214
241
  property :minInclusive,
215
- comment: %(The minimum value for the cell \(inclusive\).).freeze,
242
+ comment: %(An atomic property that contains a single number that is the minimum valid value \(inclusive\).).freeze,
216
243
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
217
244
  label: "min inclusive".freeze,
218
245
  range: "xsd:integer".freeze,
219
246
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
220
247
  type: "rdf:Property".freeze
221
248
  property :minLength,
222
- comment: %(The minimum length of the value of the cell.).freeze,
249
+ comment: %(An atomic property that contains a single integer that is the minimum length of the value.).freeze,
223
250
  domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
224
251
  label: "min length".freeze,
225
252
  range: "xsd:nonNegativeInteger".freeze,
@@ -232,27 +259,26 @@ module RDF::Tabular
232
259
  range: "xsd:string".freeze,
233
260
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
234
261
  type: "rdf:Property".freeze
235
- property :notes,
236
- comment: %(An array of objects representing annotations. This specification does not place any constraints on the structure of these objects.).freeze,
237
- domain: "http://www.w3.org/ns/csvw#Table".freeze,
238
- label: "notes".freeze,
262
+ property :note,
263
+ comment: %(The value of this property becomes the value of the notes annotation on the resource.).freeze,
264
+ label: "note".freeze,
239
265
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
240
266
  type: "rdf:Property".freeze
241
267
  property :null,
242
- comment: %(The string used for null values. If not specified, the default for this is the empty string.).freeze,
268
+ comment: %(An atomic property giving the string or strings used for null values within the data.).freeze,
243
269
  label: "null".freeze,
244
270
  range: "xsd:string".freeze,
245
271
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
246
272
  type: "rdf:Property".freeze
247
273
  property :ordered,
248
- comment: %(Indicates if multiple values of a cell are considered ordered or unordered; see separator.).freeze,
274
+ comment: %(A boolean atomic property taking a single value which indicates whether a list that is the value of the cell is ordered \(if `true`\) or unordered \(if `false`\).).freeze,
249
275
  label: "ordered".freeze,
250
276
  range: "xsd:boolean".freeze,
251
277
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
252
278
  type: "rdf:Property".freeze
253
279
  property :pattern,
254
- comment: %(A regular expression string, in the syntax and interpreted as defined by [ECMASCRIPT].).freeze,
255
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
280
+ comment: %(An atomic property containing a regular expression string, in the syntax and interpreted as defined by [ECMASCRIPT].).freeze,
281
+ domain: "http://www.w3.org/ns/csvw#NumericFormat".freeze,
256
282
  label: "pattern".freeze,
257
283
  range: "xsd:string".freeze,
258
284
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
@@ -265,18 +291,25 @@ module RDF::Tabular
265
291
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
266
292
  type: "rdf:Property".freeze
267
293
  property :propertyUrl,
268
- comment: %(An URI template property that holds one or more strings that may be expanded to URIs for properties if the table is mapped to another format. The default value of propertyUrl is "{#_name}".).freeze,
294
+ comment: %(An URI template property that may be used to create a URI for a property if the table is mapped to another format.).freeze,
269
295
  label: "property URL".freeze,
270
296
  range: "http://www.w3.org/ns/csvw#uriTemplate".freeze,
271
297
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
272
298
  type: "rdf:Property".freeze
273
299
  property :quoteChar,
274
- comment: %(The character that is used around escaped cells.).freeze,
300
+ comment: %(An atomic property that sets the quote character flag to the single provided value, which must be a single character.).freeze,
275
301
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
276
302
  label: "quote char".freeze,
277
303
  range: "xsd:string".freeze,
278
304
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
279
305
  type: "rdf:Property".freeze
306
+ property :reference,
307
+ comment: %(An object property that identifies a referenced table and a set of referenced columns within that table.).freeze,
308
+ domain: "http://www.w3.org/ns/csvw#ForeignKey".freeze,
309
+ label: "reference".freeze,
310
+ range: "http://www.w3.org/ns/csvw#TableReference".freeze,
311
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
312
+ type: "rdf:Property".freeze
280
313
  property :required,
281
314
  comment: %(A boolean value which indicates whether every cell within the column must have a non-null value.).freeze,
282
315
  domain: "http://www.w3.org/ns/csvw#Column".freeze,
@@ -284,17 +317,18 @@ module RDF::Tabular
284
317
  range: "xsd:boolean".freeze,
285
318
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
286
319
  type: "rdf:Property".freeze
287
- property :resources,
288
- comment: %(An array of table descriptions for the tables in the group.).freeze,
289
- domain: "http://www.w3.org/ns/csvw#TableGroup".freeze,
290
- label: "resources".freeze,
291
- range: "http://www.w3.org/ns/csvw#Table".freeze,
320
+ property :resource,
321
+ comment: %(A link property holding a URL that is the identifier for a specific table that is being referenced.).freeze,
322
+ domain: "http://www.w3.org/ns/csvw#TableReference".freeze,
323
+ label: "resource".freeze,
324
+ range: "xsd:anyURI".freeze,
292
325
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
293
326
  type: "rdf:Property".freeze
294
327
  property :row,
295
328
  comment: %(Relates a Table to each Row output.).freeze,
296
329
  domain: "http://www.w3.org/ns/csvw#Table".freeze,
297
330
  label: "row".freeze,
331
+ range: "http://www.w3.org/ns/csvw#Row".freeze,
298
332
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
299
333
  subPropertyOf: "rdfs:member".freeze,
300
334
  type: "rdf:Property".freeze
@@ -304,49 +338,56 @@ module RDF::Tabular
304
338
  range: "xsd:integer".freeze,
305
339
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
306
340
  type: "rdf:Property".freeze
341
+ property :schemaReference,
342
+ comment: %(A link property holding a URL that is the identifier for a schema that is being referenced.).freeze,
343
+ domain: "http://www.w3.org/ns/csvw#TableReference".freeze,
344
+ label: "schema reference".freeze,
345
+ range: "xsd:anyURI".freeze,
346
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
347
+ type: "rdf:Property".freeze
307
348
  property :scriptFormat,
308
- comment: %(A link property giving the single URL for the format that is used by the script or template. If one has been defined, this should be a URL for a media type, in the form http://www.iana.org/assignments/media-types/media-type such as http://www.iana.org/assignments/media-types/application/javascript. Otherwise, it can be any URL that describes the script or template format.).freeze,
349
+ comment: %(A link property giving the single URL for the format that is used by the script or template.).freeze,
309
350
  domain: "http://www.w3.org/ns/csvw#Transformation".freeze,
310
351
  label: "script format".freeze,
311
352
  range: "xsd:anyURI".freeze,
312
353
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
313
354
  type: "rdf:Property".freeze
314
355
  property :separator,
315
- comment: %(The character used to separate items in the string value of the cell.).freeze,
356
+ comment: %(An atomic property that must have a single string value that is the character used to separate items in the string value of the cell.).freeze,
316
357
  label: "separator".freeze,
317
358
  range: "xsd:string".freeze,
318
359
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
319
360
  type: "rdf:Property".freeze
320
361
  property :skipBlankRows,
321
- comment: %(Indicates whether to ignore wholly empty rows \(ie rows in which all the cells are empty\). The default is false.).freeze,
362
+ comment: %(An boolean atomic property that sets the skip blank rows flag to the single provided boolean value.).freeze,
322
363
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
323
364
  label: "skip blank rows".freeze,
324
365
  range: "xsd:boolean".freeze,
325
366
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
326
367
  type: "rdf:Property".freeze
327
368
  property :skipColumns,
328
- comment: %(The number of columns to skip at the beginning of each row, before any header columns. The default is 0.).freeze,
369
+ comment: %(An numeric atomic property that sets the skip columns flag to the single provided numeric value, which must be a non-negative integer.).freeze,
329
370
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
330
371
  label: "skip columns".freeze,
331
372
  range: "xsd:nonNegativeInteger".freeze,
332
373
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
333
374
  type: "rdf:Property".freeze
334
375
  property :skipInitialSpace,
335
- comment: %(If true, sets the trim flag to "start". If false, to false.).freeze,
376
+ comment: %(A boolean atomic property that, if `true`, sets the trim flag to "start". If `false`, to `false`. If the trim property is provided, the skipInitialSpace property is ignored.).freeze,
336
377
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
337
378
  label: "skip initial space".freeze,
338
379
  range: "xsd:boolean".freeze,
339
380
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
340
381
  type: "rdf:Property".freeze
341
382
  property :skipRows,
342
- comment: %(The number of rows to skip at the beginning of the file, before a header row or tabular data.).freeze,
383
+ comment: %(An numeric atomic property that sets the skip rows flag to the single provided numeric value, which must be a non-negative integer.).freeze,
343
384
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
344
385
  label: "skip rows".freeze,
345
386
  range: "xsd:nonNegativeInteger".freeze,
346
387
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
347
388
  type: "rdf:Property".freeze
348
389
  property :source,
349
- comment: %(The format to which the tabular data should be transformed prior to the transformation using the template. If the value is "json", the tabular data should first be transformed first to JSON based on the simple mapping defined in Generating JSON from Tabular Data on the Web. If the value is "rdf", it should similarly first be transformed to XML based on the simple mapping defined in Generating RDF from Tabular Data on the Web.).freeze,
390
+ comment: %(A single string atomic property that provides, if specified, the format to which the tabular data should be transformed prior to the transformation using the script or template.).freeze,
350
391
  domain: "http://www.w3.org/ns/csvw#Transformation".freeze,
351
392
  label: "source".freeze,
352
393
  range: "xsd:string".freeze,
@@ -359,7 +400,7 @@ module RDF::Tabular
359
400
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
360
401
  type: "rdf:Property".freeze
361
402
  property :table,
362
- comment: %(Relates an Table group to annotated tables. \(Note, this is different from csvw:resources, which relates metadata, rather than resulting annotated table descriptions.).freeze,
403
+ comment: %(Relates an Table group to annotated tables.).freeze,
363
404
  domain: "http://www.w3.org/ns/csvw#TableGroup".freeze,
364
405
  label: "table".freeze,
365
406
  range: "http://www.w3.org/ns/csvw#Table".freeze,
@@ -367,32 +408,32 @@ module RDF::Tabular
367
408
  subPropertyOf: "rdfs:member".freeze,
368
409
  type: "rdf:Property".freeze
369
410
  property :tableDirection,
370
- comment: %(One of csvw:rtl csvw:ltr or csvw:default. Indicates whether the tables in the group should be displayed with the first column on the right, on the left, or based on the first character in the table that has a specific direction. ).freeze,
411
+ comment: %(One of csvw:rtl csvw:ltr or csvw:default. Indicates whether the tables in the group should be displayed with the first column on the right, on the left, or based on the first character in the table that has a specific direction.).freeze,
371
412
  label: "table direction".freeze,
372
413
  range: "http://www.w3.org/ns/csvw#Direction".freeze,
373
414
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
374
415
  type: "rdf:Property".freeze
375
416
  property :tableSchema,
376
- comment: %(An object property that provides a schema description for an individual table, or all the tables in a group.).freeze,
417
+ comment: %(An object property that provides a single schema description as described in section 4.8 Schemas, used as the default for all the tables in the group).freeze,
377
418
  label: "table schema".freeze,
378
419
  range: "http://www.w3.org/ns/csvw#Schema".freeze,
379
420
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
380
421
  type: "rdf:Property".freeze
381
422
  property :targetFormat,
382
- comment: %(A link property giving the single URL for the format that will be created through the transformation. If one has been defined, this should be a URL for a media type, in the form http://www.iana.org/assignments/media-types/media-type such as http://www.iana.org/assignments/media-types/text/calendar. Otherwise, it can be any URL that describes the target format.).freeze,
423
+ comment: %(A link property giving the single URL for the format that will be created through the transformation.).freeze,
383
424
  domain: "http://www.w3.org/ns/csvw#Transformation".freeze,
384
425
  label: "target format".freeze,
385
426
  range: "xsd:anyURI".freeze,
386
427
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
387
428
  type: "rdf:Property".freeze
388
429
  property :textDirection,
389
- comment: %(One of csvw:rtl or csvw:ltr. Indicates whether the text within cells should be displayed by default as left-to-right or right-to-left text. ).freeze,
430
+ comment: %(An atomic property that must have a single value that is one of csvw:rtl or csvw:ltr \(the default\).).freeze,
390
431
  label: "text direction".freeze,
391
432
  range: "http://www.w3.org/ns/csvw#Direction".freeze,
392
433
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
393
434
  type: "rdf:Property".freeze
394
435
  property :title,
395
- comment: %(For a Transformation A natural language property that describes the format that will be generated from the transformation. This is useful if the target format is a generic format \(such as application/json\) and the transformation is creating a specific profile of that format.
436
+ comment: %(For a Transformation A natural language property that describes the format that will be generated from the transformation.
396
437
 
397
438
  For a Column: A natural language property that provides possible alternative names for the column.).freeze,
398
439
  label: "title".freeze,
@@ -405,7 +446,7 @@ For a Column: A natural language property that provides possible alternative nam
405
446
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
406
447
  type: "rdf:Property".freeze
407
448
  property :trim,
408
- comment: %(Indicates whether to trim whitespace around cells; may be true, false, start or end. The default is false.).freeze,
449
+ comment: %(An atomic property that, if the boolean `true`, sets the trim flag to `true` and if the boolean `false` to `false`. If the value provided is a string, sets the trim flag to the provided value, which must be one of "true", "false", "start" or "end".).freeze,
409
450
  domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
410
451
  label: "trim".freeze,
411
452
  range: "xsd:boolean".freeze,
@@ -414,13 +455,13 @@ For a Column: A natural language property that provides possible alternative nam
414
455
  property :url,
415
456
  comment: %(For a Table: This link property gives the single URL of the CSV file that the table is held in, relative to the location of the metadata document.
416
457
 
417
- For a Template: A link property giving the single URL of the file that the template is held in, relative to the location of the metadata document.).freeze,
458
+ For a Transformation: A link property giving the single URL of the file that the script or template is held in, relative to the location of the metadata document.).freeze,
418
459
  label: "url".freeze,
419
460
  range: "xsd:anyURI".freeze,
420
461
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
421
462
  type: "rdf:Property".freeze
422
463
  property :valueUrl,
423
- comment: %(An URI template property that is used to define one or more resources value of a cell instead of a literal values.).freeze,
464
+ comment: %(An URI template property that is used to map the values to the cells into URLs.).freeze,
424
465
  label: "valueUrl".freeze,
425
466
  range: "http://www.w3.org/ns/csvw#uriTemplate".freeze,
426
467
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,