@@ -4913,8 +4913,13 @@ <h3>Algorithm</h3>
4913
4913
< var > item</ var > is a < a > value object</ a > which is serialized using special rules.
4914
4914
< ol >
4915
4915
< li id ="alg-obj2rdf-direction-language ">
4916
- Initialize < var > language</ var > to the value of `@language` in < var > item</ var > ,
4917
- or the empty string (`""`) if there is no such entry.</ li >
4916
+ Initialize < var > language</ var > to the value of `@language` in < var > item</ var >
4917
+ normalized to lower case,
4918
+ or the empty string (`""`) if there is no such entry.
4919
+ < div class ="note "> Generally, language tags are not normalized,
4920
+ but when creating an `i18n-datatype` or `compound-literal`
4921
+ values are normalized to lower case for improved interoperability.</ div >
4922
+ </ li >
4918
4923
< li > If {{JsonLdOptions/rdfDirection}} is `i18n-datatype`,
4919
4924
set < var > datatype</ var > to the result of appending < var > language</ var >
4920
4925
and the value of `@direction` in < var > item</ var > separated by an underscore (`"_"`)
@@ -4933,9 +4938,8 @@ <h3>Algorithm</h3>
4933
4938
as the object, and add it to < var > list triples</ var > .</ li >
4934
4939
< li > If the < var > item</ var > has an entry for `@language`,
4935
4940
create a new triple using < var > literal</ var > as the subject,
4936
- `rdf:language` as the predicate, and the value of `@language` in < var > item</ var >
4937
- as the object, and add it to < var > list triples</ var > .
4938
- < div class ="changed note "> Processors MAY normalize < a > language tags</ a > to lower case.</ div > </ li >
4941
+ `rdf:language` as the predicate, and < var > language</ var >
4942
+ as the object, and add it to < var > list triples</ var > .</ li >
4939
4943
< li > Create a new triple using < var > literal</ var > as the subject,
4940
4944
`rdf:direction` as the predicate, and the value of `@direction` in < var > item</ var >
4941
4945
as the object, and add it to < var > list triples</ var > .</ li >
@@ -6836,6 +6840,8 @@ <h4>JsonLdErrorCode</h4>
6836
6840
< a href ="#node-map-generation " class ="sectionRef "> </ a > ,
6837
6841
and < a href ="#deserialize-json-ld-to-rdf-algorithm " class ="sectionRef "> </ a > .
6838
6842
</ li >
6843
+ < li > When creating an `i18n` datatype or `rdf:CompoundLiteral`, < a > language tags</ a > are
6844
+ normalized to lower case to improve interoperability between implementations.</ li >
6839
6845
</ ul >
6840
6846
</ section >
6841
6847
<!--section class="appendix informative" id="changes-from-cr">
0 commit comments