rdf-tabular 1.0.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +62 -44
  3. data/UNLICENSE +1 -1
  4. data/VERSION +1 -1
  5. data/etc/csvw.jsonld +135 -50
  6. data/etc/doap.csv +1 -1
  7. data/etc/doap.csv-metadata.json +1 -1
  8. data/etc/doap.ttl +14 -13
  9. data/etc/earl.html +648 -648
  10. data/etc/earl.jsonld +691 -691
  11. data/etc/earl.ttl +846 -846
  12. data/lib/rdf/tabular.rb +3 -3
  13. data/lib/rdf/tabular/csvw.rb +626 -182
  14. data/lib/rdf/tabular/format.rb +8 -6
  15. data/lib/rdf/tabular/literal.rb +1 -1
  16. data/lib/rdf/tabular/metadata.rb +63 -58
  17. data/lib/rdf/tabular/reader.rb +32 -20
  18. data/lib/rdf/tabular/uax35.rb +1 -1
  19. data/spec/data/countries-minimal.json +38 -0
  20. data/spec/data/countries-minimal.ttl +36 -0
  21. data/spec/data/countries-standard.json +86 -0
  22. data/spec/data/countries-standard.ttl +75 -0
  23. data/spec/data/countries.csv +4 -0
  24. data/spec/data/countries.csv-minimal.json +16 -0
  25. data/spec/data/countries.csv-minimal.ttl +19 -0
  26. data/spec/data/countries.csv-standard.json +33 -0
  27. data/spec/data/countries.csv-standard.ttl +44 -0
  28. data/spec/data/countries.html +88 -0
  29. data/spec/data/countries.json +53 -0
  30. data/spec/data/countries_embed-minimal.json +38 -0
  31. data/spec/data/countries_embed-minimal.ttl +36 -0
  32. data/spec/data/countries_embed-standard.json +86 -0
  33. data/spec/data/countries_embed-standard.ttl +75 -0
  34. data/spec/data/countries_embed.html +88 -0
  35. data/spec/data/countries_html-minimal.json +38 -0
  36. data/spec/data/countries_html-minimal.ttl +36 -0
  37. data/spec/data/countries_html-standard.json +86 -0
  38. data/spec/data/countries_html-standard.ttl +75 -0
  39. data/spec/data/country-codes-and-names-minimal.json +19 -0
  40. data/spec/data/country-codes-and-names-minimal.ttl +22 -0
  41. data/spec/data/country-codes-and-names-standard.json +47 -0
  42. data/spec/data/country-codes-and-names-standard.ttl +45 -0
  43. data/spec/data/country-codes-and-names.csv +5 -0
  44. data/spec/data/country_slice.csv +4 -0
  45. data/spec/data/junior-roles.csv +3 -0
  46. data/spec/data/junior-roles.json +54 -0
  47. data/spec/data/roles-minimal.json +32 -0
  48. data/spec/data/roles-minimal.ttl +36 -0
  49. data/spec/data/roles-standard.json +56 -0
  50. data/spec/data/roles-standard.ttl +66 -0
  51. data/spec/data/roles.json +23 -0
  52. data/spec/data/senior-roles.csv +3 -0
  53. data/spec/data/senior-roles.json +52 -0
  54. data/spec/data/test232-metadata.json +10 -0
  55. data/spec/data/test232.csv +3 -0
  56. data/spec/data/tree-ops-atd.json +1 -0
  57. data/spec/data/tree-ops-ext-minimal.json +42 -0
  58. data/spec/data/tree-ops-ext-minimal.ttl +34 -0
  59. data/spec/data/tree-ops-ext-standard.json +93 -0
  60. data/spec/data/tree-ops-ext-standard.ttl +82 -0
  61. data/spec/data/tree-ops-ext.csv +4 -0
  62. data/spec/data/tree-ops-ext.json +81 -0
  63. data/spec/data/tree-ops-minimal.json +18 -0
  64. data/spec/data/tree-ops-minimal.ttl +14 -0
  65. data/spec/data/tree-ops-standard.json +44 -0
  66. data/spec/data/tree-ops-standard.ttl +44 -0
  67. data/spec/data/tree-ops-virtual-minimal.json +32 -0
  68. data/spec/data/tree-ops-virtual-minimal.ttl +25 -0
  69. data/spec/data/tree-ops-virtual-standard.json +49 -0
  70. data/spec/data/tree-ops-virtual-standard.ttl +49 -0
  71. data/spec/data/tree-ops-virtual.json +48 -0
  72. data/spec/data/tree-ops.csv +3 -0
  73. data/spec/data/tree-ops.csv-metadata.json +43 -0
  74. data/spec/data/tree-ops.html +54 -0
  75. data/spec/data/tree-ops.tsv +3 -0
  76. data/spec/format_spec.rb +1 -1
  77. data/spec/metadata_spec.rb +85 -8
  78. data/spec/reader_spec.rb +2 -2
  79. data/spec/suite_helper.rb +2 -2
  80. data/spec/suite_spec.rb +4 -5
  81. metadata +147 -37
  82. data/lib/rdf/tabular/json.rb +0 -0
  83. data/spec/w3c-csvw +0 -1
@@ -1,14 +1,14 @@
1
1
  $:.unshift(File.expand_path("..", __FILE__))
2
- require 'rdf' # @see http://rubygems.org/gems/rdf
2
+ require 'rdf' # @see https://rubygems.org/gems/rdf
3
3
  require 'csv'
4
4
 
5
5
  module RDF
6
6
  ##
7
7
  # **`RDF::Tabular`** is a Tabular/CSV extension for RDF.rb.
8
8
  #
9
- # @see http://w3c.github.io/csvw/
9
+ # @see https://w3c.github.io/csvw/
10
10
  #
11
- # @author [Gregg Kellogg](http://greggkellogg.net/)
11
+ # @author [Gregg Kellogg](https://greggkellogg.net/)
12
12
  module Tabular
13
13
  require 'rdf/tabular/format'
14
14
  autoload :Column, 'rdf/tabular/metadata'
@@ -1,518 +1,962 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from etc/csvw.jsonld
2
+ # frozen_string_literal: true
3
+ # This file generated automatically using rdf vocabulary format from http://www.w3.org/ns/csvw#
3
4
  require 'rdf'
4
5
  module RDF::Tabular
