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.
- checksums.yaml +4 -4
- data/README.md +209 -0
- data/VERSION +1 -1
- data/etc/csvw.jsonld +20 -53
- data/etc/doap.csv-metadata.json +23 -23
- data/lib/rdf/tabular/csvw.rb +121 -80
- data/lib/rdf/tabular/metadata.rb +173 -148
- data/lib/rdf/tabular/reader.rb +149 -99
- data/spec/metadata_spec.rb +110 -113
- data/spec/reader_spec.rb +102 -0
- data/spec/suite_helper.rb +2 -1
- metadata +90 -89
data/lib/rdf/tabular/csvw.rb
CHANGED
@@ -1,12 +1,17 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# This file generated automatically using vocab-fetch from
|
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::
|
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
|
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: %(
|
35
|
-
label: "Table
|
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
|
40
|
-
label: "
|
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: "
|
85
|
+
range: "xsd:string".freeze,
|
61
86
|
"rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
|
62
87
|
type: "rdf:Property".freeze
|
63
|
-
property :
|
64
|
-
comment: %(An array of
|
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: "
|
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: %(
|
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
|
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: %(
|
85
|
-
domain: "http://www.w3.org/ns/csvw#
|
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
|
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: %(
|
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: %(
|
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: %(
|
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 :
|
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
|
127
|
-
range: "
|
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: %(
|
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: %(
|
139
|
-
domain: "http://www.w3.org/ns/csvw#
|
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
|
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 :
|
167
|
-
comment: %(
|
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 :
|
180
|
-
comment: %(
|
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: %(
|
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: %(
|
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: %(
|
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: %(
|
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: %(
|
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: %(
|
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 :
|
236
|
-
comment: %(
|
237
|
-
|
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: %(
|
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: %(
|
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: %(
|
255
|
-
domain: "http://www.w3.org/ns/csvw#
|
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
|
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: %(
|
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 :
|
288
|
-
comment: %(
|
289
|
-
domain: "http://www.w3.org/ns/csvw#
|
290
|
-
label: "
|
291
|
-
range: "
|
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.
|
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: %(
|
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: %(
|
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: %(
|
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: %(
|
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: %(
|
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: %(
|
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.
|
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.
|
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
|
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.
|
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: %(
|
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.
|
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: %(
|
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
|
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
|
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,
|