Skip to content

Commit 00c32db

Browse files
committed
Add note on legitimacy of https://w3.org/ns/i18n#_ltr`.
1 parent 4e80b8d commit 00c32db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4802,7 +4802,10 @@ <h3>Algorithm</h3>
48024802
and the value of `@direction` in <var>item</var> separated by an underscore (`"_"`)
48034803
to `https://w3.org/ns/i18n#`.
48044804
Initialize <var>literal</var> as an <a>RDF literal</a> using
4805-
<var>value</var> and <var>datatype</var>.</li>
4805+
<var>value</var> and <var>datatype</var>.
4806+
<div class="note">As `@direction` may be used without `@language`,
4807+
it is possible, and legitimate, to create a datatype IRI
4808+
such as `http://w3.org/ns/i18n#_ltr`, which does not encode a language tag.</div></li>
48064809
<li>Otherwise, if {{JsonLdOptions/rdfDirection}} is `compound-literal`:
48074810
<ol>
48084811
<li>Initialize <var>literal</var> as a new <a>blank node</a>.</li>
@@ -5256,7 +5259,10 @@ <h3>Algorithm</h3>
52565259
<li>Set <var>converted value</var> to the <a>lexical form</a> of <var>value</var>.</li>
52575260
<li>If the string prefix of the <a data-cite="RFC3986#section-3.5">fragment identifier</a>
52585261
of the <a>datatype IRI</a> up until the underscore (`"_"`) is not empty,
5259-
add an <a>entry</a> `@language` to <var>result</var> and set its value to that prefix.</li>
5262+
add an <a>entry</a> `@language` to <var>result</var> and set its value to that prefix.
5263+
<div class="note">As `@direction` may be used without `@language`,
5264+
it is possible, and legitimate, to create a datatype IRI
5265+
such as `http://w3.org/ns/i18n#_ltr`, which does not encode a language tag.</div></li>
52605266
<li>Add an <a>entry</a> `@direction` to <var>result</var> and set its value to the substring of the
52615267
<a data-cite="RFC3986#section-3.5">fragment identifier</a> following
52625268
the underscore (`"_"`).</li>

0 commit comments

Comments
 (0)