5
- class CSVW < RDF::StrictVocabulary("http://www.w3.org/ns/csvw#")
6
+ # @!parse
7
+ # # Vocabulary for <http://www.w3.org/ns/csvw#>
8
+ # #
9
+ # # CSVW Namespace Vocabulary Terms
10
+ # #
11
+ # # This document describes the RDFS vocabulary description used in the Metadata Vocabulary for Tabular Data [[tabular-metadata]] along with the default JSON-LD Context.
12
+ # # @version https://github.com/w3c/csvw/commit/94898e9f0b073aa09b3334ded2eb5ab3b87b37a9
13
+ # # @see http://www.w3.org/TR/tabular-metadata
14
+ # class CSVW < RDF::StrictVocabulary
15
+ # # A Cell represents a cell at the intersection of a Row and a Column within a Table.
16
+ # # @return [RDF::Vocabulary::Term]
17
+ # attr_reader :Cell
18
+ #
19
+ # # A Column represents a vertical arrangement of Cells within a Table.
20
+ # # @return [RDF::Vocabulary::Term]
21
+ # attr_reader :Column
22
+ #
23
+ # # Describes facets of a datatype.
24
+ # # @return [RDF::Vocabulary::Term]
25
+ # attr_reader :Datatype
26
+ #
27
+ # # A Dialect Description provides hints to parsers about how to parse a linked file.
28
+ # # @return [RDF::Vocabulary::Term]
29
+ # attr_reader :Dialect
30
+ #
31
+ # # The class of table/text directions.
32
+ # # @return [RDF::Vocabulary::Term]
33
+ # attr_reader :Direction
34
+ #
35
+ # # Describes relationships between Columns in one or more Tables.
36
+ # # @return [RDF::Vocabulary::Term]
37
+ # attr_reader :ForeignKey
38
+ #
39
+ # # 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.
40
+ # # @return [RDF::Vocabulary::Term]
41
+ # attr_reader :NumericFormat
42
+ #
43
+ # # A Row represents a horizontal arrangement of cells within a Table.
44
+ # # @return [RDF::Vocabulary::Term]
45
+ # attr_reader :Row
46
+ #
47
+ # # A Schema is a definition of a tabular format that may be common to multiple tables.
48
+ # # @return [RDF::Vocabulary::Term]
49
+ # attr_reader :Schema
50
+ #
51
+ # # An annotated table is a table that is annotated with additional metadata.
52
+ # # @return [RDF::Vocabulary::Term]
53
+ # attr_reader :Table
54
+ #
55
+ # # A Group of Tables comprises a set of Annotated Tables and a set of annotations that relate to those Tables.
56
+ # # @return [RDF::Vocabulary::Term]
57
+ # attr_reader :TableGroup
58
+ #
59
+ # # An object property that identifies a referenced table and a set of referenced columns within that table.
60
+ # # @return [RDF::Vocabulary::Term]
61
+ # attr_reader :TableReference
62
+ #
63
+ # # A Transformation Definition is a definition of how tabular data can be transformed into another format.
64
+ # # @return [RDF::Vocabulary::Term]
65
+ # attr_reader :Transformation
66
+ #
67
+ # # A URI template property that MAY be used to indicate what a cell contains information about.
68
+ # # @return [RDF::Vocabulary::Term]
69
+ # attr_reader :aboutUrl
70
+ #
71
+ # # An atomic property that contains a single string: a term defined in the default context representing a built-in datatype URL, as listed above.
72
+ # # @return [RDF::Vocabulary::Term]
73
+ # attr_reader :base
74
+ #
75
+ # # An array property of column descriptions as described in section 5.6 Columns.
76
+ # # @return [RDF::Vocabulary::Term]
77
+ # attr_reader :column
78
+ #
79
+ # # A column reference property that holds either a single reference to a column description object within this schema, or an array of references. These form the referencing columns for the foreign key definition.
80
+ # # @return [RDF::Vocabulary::Term]
81
+ # attr_reader :columnReference
82
+ #
83
+ # # An atomic property that sets the comment prefix flag to the single provided value, which MUST be a string.
84
+ # # @return [RDF::Vocabulary::Term]
85
+ # attr_reader :commentPrefix
86
+ #
87
+ # # 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. If the value of this property is a string, it MUST be one of the built-in datatypes defined in section 5.11.1 Built-in Datatypes or an absolute URL; if it is an object then it describes a more specialised datatype.
88
+ # # @return [RDF::Vocabulary::Term]
89
+ # attr_reader :datatype
90
+ #
91
+ # # A string whose value is used to represent a decimal point within the number.
92
+ # # @return [RDF::Vocabulary::Term]
93
+ # attr_reader :decimalChar
94
+ #
95
+ # # 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.
96
+ # # @return [RDF::Vocabulary::Term]
97
+ # attr_reader :default
98
+ #
99
+ # # An atomic property that sets the delimiter flag to the single provided value, which MUST be a string.
100
+ # # @return [RDF::Vocabulary::Term]
101
+ # attr_reader :delimiter
102
+ #
103
+ # # 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.
104
+ # # @return [RDF::Vocabulary::Term]
105
+ # attr_reader :describes
106
+ #
107
+ # # An object property that provides a single dialect description. If provided, dialect provides hints to processors about how to parse the referenced files to create tabular data models for the tables in the group.
108
+ # # @return [RDF::Vocabulary::Term]
109
+ # attr_reader :dialect
110
+ #
111
+ # # A boolean atomic property that, if `true`, sets the escape character flag to `"`.
112
+ # # @return [RDF::Vocabulary::Term]
113
+ # attr_reader :doubleQuote
114
+ #
115
+ # # An atomic property that sets the encoding flag to the single provided string value, which MUST be a defined in [[encoding]]. The default is "utf-8".
116
+ # # @return [RDF::Vocabulary::Term]
117
+ # attr_reader :encoding
118
+ #
119
+ # # For a Table: a list of foreign keys on the table. For a Schema: 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.
120
+ # # @return [RDF::Vocabulary::Term]
121
+ # attr_reader :foreignKey
122
+ #
123
+ # # An atomic property that contains either a single string or an object that defines the format of a value of this type, used when parsing a string value as described in Parsing Cells in [[tabular-data-model]].
124
+ # # @return [RDF::Vocabulary::Term]
125
+ # attr_reader :format
126
+ #
127
+ # # A string whose value is used to group digits within the number.
128
+ # # @return [RDF::Vocabulary::Term]
129
+ # attr_reader :groupChar
130
+ #
131
+ # # 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.
132
+ # # @return [RDF::Vocabulary::Term]
133
+ # attr_reader :header
134
+ #
135
+ # # An numeric atomic property that sets the header row count flag to the single provided value, which must be a non-negative integer.
136
+ # # @return [RDF::Vocabulary::Term]
137
+ # attr_reader :headerRowCount
138
+ #
139
+ # # An atomic property giving a single string language code as defined by [[BCP47]].
140
+ # # @return [RDF::Vocabulary::Term]
141
+ # attr_reader :lang
142
+ #
143
+ # # The exact length of the value of the cell.
144
+ # # @return [RDF::Vocabulary::Term]
145
+ # attr_reader :length
146
+ #
147
+ # # An atomic property that sets the line terminators flag to either an array containing the single provided string value, or the provided array.
148
+ # # @return [RDF::Vocabulary::Term]
149
+ # attr_reader :lineTerminators
150
+ #
151
+ # # An atomic property that contains a single number that is the maximum valid value (exclusive).
152
+ # # @return [RDF::Vocabulary::Term]
153
+ # attr_reader :maxExclusive
154
+ #
155
+ # # An atomic property that contains a single number that is the maximum valid value (inclusive).
156
+ # # @return [RDF::Vocabulary::Term]
157
+ # attr_reader :maxInclusive
158
+ #
159
+ # # A numeric atomic property that contains a single integer that is the maximum length of the value.
160
+ # # @return [RDF::Vocabulary::Term]
161
+ # attr_reader :maxLength
162
+ #
163
+ # # An atomic property that contains a single number that is the minimum valid value (exclusive).
164
+ # # @return [RDF::Vocabulary::Term]
165
+ # attr_reader :minExclusive
166
+ #
167
+ # # An atomic property that contains a single number that is the minimum valid value (inclusive).
168
+ # # @return [RDF::Vocabulary::Term]
169
+ # attr_reader :minInclusive
170
+ #
171
+ # # An atomic property that contains a single integer that is the minimum length of the value.
172
+ # # @return [RDF::Vocabulary::Term]
173
+ # attr_reader :minLength
174
+ #
175
+ # # An atomic property that gives a single canonical name for the column. The value of this property becomes the name annotation for the described column.
176
+ # # @return [RDF::Vocabulary::Term]
177
+ # attr_reader :name
178
+ #
179
+ # # An array property that provides an array of objects representing arbitrary annotations on the annotated tabular data model.
180
+ # # @return [RDF::Vocabulary::Term]
181
+ # attr_reader :note
182
+ #
183
+ # # An atomic property giving the string or strings used for null values within the data. If the string value of the cell is equal to any one of these values, the cell value is `null`.
184
+ # # @return [RDF::Vocabulary::Term]
185
+ # attr_reader :null
186
+ #
187
+ # # 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`).
188
+ # # @return [RDF::Vocabulary::Term]
189
+ # attr_reader :ordered
190
+ #
191
+ # # A regular expression string, in the syntax and interpreted as defined by [[ECMASCRIPT]].
192
+ # # @return [RDF::Vocabulary::Term]
193
+ # attr_reader :pattern
194
+ #
195
+ # # For Schema: A column reference property that holds either a single reference to a column description object or an array of references. For Row: a possibly empty list of cells whose values together provide a unique identifier for this row. This is similar to the name of a column.
196
+ # # @return [RDF::Vocabulary::Term]
197
+ # attr_reader :primaryKey
198
+ #
199
+ # # An URI template property that MAY be used to create a URI for a property if the table is mapped to another format.
200
+ # # @return [RDF::Vocabulary::Term]
201
+ # attr_reader :propertyUrl
202
+ #
203
+ # # An atomic property that sets the quote character flag to the single provided value, which must be a string or `null`.
204
+ # # @return [RDF::Vocabulary::Term]
205
+ # attr_reader :quoteChar
206
+ #
207
+ # # An object property that identifies a **referenced table** and a set of **referenced columns** within that table.
208
+ # # @return [RDF::Vocabulary::Term]
209
+ # attr_reader :reference
210
+ #
211
+ # # A possibly empty list of pairs of a foreign key and a row in a table within the same group of tables.
212
+ # # @return [RDF::Vocabulary::Term]
213
+ # attr_reader :referencedRow
214
+ #
215
+ # # A boolean atomic property taking a single value which indicates whether the cell must have a non-null value. The default is `false`.
216
+ # # @return [RDF::Vocabulary::Term]
217
+ # attr_reader :required
218
+ #
219
+ # # A link property holding a URL that is the identifier for a specific table that is being referenced.
220
+ # # @return [RDF::Vocabulary::Term]
221
+ # attr_reader :resource
222
+ #
223
+ # # Relates a Table to each Row output.
224
+ # # @return [RDF::Vocabulary::Term]
225
+ # attr_reader :row
226
+ #
227
+ # # A column reference property that holds either a single reference to a column description object or an array of references.
228
+ # # @return [RDF::Vocabulary::Term]
229
+ # attr_reader :rowTitle
230
+ #
231
+ # # The position of the row amongst the rows of the Annotated Tabl, starting from 1
232
+ # # @return [RDF::Vocabulary::Term]
233
+ # attr_reader :rownum
234
+ #
235
+ # # A link property holding a URL that is the identifier for a schema that is being referenced.
236
+ # # @return [RDF::Vocabulary::Term]
237
+ # attr_reader :schemaReference
238
+ #
239
+ # # A link property giving the single URL for the format that is used by the script or template.
240
+ # # @return [RDF::Vocabulary::Term]
241
+ # attr_reader :scriptFormat
242
+ #
243
+ # # 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.
244
+ # # @return [RDF::Vocabulary::Term]
245
+ # attr_reader :separator
246
+ #
247
+ # # An boolean atomic property that sets the `skip blank rows` flag to the single provided boolean value.
248
+ # # @return [RDF::Vocabulary::Term]
249
+ # attr_reader :skipBlankRows
250
+ #
251
+ # # An numeric atomic property that sets the `skip columns` flag to the single provided numeric value, which MUST be a non-negative integer.
252
+ # # @return [RDF::Vocabulary::Term]
253
+ # attr_reader :skipColumns
254
+ #
255
+ # # A boolean atomic property that, if `true`, sets the trim flag to "start". If `false`, to `false`.
256
+ # # @return [RDF::Vocabulary::Term]
257
+ # attr_reader :skipInitialSpace
258
+ #
259
+ # # An numeric atomic property that sets the `skip rows` flag to the single provided numeric value, which MUST be a non-negative integer.
260
+ # # @return [RDF::Vocabulary::Term]
261
+ # attr_reader :skipRows
262
+ #
263
+ # # 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.
264
+ # # @return [RDF::Vocabulary::Term]
265
+ # attr_reader :source
266
+ #
267
+ # # A boolean atomic property. If `true`, suppresses any output that would be generated when converting a table or cells within a column.
268
+ # # @return [RDF::Vocabulary::Term]
269
+ # attr_reader :suppressOutput
270
+ #
271
+ # # Relates an Table group to annotated tables.
272
+ # # @return [RDF::Vocabulary::Term]
273
+ # attr_reader :table
274
+ #
275
+ # # One of `rtl`, `ltr` or `auto`. 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.
276
+ # # @return [RDF::Vocabulary::Term]
277
+ # attr_reader :tableDirection
278
+ #
279
+ # # An object property that provides a single schema description as described in section 5.5 Schemas, used as the default for all the tables in the group
280
+ # # @return [RDF::Vocabulary::Term]
281
+ # attr_reader :tableSchema
282
+ #
283
+ # # A link property giving the single URL for the format that will be created through the transformation.
284
+ # # @return [RDF::Vocabulary::Term]
285
+ # attr_reader :targetFormat
286
+ #
287
+ # # An atomic property that must have a single value that is one of `rtl` or `ltr` (the default).
288
+ # # @return [RDF::Vocabulary::Term]
289
+ # attr_reader :textDirection
290
+ #
291
+ # # For a Transformation A natural language property that describes the format that will be generated from the transformation. For a Column: A natural language property that provides possible alternative names for the column.
292
+ # # @return [RDF::Vocabulary::Term]
293
+ # attr_reader :title
294
+ #
295
+ # # An array property of transformation definitions that provide mechanisms to transform the tabular data into other formats.
296
+ # # @return [RDF::Vocabulary::Term]
297
+ # attr_reader :transformations
298
+ #
299
+ # # 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".
300
+ # # @return [RDF::Vocabulary::Term]
301
+ # attr_reader :trim
302
+ #
303
+ # # 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. 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.
304
+ # # @return [RDF::Vocabulary::Term]
305
+ # attr_reader :url
306
+ #
307
+ # # An URI template property that is used to map the values of cells into URLs.
308
+ # # @return [RDF::Vocabulary::Term]
309
+ # attr_reader :valueUrl
310
+ #
311
+ # # A boolean atomic property taking a single value which indicates whether the column is a virtual column not present in the original source
312
+ # # @return [RDF::Vocabulary::Term]
313
+ # attr_reader :virtual
314
+ #
315
+ # # A literal containing JSON.
316
+ # # @return [RDF::Vocabulary::Term]
317
+ # attr_reader :JSON
318
+ #
319
+ # #
320
+ # # @return [RDF::Vocabulary::Term]
321
+ # attr_reader :uriTemplate
322
+ #
323
+ # # Indicates whether the tables in the group should be displayed based on the first character in the table that has a specific direction.
324
+ # # @return [RDF::Vocabulary::Term]
325
+ # attr_reader :auto
326
+ #
327
+ # # Describes the role of a CSV file in the tabular data mapping.
328
+ # # @return [RDF::Vocabulary::Term]
329
+ # attr_reader :csvEncodedTabularData
330
+ #
331
+ # # For `textDirection`, indicates that the direction is inherited from the `tableDirection` annotation of the `table`.
332
+ # # @return [RDF::Vocabulary::Term]
333
+ # attr_reader :inherit
334
+ #
335
+ # # Indicates whether the tables in the group should be displayed with the first column on the right.
336
+ # # @return [RDF::Vocabulary::Term]
337
+ # attr_reader :ltr
338
+ #
339
+ # # Indicates whether the tables in the group should be displayed with the first column on the left.
340
+ # # @return [RDF::Vocabulary::Term]
341
+ # attr_reader :rtl
342
+ #
343
+ # # Describes the role of a Metadata file in the tabular data mapping.
344
+ # # @return [RDF::Vocabulary::Term]
345
+ # attr_reader :tabularMetadata
346
+ #
347
+ # end
348
+ CSVW = Class.new(RDF::StrictVocabulary("http://www.w3.org/ns/csvw#")) do
349
+
350
+ # Ontology definition
351
+ ontology :"http://www.w3.org/ns/csvw#",
352
+ "dc:date": "2017-05-23".freeze,
353
+ "dc:description": "This document describes the RDFS vocabulary description used in the Metadata Vocabulary for Tabular Data [[tabular-metadata]] along with the default JSON-LD Context.".freeze,
354
+ "dc:title": "CSVW Namespace Vocabulary Terms".freeze,
355
+ "owl:imports": "http://www.w3.org/ns/prov".freeze,
356
+ "owl:versionInfo": "https://github.com/w3c/csvw/commit/94898e9f0b073aa09b3334ded2eb5ab3b87b37a9".freeze,
357
+ "rdfs:seeAlso": "http://www.w3.org/TR/tabular-metadata".freeze,
358
+ type: "owl:Ontology".freeze
6
359
 
