Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions metadata/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,10 @@ <h2>Inherited Properties</h2>
An <a>atomic property</a> that MUST have a single string value that is the character used to separate items in the string value of the cell. If <code>null</code> or unspecified, the cell does not contain a list. Otherwise, application MUST split the string value of the cell on the specified separator character and parse each of the resulting strings separately. The cell's value will then be a list. Conversion specifications MUST use the separator to determine the conversion of a cell into the target format. See <a href="#parsing-cells"></a> for more details. A value for this property is <a>compatible with</a> an inherited value only if they are identical.
</p>
</dd>
<dt id="cell-ordered"><code>ordered</code></dt>
<dd>
<p>A boolean <a>atomic property</a> taking a single value which indicates whether a list that is the value of the cell is ordered (if <code>true</code>) or unordered (if <code>false</code>). The default is <code>false</code>. This property is irrelevant if the <a href="#cell-separator"><code>separator</code></a> is <code>null</code> or undefined, but this is not an error. A value for this property is <a>compatible with</a> an inherited value only if they are identical.</p>
</dd>
<dt id="cell-default"><code>default</code></dt>
<dd>
<p>
Expand Down
2 changes: 1 addition & 1 deletion ns/_vocab.csv

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions ns/csvw.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@
"@id": "csvw:null",
"@language": null
},
"ordered": {
"@id": "csvw:ordered",
"@type": "xsd:boolean"
},
"pattern": {
"@id": "csvw:pattern",
"@language": null
Expand Down Expand Up @@ -872,6 +876,25 @@
},
"rdfs:range": "xsd:string"
},
{
"@id": "csvw:ordered",
"@type": "rdf:Property",
"rdfs:label": {
"en": "ordered"
},
"rdfs:comment": {
"en": "Indicates if multiple values of a cell are considered ordered or unordered; see separator."
},
"rdfs:domain": {
"owl:unionOf": [
"csvw:TableGroup",
"csvw:Table",
"csvw:Schema",
"csvw:Column"
]
},
"rdfs:range": "xsd:boolean"
},
{
"@id": "csvw:pattern",
"@type": "rdf:Property",
Expand Down
6 changes: 6 additions & 0 deletions ns/csvw.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ csvw:null a rdf:Property;
rdfs:domain [ owl:unionOf (csvw:TableGroup csvw:Table csvw:Schema csvw:Column)];
rdfs:range xsd:string;
rdfs:isDefinedBy csvw: .
csvw:ordered a rdf:Property;
rdfs:label "ordered"@en;
rdfs:comment """Indicates if multiple values of a cell are considered ordered or unordered; see separator."""@en;
rdfs:domain [ owl:unionOf (csvw:TableGroup csvw:Table csvw:Schema csvw:Column)];
rdfs:range xsd:boolean;
rdfs:isDefinedBy csvw: .
csvw:pattern a rdf:Property;
rdfs:label "pattern"@en;
rdfs:comment """A regular expression string, in the syntax and interpreted as defined by [ECMASCRIPT]."""@en;
Expand Down
24 changes: 24 additions & 0 deletions ns/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,25 @@ <h2>Property Definitions</h2>
</dl>
</td>
</tr>
<tr><td class="bold">ordered</td>
<td resource="csvw:ordered" typeof="rdf:Property">
<em property="rdfs:label">ordered</em>
<p property="rdfs:comment">Indicates if multiple values of a cell are considered ordered or unordered; see separator.</p>
<span property="rdfs:isDefinedBy" resource="csvw:"></span>
<dl class="terms">
<dt>rdfs:range</dt>
<dd property="rdfs:range" resource="xsd:boolean">xsd:boolean</dd>
<dt>rdfs:domain</dt>
<dd property="rdfs:domain" resource="_:">
Union of
<span property="owl:unionOf" inlist=true resource="csvw:TableGroup">csvw:TableGroup</span>
<span property="owl:unionOf" inlist=true resource="csvw:Table">csvw:Table</span>
<span property="owl:unionOf" inlist=true resource="csvw:Schema">csvw:Schema</span>
<span property="owl:unionOf" inlist=true resource="csvw:Column">csvw:Column</span>
</dd>
</dl>
</td>
</tr>
<tr><td class="bold">pattern</td>
<td resource="csvw:pattern" typeof="rdf:Property">
<em property="rdfs:label">pattern</em>
Expand Down Expand Up @@ -1527,6 +1546,11 @@ <h2>Term Definitions</h2>
<dd>
http://ogp.me/ns#
</dd>
<dt>ordered</dt>
<dd>
csvw:ordered
with string values interpreted as xsd:boolean
</dd>
<dt>org</dt>
<dd>
http://www.w3.org/ns/org#
Expand Down
3 changes: 2 additions & 1 deletion syntax/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ <h3>Cells</h3>
<li><dfn title="cell column">column</dfn> &mdash; the <a>column</a> that the cell appears in; the cell MUST be in the <a title="column cells">cells</a> for that column</li>
<li><dfn title="cell row">row</dfn> &mdash; the <a>row</a> that the cell appears in; the cell MUST be in the <a title="row cells">cells</a> for that row</li>
<li><dfn>string value</dfn> &mdash; a string that is the original syntactic representation of the value of the cell, eg how the cell appears within a CSV file; this may be an empty string</li>
<li><dfn title="cell value">value</dfn> &mdash; the semantic value of the cell; this MAY be of a datatype other than a string and MAY be <code>null</code>. For example, annotations might enable a processor to understand the <a>string value</a> of the cell as representing a number or a date. By default, if the <a>string value</a> is an empty string, the semantic value of the cell is <code>null</code>. See <a href="http://w3c.github.io/csvw/metadata/#parsing-cells">Parsing Cells</a> in [[!tabular-metadata]] for further requirements on obtaining a cell value.</li>
<li><dfn title="cell value">value</dfn> &mdash; the semantic value of the cell; this MAY be of a datatype other than a string, MAY be a list, and MAY be <code>null</code>. For example, annotations might enable a processor to understand the <a>string value</a> of the cell as representing a number or a date. By default, if the <a>string value</a> is an empty string, the semantic value of the cell is <code>null</code>. See <a href="http://w3c.github.io/csvw/metadata/#parsing-cells">Parsing Cells</a> in [[!tabular-metadata]] for further requirements on obtaining a cell value.</li>
<li><dfn title="cell ordered">ordered</dfn> &mdash; a boolean that, if the value of this cell is a list, indicates whether the order of that list should be preserved or not</li>
<li><dfn title="cell errors">errors</dfn> &mdash; a (possibly empty) list of validation errors generated while parsing the value of the cell</li>
<li><dfn title="cell text direction">text direction</dfn> &mdash; which direction the text within the cell should be displayed, as described in <a href="#bidirectional-tables" class="sectionRef"></a></li>
<li><dfn title="cell about URL">about URL</dfn> &mdash; a URL for the entity that this cell provides information about</li>
Expand Down