@@ -12913,11 +12913,14 @@ <h3>Serializing/Deserializing RDF</h3>
12913
12913
<p>The <a data-cite="JSON-LD11-API#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF Algorithm</a>
12914
12914
can be used with the <dfn data-cite="JSON-LD11-API#dom-jsonldoptions-rdfdirection">rdfDirection</dfn> option
12915
12915
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#`
12918
12918
the value of `@language`, if any, followed by an underscore (`"_"`) followed
12919
12919
by the value of `@direction`.</p>
12920
12920
12921
+ <p>For improved interoperability, the <a>language tag</a> is normalized to
12922
+ lower case when creating the datatype IRI.</p>
12923
+
12921
12924
<p class="issue atrisk">This feature is experimental, as RDF does not have a
12922
12925
standard way to represent base direction in <a>RDF literals</a>.
12923
12926
A future RDF Working Group may support base direction differently.
@@ -12937,8 +12940,8 @@ <h3>Serializing/Deserializing RDF</h3>
12937
12940
12938
12941
# Note that this version preserves the base direction using a non-standard datatype.
12939
12942
[
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 ****
12942
12945
] .
12943
12946
-->
12944
12947
</pre>
@@ -12968,8 +12971,11 @@ <h3>Serializing/Deserializing RDF</h3>
12968
12971
<p>The <a data-cite="JSON-LD11-API#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF Algorithm</a>
12969
12972
can be used with the <a>rdfDirection</a> option
12970
12973
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>
12973
12979
12974
12980
<p class="issue atrisk">This feature is experimental, as RDF does not have a
12975
12981
standard way to represent base direction in <a>RDF literals</a>.
@@ -12991,12 +12997,12 @@ <h3>Serializing/Deserializing RDF</h3>
12991
12997
[
12992
12998
ex:title ****[
12993
12999
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
12994
- rdf:language "ar-EG ",
13000
+ rdf:language "ar-eg ",
12995
13001
rdf:direction "rtl"
12996
13002
]****;
12997
13003
ex:publisher ****[
12998
13004
rdf:value "مكتبة",
12999
- rdf:language "ar-EG ",
13005
+ rdf:language "ar-eg ",
13000
13006
rdf:direction "rtl"
13001
13007
]****
13002
13008
] .
@@ -13701,6 +13707,8 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
13701
13707
<li>Allow further structured subtypes of `application/ld+json` by using
13702
13708
`+ld+json` as a suffix for a new base type.</li>
13703
13709
<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>
13704
13712
</ul>
13705
13713
</section>
13706
13714
<section class="appendix informative" id="changes-from-cr">
0 commit comments