7
360
  # Class definitions
8
361
  term :Cell,
9
362
  comment: %(A Cell represents a cell at the intersection of a Row and a Column within a Table.).freeze,
363
+ isDefinedBy: "csvw:".freeze,
10
364
  label: "Cell".freeze,
11
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
12
365
  type: "rdfs:Class".freeze
13
366
  term :Column,
14
367
  comment: %(A Column represents a vertical arrangement of Cells within a Table.).freeze,
368
+ isDefinedBy: "csvw:".freeze,
15
369
  label: "Column Description".freeze,
16
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
17
370
  type: "rdfs:Class".freeze
18
371
  term :Datatype,
19
372
  comment: %(Describes facets of a datatype.).freeze,
373
+ isDefinedBy: "csvw:".freeze,
20
374
  label: "Datatype".freeze,
21
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
22
375
  type: "rdfs:Class".freeze
23
376
  term :Dialect,
24
377
  comment: %(A Dialect Description provides hints to parsers about how to parse a linked file.).freeze,
378
+ isDefinedBy: "csvw:".freeze,
25
379
  label: "Dialect Description".freeze,
26
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
27
380
  type: "rdfs:Class".freeze
28
381
  term :Direction,
29
382
  comment: %(The class of table/text directions.).freeze,
383
+ isDefinedBy: "csvw:".freeze,
30
384
  label: "Direction".freeze,
