Skip to content

Commit cc2dae3

Browse files
committed
Explicit requirements for rdf:langString and rdf:dirLangString - alternative
alternative to #212
1 parent 9714dbd commit cc2dae3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

spec/index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -930,18 +930,21 @@ <h3>Literals</h3>
930930
<li>A <dfn>datatype IRI</dfn>, being an <a>IRI</a>
931931
identifying a datatype that determines how the lexical form maps
932932
to a <a>literal value</a>.</li>
933-
<li>If and only if the <a>datatype IRI</a> is
933+
<li>An optional <dfn>language tag</dfn> as defined by [[!BCP47]].
934+
This language tag MUST be present
935+
if and only if the <a>datatype IRI</a> is
934936
<code>http://www.w3.org/1999/02/22-rdf-syntax-ns#langString</code> or
935-
<code>http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString</code>, a
936-
non-empty <dfn>language tag</dfn> as defined by [[!BCP47]]. The
937-
language tag MUST be well-formed according to
937+
<code>http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString</code>,
938+
It MUST be well-formed according to
938939
<a data-cite="bcp47#section-2.2.9">section 2.2.9</a>
939940
of [[!BCP47]],
940941
and MUST be treated accordingly, that is, in a case-insensitive manner.
941942
Two [[!BCP47]]-complying strings that differ only by case represent the same [=language tag=].</li>
942-
<li>If and only if the <a>datatype IRI</a> is
943+
<li>An optional <dfn>base direction</dfn>.
944+
It MUST be present
945+
if and only if the <a>datatype IRI</a> is
943946
<code>http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString</code>,
944-
a <dfn>base direction</dfn> that MUST be one of the following:<ul>
947+
and MUST be one of the following:<ul>
945948
<li>`ltr`, indicating that the initial text direction is set to left-to-right</li>
946949
<li>`rtl`, indicating that the initial text direction is set to right-to-left</li>
947950
</ul></li>

0 commit comments

Comments
 (0)