Skip to content

Commit dd4105e

Browse files
committed
Update description of i18n datatype and Compound Literal to lower case language tags.
For w3c/json-ld-api#337.
1 parent f55efdc commit dd4105e

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

Gemfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
GIT
22
remote: git://github.com/ruby-rdf/json-ld.git
3-
revision: d0bfdefb6cddac6a22683ff9733a94936c4e5dbe
3+
revision: 241ef57e096cefdff55ef6d39a917049eec04529
44
branch: develop
55
specs:
66
json-ld (3.1.0)
77
htmlentities (~> 4.3)
8-
json-canonicalization (~> 0.1)
8+
json-canonicalization (~> 0.2)
99
link_header (~> 0.0, >= 0.0.8)
1010
multi_json (~> 1.14)
1111
rack (~> 2.0)
@@ -19,7 +19,7 @@ GEM
1919
bcp47 (0.3.3)
2020
i18n
2121
builder (3.2.4)
22-
byebug (11.0.1)
22+
byebug (11.1.1)
2323
colorize (0.8.1)
2424
concurrent-ruby (1.1.5)
2525
connection_pool (2.2.2)
@@ -34,9 +34,9 @@ GEM
3434
hamster (3.0.0)
3535
concurrent-ruby (~> 1.0)
3636
htmlentities (4.3.4)
37-
i18n (1.7.0)
37+
i18n (1.8.2)
3838
concurrent-ruby (~> 1.0)
39-
json-canonicalization (0.1.0)
39+
json-canonicalization (0.2.0)
4040
json-ld-preloaded (3.1.0)
4141
json-ld (~> 3.1)
4242
rdf (~> 3.1)
@@ -80,10 +80,10 @@ GEM
8080
mini_portile2 (~> 2.4.0)
8181
nokogumbo (2.0.2)
8282
nokogiri (~> 1.8, >= 1.8.4)
83-
public_suffix (4.0.1)
84-
rack (2.0.8)
83+
public_suffix (4.0.3)
84+
rack (2.1.2)
8585
rake (13.0.1)
86-
rdf (3.1.0)
86+
rdf (3.1.1)
8787
hamster (~> 3.0)
8888
link_header (~> 0.0, >= 0.0.8)
8989
rdf-aggregate-repo (3.1.0)
@@ -134,7 +134,7 @@ GEM
134134
rdf-turtle (3.1.0)
135135
ebnf (~> 1.2)
136136
rdf (~> 3.1)
137-
rdf-vocab (3.1.0)
137+
rdf-vocab (3.1.1)
138138
rdf (~> 3.1)
139139
rdf-xsd (3.1.0)
140140
rdf (~> 3.1)

index.html

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12913,11 +12913,14 @@ <h3>Serializing/Deserializing RDF</h3>
1291312913
<p>The <a data-cite="JSON-LD11-API#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF Algorithm</a>
1291412914
can be used with the <dfn data-cite="JSON-LD11-API#dom-jsonldoptions-rdfdirection">rdfDirection</dfn> option
1291512915
set to `i18n-datatype` to generate <a>RDF literals</a> using the `i18n` base to create an IRI
12916-
encoding the <a>base direction</a> along with optional <a>language tag</a> from
12917-
value objects containing `@direction` by appending to `https://www.w3.org/ns/i18n#`
12916+
encoding the <a>base direction</a> along with optional <a>language tag</a> (normalized to lower case)
12917+
from value objects containing `@direction` by appending to `https://www.w3.org/ns/i18n#`
1291812918
the value of `@language`, if any, followed by an underscore (`"_"`) followed
1291912919
by the value of `@direction`.</p>
1292012920

12921+
<p>For improved interoperability, the <a>language tag</a> is normalized to
12922+
lower case when creating the datatype IRI.</p>
12923+
1292112924
<p class="issue atrisk">This feature is experimental, as RDF does not have a
1292212925
standard way to represent base direction in <a>RDF literals</a>.
1292312926
A future RDF Working Group may support base direction differently.
@@ -12937,8 +12940,8 @@ <h3>Serializing/Deserializing RDF</h3>
1293712940

1293812941
# Note that this version preserves the base direction using a non-standard datatype.
1293912942
[
12940-
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl****;
12941-
ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl****
12943+
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-eg_rtl****;
12944+
ex:publisher ****"مكتبة"^^i18n:ar-eg_rtl****
1294212945
] .
1294312946
-->
1294412947
</pre>
@@ -12968,8 +12971,11 @@ <h3>Serializing/Deserializing RDF</h3>
1296812971
<p>The <a data-cite="JSON-LD11-API#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF Algorithm</a>
1296912972
can be used with the <a>rdfDirection</a> option
1297012973
set to `compound-literal` to generate <a>RDF literals</a> using these properties to
12971-
describe the <a>base direction</a> and optional <a>language tag</a> from
12972-
value objects containing `@direction` and optionally `@language`.</p>
12974+
describe the <a>base direction</a> and optional <a>language tag</a> (normalized to lower case)
12975+
from value objects containing `@direction` and optionally `@language`.</p>
12976+
12977+
<p>For improved interoperability, the <a>language tag</a> is normalized to
12978+
lower case when creating the datatype IRI.</p>
1297312979

1297412980
<p class="issue atrisk">This feature is experimental, as RDF does not have a
1297512981
standard way to represent base direction in <a>RDF literals</a>.
@@ -12991,12 +12997,12 @@ <h3>Serializing/Deserializing RDF</h3>
1299112997
[
1299212998
ex:title ****[
1299312999
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
12994-
rdf:language "ar-EG",
13000+
rdf:language "ar-eg",
1299513001
rdf:direction "rtl"
1299613002
]****;
1299713003
ex:publisher ****[
1299813004
rdf:value "مكتبة",
12999-
rdf:language "ar-EG",
13005+
rdf:language "ar-eg",
1300013006
rdf:direction "rtl"
1300113007
]****
1300213008
] .
@@ -13701,6 +13707,8 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
1370113707
<li>Allow further structured subtypes of `application/ld+json` by using
1370213708
`+ld+json` as a suffix for a new base type.</li>
1370313709
<li>Warn about forward-compatibility issues for terms of the form (`"@"1*ALPHA`).</li>
13710+
<li>When creating an `i18n` datatype or `rdf:CompoundLiteral`, <a>language tags</a> are
13711+
normalized to lower case to improve interoperability between implementations.</li>
1370413712
</ul>
1370513713
</section>
1370613714
<section class="appendix informative" id="changes-from-cr">

0 commit comments

Comments
 (0)