31
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
32
385
  type: "rdfs:Class".freeze
33
386
  term :ForeignKey,
34
387
  comment: %(Describes relationships between Columns in one or more Tables.).freeze,
388
+ isDefinedBy: "csvw:".freeze,
35
389
  label: "Foreign Key Definition".freeze,
36
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
37
390
  type: "rdfs:Class".freeze
38
391
  term :NumericFormat,
39
392
  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,
393
+ isDefinedBy: "csvw:".freeze,
40
394
  label: "Numeric Format".freeze,
41
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
42
395
  type: "rdfs:Class".freeze
43
396
  term :Row,
44
397
  comment: %(A Row represents a horizontal arrangement of cells within a Table.).freeze,
398
+ isDefinedBy: "csvw:".freeze,
45
399
  label: "Row".freeze,
46
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
47
400
  type: "rdfs:Class".freeze
48
401
  term :Schema,
49
402
  comment: %(A Schema is a definition of a tabular format that may be common to multiple tables.).freeze,
403
+ isDefinedBy: "csvw:".freeze,
50
404
  label: "Schema".freeze,
51
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
52
405
  type: "rdfs:Class".freeze
53
406
  term :Table,
54
407
  comment: %(An annotated table is a table that is annotated with additional metadata.).freeze,
408
+ isDefinedBy: "csvw:".freeze,
55
409
  label: "Annotated Table".freeze,
56
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
57
410
  type: "rdfs:Class".freeze
58
411
  term :TableGroup,
59
412
  comment: %(A Group of Tables comprises a set of Annotated Tables and a set of annotations that relate to those Tables.).freeze,
413
+ isDefinedBy: "csvw:".freeze,
60
414
  label: "Group of Tables".freeze,
61
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
62
415
  type: "rdfs:Class".freeze
63
416
  term :TableReference,
64
417
  comment: %(An object property that identifies a referenced table and a set of referenced columns within that table.).freeze,
418
+ isDefinedBy: "csvw:".freeze,
65
419
  label: "Table Reference".freeze,
66
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
67
420
  type: "rdfs:Class".freeze
68
421
  term :Transformation,
69
422
  comment: %(A Transformation Definition is a definition of how tabular data can be transformed into another format.).freeze,
423
+ isDefinedBy: "csvw:".freeze,
70
424
  label: "Transformation Definition".freeze,
71
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
72
425
  type: "rdfs:Class".freeze
73
426
 
74
427
  # Property definitions
75
428
  property :aboutUrl,
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,
429
+ comment: %(A URI template property that MAY be used to indicate what a cell contains information about.).freeze,
430
+ domain: term(
431
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
432
+ ),
433
+ isDefinedBy: "csvw:".freeze,
77
434
  label: "about URL".freeze,
78
- range: "http://www.w3.org/ns/csvw#uriTemplate".freeze,
79
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
435
+ range: "csvw:uriTemplate".freeze,
80
436
  type: "rdf:Property".freeze
81
437
  property :base,
82
- comment: %(An atomic property that contains a single string: a term defined in the default context representing a built-in datatype URL.).freeze,
83
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
438
+ comment: %(An atomic property that contains a single string: a term defined in the default context representing a built-in datatype URL, as listed above.).freeze,
439
+ domain: "csvw:Datatype".freeze,
440
+ isDefinedBy: "csvw:".freeze,
84
441
  label: "base".freeze,
85
442
  range: "xsd:string".freeze,
86
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
87
443
  type: "rdf:Property".freeze
88
444
  property :column,
89
- comment: %(An array property of column descriptions as described in section 4.9 Columns.).freeze,
90
- domain: "http://www.w3.org/ns/csvw#Schema".freeze,
445
+ comment: %(An array property of column descriptions as described in section 5.6 Columns.).freeze,
446
+ domain: "csvw:Schema".freeze,
447
+ isDefinedBy: "csvw:".freeze,
91
448
  label: "column".freeze,
92
- range: "http://www.w3.org/ns/csvw#Column".freeze,
93
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
449
+ range: "csvw:Column".freeze,
94
450
  type: "rdf:Property".freeze
95
451
  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,
452
+ comment: %(A column reference property that holds either a single reference to a column description object within this schema, or an array of references. These form the referencing columns for the foreign key definition.).freeze,
453
+ domain: term(
454
+ unionOf: list("csvw:ForeignKey".freeze, "csvw:TableReference".freeze)
455
+ ),
456
+ isDefinedBy: "csvw:".freeze,
97
457
  label: "column reference".freeze,
98
458
  range: "xsd:string".freeze,
99
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
100
459
  type: "rdf:Property".freeze
101
460
  property :commentPrefix,
