@@ -4935,8 +4935,13 @@ <h3>Algorithm</h3>
4935
4935
< var > item</ var > is a < a > value object</ a > which is serialized using special rules.
4936
4936
< ol >
4937
4937
< li id ="alg-obj2rdf-direction-language ">
4938
- Initialize < var > language</ var > to the value of `@language` in < var > item</ var > ,
4939
- or the empty string (`""`) if there is no such entry.</ li >
4938
+ Initialize < var > language</ var > to the value of `@language` in < var > item</ var >
4939
+ normalized to lower case,
4940
+ or the empty string (`""`) if there is no such entry.
4941
+ < div class ="note "> Generally, language tags are not normalized,
4942
+ but when creating an `i18n-datatype` or `compound-literal`
4943
+ values are normalized to lower case for improved interoperability.</ div >
4944
+ </ li >
4940
4945
< li > If {{JsonLdOptions/rdfDirection}} is `i18n-datatype`,
4941
4946
set < var > datatype</ var > to the result of appending < var > language</ var >
4942
4947
and the value of `@direction` in < var > item</ var > separated by an underscore (`"_"`)
@@ -4955,9 +4960,8 @@ <h3>Algorithm</h3>
4955
4960
as the object, and add it to < var > list triples</ var > .</ li >
4956
4961
< li > If the < var > item</ var > has an entry for `@language`,
4957
4962
create a new triple using < var > literal</ var > as the subject,
4958
- `rdf:language` as the predicate, and the value of `@language` in < var > item</ var >
4959
- as the object, and add it to < var > list triples</ var > .
4960
- < div class ="changed note "> Processors MAY normalize < a > language tags</ a > to lower case.</ div > </ li >
4963
+ `rdf:language` as the predicate, and < var > language</ var >
4964
+ as the object, and add it to < var > list triples</ var > .</ li >
4961
4965
< li > Create a new triple using < var > literal</ var > as the subject,
4962
4966
`rdf:direction` as the predicate, and the value of `@direction` in < var > item</ var >
4963
4967
as the object, and add it to < var > list triples</ var > .</ li >
@@ -6863,6 +6867,8 @@ <h4>JsonLdErrorCode</h4>
6863
6867
< a href ="#node-map-generation " class ="sectionRef "> </ a > ,
6864
6868
and < a href ="#deserialize-json-ld-to-rdf-algorithm " class ="sectionRef "> </ a > .
6865
6869
</ li >
6870
+ < li > When creating an `i18n` datatype or `rdf:CompoundLiteral`, < a > language tags</ a > are
6871
+ normalized to lower case to improve interoperability between implementations.</ li >
6866
6872
</ ul >
6867
6873
</ section >
6868
6874
<!--section class="appendix informative" id="changes-from-cr">
0 commit comments