Skip to content

Commit

Permalink
Add auto for tableDirection and update comment. #619.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jun 20, 2015
1 parent 63dba47 commit 6e6daf9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ns/_vocab.csv

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion ns/csvw.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@
"en": "table direction"
},
"rdfs:comment": {
"en": "One of `rtl`, `ltr` or `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."
"en": "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."
},
"rdfs:domain": {
"owl:unionOf": [
Expand Down Expand Up @@ -1518,6 +1518,16 @@
}
],
"rdfs_instances": [
{
"@id": "csvw:auto",
"@type": "Direction",
"rdfs:label": {
"en": "auto"
},
"rdfs:comment": {
"en": "Determins text direction based on the first character that has a specific direction."
}
},
{
"@id": "csvw:ltr",
"@type": "Direction",
Expand Down
6 changes: 5 additions & 1 deletion ns/csvw.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ csvw:table a rdf:Property;
rdfs:isDefinedBy csvw: .
csvw:tableDirection a rdf:Property;
rdfs:label "table direction"@en;
rdfs:comment """One of `rtl`, `ltr` or `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."""@en;
rdfs: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."""@en;
rdfs:domain [ owl:unionOf (csvw:TableGroup csvw:Table)];
rdfs:range csvw:Direction;
rdfs:isDefinedBy csvw: .
Expand Down Expand Up @@ -494,6 +494,10 @@ csvw:uriTemplate a rdfs:Datatype;
rdfs:isDefinedBy csvw: .

# Instance definitions
csvw:auto a csvw:Direction;
rdfs:label "auto"@en;
rdfs:comment """Determins text direction based on the first character that has a specific direction."""@en;
rdfs:isDefinedBy csvw: .
csvw:ltr a csvw:Direction;
rdfs:label "left to right"@en;
rdfs:comment """Indicates text should be processed left to right."""@en;
Expand Down
9 changes: 8 additions & 1 deletion ns/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ <h2>Property Definitions</h2>
<tr><td class="bold">tableDirection</td>
<td resource="csvw:tableDirection" typeof="rdf:Property">
<em property="rdfs:label">table direction</em>
<p property="rdfs:comment">One of `rtl`, `ltr` or `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.</p>
<p property="rdfs: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.</p>
<span property="rdfs:isDefinedBy" resource="csvw:"></span>
<dl class="terms">
<dt>rdfs:range</dt>
Expand Down Expand Up @@ -1186,6 +1186,13 @@ <h2>Datatype Definitions</h2>
<h2>Instance Definitions</h2>
<p>The following are instance definitions in the <code>csvw</code> namespace:</p>
<table class="rdfs-definition">
<tr><td class="bold">auto</td>
<td resource="csvw:auto" typeof="Direction">
<em property="rdfs:label">auto</em>
<p property="rdfs:comment">Determins text direction based on the first character that has a specific direction.</p>
<span property="rdfs:isDefinedBy" resource="csvw:"></span>
</td>
</tr>
<tr><td class="bold">ltr</td>
<td resource="csvw:ltr" typeof="Direction">
<em property="rdfs:label">left to right</em>
Expand Down

0 comments on commit 6e6daf9

Please sign in to comment.