102
- comment: %(An atomic property that sets the comment prefix flag to the single provided value, which must be a single character string.).freeze,
103
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
461
+ comment: %(An atomic property that sets the comment prefix flag to the single provided value, which MUST be a string.).freeze,
462
+ domain: "csvw:Dialect".freeze,
463
+ isDefinedBy: "csvw:".freeze,
104
464
  label: "comment prefix".freeze,
105
465
  range: "xsd:string".freeze,
106
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
107
466
  type: "rdf:Property".freeze
108
467
  property :datatype,
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,
468
+ 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. If the value of this property is a string, it MUST be one of the built-in datatypes defined in section 5.11.1 Built-in Datatypes or an absolute URL; if it is an object then it describes a more specialised datatype.).freeze,
469
+ domain: term(
470
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
471
+ ),
472
+ isDefinedBy: "csvw:".freeze,
110
473
  label: "datatype".freeze,
111
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
474
+ range: term(
475
+ unionOf: list("csvw:Datatype".freeze, "xsd:string".freeze)
476
+ ),
112
477
  type: "rdf:Property".freeze
113
478
  property :decimalChar,
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,
479
+ comment: %(A string whose value is used to represent a decimal point within the number.).freeze,
480
+ domain: "csvw:NumericFormat".freeze,
481
+ isDefinedBy: "csvw:".freeze,
116
482
  label: "decimal character".freeze,
117
483
  range: "xsd:string".freeze,
118
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
119
484
  type: "rdf:Property".freeze
120
485
  property :default,
121
486
  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,
487
+ domain: term(
488
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
489
+ ),
490
+ isDefinedBy: "csvw:".freeze,
122
491
  label: "default".freeze,
123
492
  range: "xsd:string".freeze,
124
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
125
493
  type: "rdf:Property".freeze
126
494
  property :delimiter,
127
- comment: %(An atomic property that sets the delimiter flag to the single provided value, which must be a single character string.).freeze,
128
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
495
+ comment: %(An atomic property that sets the delimiter flag to the single provided value, which MUST be a string.).freeze,
496
+ domain: "csvw:Dialect".freeze,
497
+ isDefinedBy: "csvw:".freeze,
129
498
  label: "delimiter".freeze,
130
499
  range: "xsd:string".freeze,
131
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
132
500
  type: "rdf:Property".freeze
133
501
  property :describes,
134
502
  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,
503
+ domain: "csvw:Row".freeze,
504
+ isDefinedBy: "csvw:".freeze,
136
505
  label: "describes".freeze,
137
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
138
506
  type: "rdf:Property".freeze
139
507
  property :dialect,
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,
508
+ comment: %(An object property that provides a single dialect description. If provided, dialect provides hints to processors about how to parse the referenced files to create tabular data models for the tables in the group.).freeze,
509
+ domain: term(
510
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze)
511
+ ),
512
+ isDefinedBy: "csvw:".freeze,
141
513
  label: "dialect".freeze,
142
- range: "http://www.w3.org/ns/csvw#Dialect".freeze,
143
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
514
+ range: "csvw:Dialect".freeze,
144
515
  type: "rdf:Property".freeze
145
516
  property :doubleQuote,
146
- comment: %(A boolean atomic property that, if `true`, sets the escape character flag to `"`. If `false`, to `\\`.).freeze,
147
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
517
+ comment: %(A boolean atomic property that, if `true`, sets the escape character flag to `"`.).freeze,
518
+ domain: "csvw:Dialect".freeze,
519
+ isDefinedBy: "csvw:".freeze,
148
520
  label: "double quote".freeze,
149
521
  range: "xsd:boolean".freeze,
150
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
151
522
  type: "rdf:Property".freeze
152
523
  property :encoding,
153
- comment: %(An atomic property that sets the encoding flag to the single provided string value, which must be a defined [encoding].).freeze,
154
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
524
+ comment: %(An atomic property that sets the encoding flag to the single provided string value, which MUST be a defined in [[encoding]]. The default is "utf-8".).freeze,
525
+ domain: "csvw:Dialect".freeze,
526
+ isDefinedBy: "csvw:".freeze,
155
527
  label: "encoding".freeze,
156
528
  range: "xsd:string".freeze,
157
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
158
529
  type: "rdf:Property".freeze
159
530
  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,
161
- domain: "http://www.w3.org/ns/csvw#Schema".freeze,
531
+ comment: %(For a Table: a list of foreign keys on the table.
532
+
533
+ For a Schema: 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,
534
+ domain: term(
535
+ unionOf: list("csvw:Table".freeze, "csvw:Schema".freeze)
536
+ ),
537
+ isDefinedBy: "csvw:".freeze,
162
538
  label: "foreign key".freeze,
163
- range: "http://www.w3.org/ns/csvw#ForeignKey".freeze,
164
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
539
+ range: "csvw:ForeignKey".freeze,
165
540
  type: "rdf:Property".freeze
166
541
  property :format,
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,
168
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
542
+ comment: %(An atomic property that contains either a single string or an object that defines the format of a value of this type, used when parsing a string value as described in Parsing Cells in [[tabular-data-model]].).freeze,
543
+ domain: "csvw:Datatype".freeze,
544
+ isDefinedBy: "csvw:".freeze,
169
545
  label: "format".freeze,
170
546
  range: "xsd:string".freeze,
171
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
172
547
  type: "rdf:Property".freeze
173
548
  property :groupChar,
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,
549
+ comment: %(A string whose value is used to group digits within the number.).freeze,
550
+ domain: "csvw:NumericFormat".freeze,
551
+ isDefinedBy: "csvw:".freeze,
176
552
  label: "group character".freeze,
177
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
553
+ range: term(
554
+ unionOf: list("csvw:NumericFormat".freeze, "xsd:string".freeze)
555
+ ),
178
556
  type: "rdf:Property".freeze
179
557
  property :header,
180
558
  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,
181
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
559
+ domain: "csvw:Dialect".freeze,
560
+ isDefinedBy: "csvw:".freeze,
182
561
  label: "header".freeze,
183
562
  range: "xsd:boolean".freeze,
184
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
185
563
  type: "rdf:Property".freeze
186
564
  property :headerRowCount,
187
- comment: %(The number of header rows \(following the skipped rows\) in the file. The default is 1.).freeze,
188
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
565
+ comment: %(An numeric atomic property that sets the header row count flag to the single provided value, which must be a non-negative integer.).freeze,
566
+ domain: "csvw:Dialect".freeze,
567
+ isDefinedBy: "csvw:".freeze,
189
568
  label: "header row count".freeze,
190
569
  range: "xsd:nonNegativeInteger".freeze,
191
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
192
570
  type: "rdf:Property".freeze
193
571
  property :lang,
194
- comment: %(An atomic property giving a single string language code as defined by [BCP47].).freeze,
572
+ comment: %(An atomic property giving a single string language code as defined by [[BCP47]].).freeze,
573
+ domain: term(
574
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
575
+ ),
576
+ isDefinedBy: "csvw:".freeze,
195
577
  label: "language".freeze,
196
578
  range: "xsd:string".freeze,
197
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
198
579
  type: "rdf:Property".freeze
199
580
  property :length,
200
581
  comment: %(The exact length of the value of the cell.).freeze,
201
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
582
+ domain: "csvw:Datatype".freeze,
583
+ isDefinedBy: "csvw:".freeze,
202
584
  label: "length".freeze,
203
585
  range: "xsd:nonNegativeInteger".freeze,
204
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
205
586
  type: "rdf:Property".freeze
206
587
  property :lineTerminators,
207
- comment: %(An atomic property that is either an array containing the single provided string value).freeze,
208
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
209
- label: "line terminator".freeze,
588
+ comment: %(An atomic property that sets the line terminators flag to either an array containing the single provided string value, or the provided array.).freeze,
589
+ domain: "csvw:Dialect".freeze,
590
+ isDefinedBy: "csvw:".freeze,
591
+ label: "line terminators".freeze,
210
592
  range: "xsd:string".freeze,
211
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
212
593
  type: "rdf:Property".freeze
213
594
  property :maxExclusive,
214
595
  comment: %(An atomic property that contains a single number that is the maximum valid value \(exclusive\).).freeze,
215
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
596
+ domain: "csvw:Datatype".freeze,
597
+ isDefinedBy: "csvw:".freeze,
216
598
  label: "max exclusive".freeze,
217
599
  range: "xsd:integer".freeze,
218
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
219
600
  type: "rdf:Property".freeze
220
601
  property :maxInclusive,
221
602
  comment: %(An atomic property that contains a single number that is the maximum valid value \(inclusive\).).freeze,
222
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
603
+ domain: "csvw:Datatype".freeze,
604
+ isDefinedBy: "csvw:".freeze,
223
605
  label: "max inclusive".freeze,
224
606
  range: "xsd:integer".freeze,
225
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
226
607
  type: "rdf:Property".freeze
227
608
  property :maxLength,
228
609
  comment: %(A numeric atomic property that contains a single integer that is the maximum length of the value.).freeze,
229
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
610
+ domain: "csvw:Datatype".freeze,
611
+ isDefinedBy: "csvw:".freeze,
230
612
  label: "max length".freeze,
231
613
  range: "xsd:nonNegativeInteger".freeze,
232
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
233
614
  type: "rdf:Property".freeze
234
615
  property :minExclusive,
235
616
  comment: %(An atomic property that contains a single number that is the minimum valid value \(exclusive\).).freeze,
236
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
617
+ domain: "csvw:Datatype".freeze,
618
+ isDefinedBy: "csvw:".freeze,
237
619
  label: "min exclusive".freeze,
238
620
  range: "xsd:integer".freeze,
239
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
240
621
  type: "rdf:Property".freeze
241
622
  property :minInclusive,
242
623
  comment: %(An atomic property that contains a single number that is the minimum valid value \(inclusive\).).freeze,
243
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
624
+ domain: "csvw:Datatype".freeze,
625
+ isDefinedBy: "csvw:".freeze,
244
626
  label: "min inclusive".freeze,
245
627
  range: "xsd:integer".freeze,
246
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
247
628
  type: "rdf:Property".freeze
248
629
  property :minLength,
249
630
  comment: %(An atomic property that contains a single integer that is the minimum length of the value.).freeze,
250
- domain: "http://www.w3.org/ns/csvw#Datatype".freeze,
631
+ domain: "csvw:Datatype".freeze,
632
+ isDefinedBy: "csvw:".freeze,
251
633
  label: "min length".freeze,
252
634
  range: "xsd:nonNegativeInteger".freeze,
253
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
254
635
  type: "rdf:Property".freeze
255
636
  property :name,
256
- comment: %(An atomic property that gives a canonical name for the column. This must be a string. Conversion specifications must use this property as the basis for the names of properties/elements/attributes in the results of conversions.).freeze,
257
- domain: "http://www.w3.org/ns/csvw#Column".freeze,
637
+ comment: %(An atomic property that gives a single canonical name for the column. The value of this property becomes the name annotation for the described column.).freeze,
638
+ domain: "csvw:Column".freeze,
639
+ isDefinedBy: "csvw:".freeze,
258
640
  label: "name".freeze,
259
641
  range: "xsd:string".freeze,
260
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
261
642
  type: "rdf:Property".freeze
262
643
  property :note,
263
- comment: %(The value of this property becomes the value of the notes annotation on the resource.).freeze,
644
+ comment: %(An array property that provides an array of objects representing arbitrary annotations on the annotated tabular data model.).freeze,
645
+ domain: term(
646
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze)
647
+ ),
648
+ isDefinedBy: "csvw:".freeze,
264
649
  label: "note".freeze,
265
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
266
650
  type: "rdf:Property".freeze
267
651
  property :null,
268
- comment: %(An atomic property giving the string or strings used for null values within the data.).freeze,
652
+ comment: %(An atomic property giving the string or strings used for null values within the data. If the string value of the cell is equal to any one of these values, the cell value is `null`.).freeze,
653
+ domain: term(
654
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
655
+ ),
656
+ isDefinedBy: "csvw:".freeze,
269
657
  label: "null".freeze,
270
658
  range: "xsd:string".freeze,
271
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
272
659
  type: "rdf:Property".freeze
273
660
  property :ordered,
274
661
  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,
662
+ domain: term(
663
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
664
+ ),
665
+ isDefinedBy: "csvw:".freeze,
275
666
  label: "ordered".freeze,
276
667
  range: "xsd:boolean".freeze,
277
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
278
668
  type: "rdf:Property".freeze
279
669
  property :pattern,
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,
670
+ comment: %(A regular expression string, in the syntax and interpreted as defined by [[ECMASCRIPT]].).freeze,
671
+ domain: "csvw:NumericFormat".freeze,
672
+ isDefinedBy: "csvw:".freeze,
282
673
  label: "pattern".freeze,
283
674
  range: "xsd:string".freeze,
284
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
285
675
  type: "rdf:Property".freeze
286
676
  property :primaryKey,
287
- comment: %(A column reference property that holds either a single reference to a column description object or an array of references.).freeze,
288
- domain: "http://www.w3.org/ns/csvw#Schema".freeze,
677
+ comment: %(For Schema: A column reference property that holds either a single reference to a column description object or an array of references.
678
+
679
+ For Row: a possibly empty list of cells whose values together provide a unique identifier for this row. This is similar to the name of a column.).freeze,
680
+ domain: term(
681
+ unionOf: list("csvw:Schema".freeze, "csvw:Row".freeze)
682
+ ),
683
+ isDefinedBy: "csvw:".freeze,
289
684
  label: "primary key".freeze,
290
685
  range: "xsd:string".freeze,
291
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
292
686
  type: "rdf:Property".freeze
293
687
  property :propertyUrl,
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,
688
+ 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,
689
+ domain: term(
690
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
691
+ ),
692
+ isDefinedBy: "csvw:".freeze,
295
693
  label: "property URL".freeze,
296
- range: "http://www.w3.org/ns/csvw#uriTemplate".freeze,
297
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
694
+ range: "csvw:uriTemplate".freeze,
298
695
  type: "rdf:Property".freeze
299
696
  property :quoteChar,
300
- comment: %(An atomic property that sets the quote character flag to the single provided value, which must be a single character.).freeze,
301
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
697
+ comment: %(An atomic property that sets the quote character flag to the single provided value, which must be a string or `null`.).freeze,
698
+ domain: "csvw:Dialect".freeze,
699
+ isDefinedBy: "csvw:".freeze,
302
700
  label: "quote char".freeze,
303
701
  range: "xsd:string".freeze,
304
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
305
702
  type: "rdf:Property".freeze
306
703
  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,
704
+ comment: %(An object property that identifies a **referenced table** and a set of **referenced columns** within that table.).freeze,
705
+ domain: "csvw:ForeignKey".freeze,
706
+ isDefinedBy: "csvw:".freeze,
309
707
  label: "reference".freeze,
310
- range: "http://www.w3.org/ns/csvw#TableReference".freeze,
311
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
708
+ range: "csvw:TableReference".freeze,
709
+ type: "rdf:Property".freeze
710
+ property :referencedRow,
711
+ comment: %(A possibly empty list of pairs of a foreign key and a row in a table within the same group of tables.).freeze,
712
+ domain: "csvw:Row".freeze,
713
+ isDefinedBy: "csvw:".freeze,
714
+ label: "referenced rows".freeze,
312
715
  type: "rdf:Property".freeze
313
716
  property :required,
314
- comment: %(A boolean value which indicates whether every cell within the column must have a non-null value.).freeze,
315
- domain: "http://www.w3.org/ns/csvw#Column".freeze,
717
+ comment: %(A boolean atomic property taking a single value which indicates whether the cell must have a non-null value. The default is `false`. ).freeze,
718
+ domain: term(
719
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
720
+ ),
721
+ isDefinedBy: "csvw:".freeze,
316
722
  label: "required".freeze,
317
723
  range: "xsd:boolean".freeze,
318
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
319
724
  type: "rdf:Property".freeze
320
725
  property :resource,
321
726
  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,
727
+ domain: "csvw:TableReference".freeze,
728
+ isDefinedBy: "csvw:".freeze,
323
729
  label: "resource".freeze,
324
730
  range: "xsd:anyURI".freeze,
325
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
326
731
  type: "rdf:Property".freeze
327
732
  property :row,
328
733
  comment: %(Relates a Table to each Row output.).freeze,
329
- domain: "http://www.w3.org/ns/csvw#Table".freeze,
734
+ domain: "csvw:Table".freeze,
735
+ isDefinedBy: "csvw:".freeze,
330
736
  label: "row".freeze,
331
- range: "http://www.w3.org/ns/csvw#Row".freeze,
332
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
737
+ range: "csvw:Row".freeze,
333
738
  subPropertyOf: "rdfs:member".freeze,
334
739
  type: "rdf:Property".freeze
740
+ property :rowTitle,
741
+ comment: %(A column reference property that holds either a single reference to a column description object or an array of references.).freeze,
742
+ domain: "csvw:Schema".freeze,
743
+ isDefinedBy: "csvw:".freeze,
744
+ label: "row titles".freeze,
745
+ range: "xsd:string".freeze,
746
+ type: "rdf:Property".freeze
335
747
  property :rownum,
336
- comment: %(The position of the row amongst the rows of the Annotated Tabl, starting from 1 ).freeze,
748
+ comment: %(The position of the row amongst the rows of the Annotated Tabl, starting from 1).freeze,
749
+ isDefinedBy: "csvw:".freeze,
337
750
  label: "row number".freeze,
338
751
  range: "xsd:integer".freeze,
339
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
340
752
  type: "rdf:Property".freeze
341
753
  property :schemaReference,
342
754
  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,
755
+ domain: "csvw:TableReference".freeze,
756
+ isDefinedBy: "csvw:".freeze,
344
757
  label: "schema reference".freeze,
345
758
  range: "xsd:anyURI".freeze,
346
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
347
759
  type: "rdf:Property".freeze
348
760
  property :scriptFormat,
349
761
  comment: %(A link property giving the single URL for the format that is used by the script or template.).freeze,
350
- domain: "http://www.w3.org/ns/csvw#Transformation".freeze,
762
+ domain: "csvw:Transformation".freeze,
763
+ isDefinedBy: "csvw:".freeze,
351
764
  label: "script format".freeze,
352
765
  range: "xsd:anyURI".freeze,
353
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
354
766
  type: "rdf:Property".freeze
355
767
  property :separator,
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,
768
+ 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,
769
+ domain: term(
770
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
771
+ ),
772
+ isDefinedBy: "csvw:".freeze,
357
773
  label: "separator".freeze,
358
774
  range: "xsd:string".freeze,
359
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
360
775
  type: "rdf:Property".freeze
361
776
  property :skipBlankRows,
362
- comment: %(An boolean atomic property that sets the skip blank rows flag to the single provided boolean value.).freeze,
363
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
777
+ comment: %(An boolean atomic property that sets the `skip blank rows` flag to the single provided boolean value.).freeze,
778
+ domain: "csvw:Dialect".freeze,
779
+ isDefinedBy: "csvw:".freeze,
364
780
  label: "skip blank rows".freeze,
365
781
  range: "xsd:boolean".freeze,
366
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
367
782
  type: "rdf:Property".freeze
368
783
  property :skipColumns,
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,
370
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
784
+ 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,
785
+ domain: "csvw:Dialect".freeze,
786
+ isDefinedBy: "csvw:".freeze,
371
787
  label: "skip columns".freeze,
372
788
  range: "xsd:nonNegativeInteger".freeze,
373
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
374
789
  type: "rdf:Property".freeze
375
790
  property :skipInitialSpace,
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,
377
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
791
+ comment: %(A boolean atomic property that, if `true`, sets the trim flag to "start". If `false`, to `false`.).freeze,
792
+ domain: "csvw:Dialect".freeze,
793
+ isDefinedBy: "csvw:".freeze,
378
794
  label: "skip initial space".freeze,
379
795
  range: "xsd:boolean".freeze,
380
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
381
796
  type: "rdf:Property".freeze
382
797
  property :skipRows,
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,
384
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
798
+ 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,
799
+ domain: "csvw:Dialect".freeze,
800
+ isDefinedBy: "csvw:".freeze,
385
801
  label: "skip rows".freeze,
386
802
  range: "xsd:nonNegativeInteger".freeze,
387
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
388
803
  type: "rdf:Property".freeze
389
804
  property :source,
390
805
  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,
391
- domain: "http://www.w3.org/ns/csvw#Transformation".freeze,
806
+ domain: "csvw:Transformation".freeze,
807
+ isDefinedBy: "csvw:".freeze,
392
808
  label: "source".freeze,
393
809
  range: "xsd:string".freeze,
394
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
395
810
  type: "rdf:Property".freeze
396
811
  property :suppressOutput,
397
- comment: %(A boolean atomic property. If true, suppresses any output that would be generated when converting a table or cells within a column.).freeze,
812
+ comment: %(A boolean atomic property. If `true`, suppresses any output that would be generated when converting a table or cells within a column.).freeze,
813
+ domain: term(
814
+ unionOf: list("csvw:Table".freeze, "csvw:Column".freeze)
815
+ ),
816
+ isDefinedBy: "csvw:".freeze,
398
817
  label: "suppress output".freeze,
399
818
  range: "xsd:boolean".freeze,
400
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
401
819
  type: "rdf:Property".freeze
402
820
  property :table,
403
821
  comment: %(Relates an Table group to annotated tables.).freeze,
404
- domain: "http://www.w3.org/ns/csvw#TableGroup".freeze,
822
+ domain: "csvw:TableGroup".freeze,
823
+ isDefinedBy: "csvw:".freeze,
405
824
  label: "table".freeze,
406
- range: "http://www.w3.org/ns/csvw#Table".freeze,
407
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
825
+ range: "csvw:Table".freeze,
408
826
  subPropertyOf: "rdfs:member".freeze,
409
827
  type: "rdf:Property".freeze
410
828
  property :tableDirection,
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,
829
+ comment: %(One of `rtl`, `ltr` or `auto`. 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,
830
+ domain: term(
831
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze)
832
+ ),
833
+ isDefinedBy: "csvw:".freeze,
412
834
  label: "table direction".freeze,
413
- range: "http://www.w3.org/ns/csvw#Direction".freeze,
414
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
835
+ range: "csvw:Direction".freeze,
415
836
  type: "rdf:Property".freeze
416
837
  property :tableSchema,
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,
838
+ comment: %(An object property that provides a single schema description as described in section 5.5 Schemas, used as the default for all the tables in the group).freeze,
839
+ domain: term(
840
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze)
841
+ ),
842
+ isDefinedBy: "csvw:".freeze,
418
843
  label: "table schema".freeze,
419
- range: "http://www.w3.org/ns/csvw#Schema".freeze,
420
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
844
+ range: "csvw:Schema".freeze,
421
845
  type: "rdf:Property".freeze
422
846
  property :targetFormat,
423
847
  comment: %(A link property giving the single URL for the format that will be created through the transformation.).freeze,
424
- domain: "http://www.w3.org/ns/csvw#Transformation".freeze,
848
+ domain: "csvw:Transformation".freeze,
849
+ isDefinedBy: "csvw:".freeze,
425
850
  label: "target format".freeze,
426
851
  range: "xsd:anyURI".freeze,
427
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
428
852
  type: "rdf:Property".freeze
429
853
  property :textDirection,
430
- comment: %(An atomic property that must have a single value that is one of csvw:rtl or csvw:ltr \(the default\).).freeze,
854
+ comment: %(An atomic property that must have a single value that is one of `rtl` or `ltr` \(the default\).).freeze,
855
+ domain: term(
856
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
857
+ ),
858
+ isDefinedBy: "csvw:".freeze,
431
859
  label: "text direction".freeze,
432
- range: "http://www.w3.org/ns/csvw#Direction".freeze,
433
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
860
+ range: "csvw:Direction".freeze,
434
861
  type: "rdf:Property".freeze
435
862
  property :title,
436
863
  comment: %(For a Transformation A natural language property that describes the format that will be generated from the transformation.
437
864
 
438
865
  For a Column: A natural language property that provides possible alternative names for the column.).freeze,
866
+ domain: term(
867
+ unionOf: list("csvw:Transformation".freeze, "csvw:Column".freeze, "csvw:Row".freeze)
868
+ ),
869
+ isDefinedBy: "csvw:".freeze,
439
870
  label: "title".freeze,
440
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
441
871
  type: "rdf:Property".freeze
442
872
  property :transformations,
443
873
  comment: %(An array property of transformation definitions that provide mechanisms to transform the tabular data into other formats.).freeze,
874
+ domain: term(
875
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
876
+ ),
877
+ isDefinedBy: "csvw:".freeze,
444
878
  label: "transformations".freeze,
445
- range: "http://www.w3.org/ns/csvw#Transformation".freeze,
446
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
879
+ range: "csvw:Transformation".freeze,
447
880
  type: "rdf:Property".freeze
448
881
  property :trim,
449
882
  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,
450
- domain: "http://www.w3.org/ns/csvw#Dialect".freeze,
883
+ domain: "csvw:Dialect".freeze,
884
+ isDefinedBy: "csvw:".freeze,
451
885
  label: "trim".freeze,
452
886
  range: "xsd:boolean".freeze,
453
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
454
887
  type: "rdf:Property".freeze
455
888
  property :url,
456
889
  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.
457
890
 
458
891
  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,
892
+ domain: term(
893
+ unionOf: list("csvw:Table".freeze, "csvw:Transformation".freeze)
894
+ ),
895
+ isDefinedBy: "csvw:".freeze,
459
896
  label: "url".freeze,
460
897
  range: "xsd:anyURI".freeze,
461
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
462
898
  type: "rdf:Property".freeze
463
899
  property :valueUrl,
464
- comment: %(An URI template property that is used to map the values to the cells into URLs.).freeze,
900
+ comment: %(An URI template property that is used to map the values of cells into URLs.).freeze,
901
+ domain: term(
902
+ unionOf: list("csvw:TableGroup".freeze, "csvw:Table".freeze, "csvw:Schema".freeze, "csvw:Column".freeze)
903
+ ),
904
+ isDefinedBy: "csvw:".freeze,
465
905
  label: "valueUrl".freeze,
466
- range: "http://www.w3.org/ns/csvw#uriTemplate".freeze,
467
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
906
+ range: "csvw:uriTemplate".freeze,
468
907
  type: "rdf:Property".freeze
469
908
  property :virtual,
470
909
  comment: %(A boolean atomic property taking a single value which indicates whether the column is a virtual column not present in the original source).freeze,
471
- domain: "http://www.w3.org/ns/csvw#Column".freeze,
910
+ domain: "csvw:Column".freeze,
911
+ isDefinedBy: "csvw:".freeze,
472
912
  label: "virtual".freeze,
473
913
  range: "xsd:boolean".freeze,
474
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
475
914
  type: "rdf:Property".freeze
476
915
 
477
916
  # Datatype definitions
478
917
  term :JSON,
479
918
  comment: %(A literal containing JSON.).freeze,
919
+ isDefinedBy: "csvw:".freeze,
480
920
  label: "JSON".freeze,
481
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
482
921
  subClassOf: "xsd:string".freeze,
483
922
  type: "rdfs:Datatype".freeze
484
923
  term :uriTemplate,
485
924
  comment: %().freeze,
925
+ isDefinedBy: "csvw:".freeze,
486
926
  label: "uri template".freeze,
487
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
488
- subClassOf: "xsd:anyURI".freeze,
927
+ subClassOf: "xsd:string".freeze,
489
928
  type: "rdfs:Datatype".freeze
490
929
 
491
930
  # Extra definitions
492
- term :"",
493
- "dc:description" => %(This document describes the RDFS vocabulary description used in the Metadata Vocabulary for Tabular Data [[tabular-metadata]] along with the default JSON-LD Context.).freeze,
494
- "dc:title" => %(CSVW Namespace Vocabulary Terms).freeze,
495
- label: "".freeze,
496
- type: "owl:Ontology".freeze
931
+ term :auto,
932
+ comment: %(Indicates whether the tables in the group should be displayed based on the first character in the table that has a specific direction.).freeze,
933
+ isDefinedBy: "csvw:".freeze,
934
+ label: "auto".freeze,
935
+ type: "csvw:Direction".freeze
497
936
  term :csvEncodedTabularData,
498
937
  comment: %(Describes the role of a CSV file in the tabular data mapping.).freeze,
938
+ isDefinedBy: "csvw:".freeze,
499
939
  label: "CSV Encoded Tabular Data".freeze,
500
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
501
940
  type: "prov:Role".freeze
941
+ term :inherit,
942
+ comment: %(For `textDirection`, indicates that the direction is inherited from the `tableDirection` annotation of the `table`.).freeze,
943
+ isDefinedBy: "csvw:".freeze,
944
+ label: "inherit".freeze,
945
+ type: "csvw:Direction".freeze
502
946
  term :ltr,
503
- comment: %(Indicates text should be processed left to right.).freeze,
947
+ comment: %(Indicates whether the tables in the group should be displayed with the first column on the right.).freeze,
948
+ isDefinedBy: "csvw:".freeze,
504
949
  label: "left to right".freeze,
505
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
506
- type: "http://www.w3.org/ns/csvw#Direction".freeze
950
+ type: "csvw:Direction".freeze
507
951
  term :rtl,
508
- comment: %(Indiects text should be processed right to left).freeze,
952
+ comment: %(Indicates whether the tables in the group should be displayed with the first column on the left.).freeze,
953
+ isDefinedBy: "csvw:".freeze,
509
954
  label: "right to left".freeze,
510
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
511
- type: "http://www.w3.org/ns/csvw#Direction".freeze
955
+ type: "csvw:Direction".freeze
512
956
  term :tabularMetadata,
513
957
  comment: %(Describes the role of a Metadata file in the tabular data mapping.).freeze,
958
+ isDefinedBy: "csvw:".freeze,
514
959
  label: "Tabular Metadata".freeze,
515
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/csvw#).freeze,
516
960
  type: "prov:Role".freeze
517
961
  end
518
962
  end