Skip to content

Commit b0d94c9

Browse files
committed
Add suggested restrictions on the form of a term to avoid conflict with a URI scheme or a Compact IRI.
Fixes #429. (cherry picked from commit 1069c14)
1 parent 0248541 commit b0d94c9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

spec/latest/json-ld/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,16 @@ <h2>Terms</h2>
31573157
to an <a>IRI</a> or a <a>blank node identifier</a>.</p>
31583158

31593159
<p>A <a>term</a> MUST NOT equal any of the JSON-LD
3160-
<a>keyword</a>.</p>
3160+
<a>keywords</a>.</p>
3161+
3162+
<p class="changed">When used as the <a>prefix</a> in a <a>Compact IRI</a>, to avoid
3163+
the potential ambiguity of a <a>prefix</a> being confused with an IRI
3164+
scheme, <a>terms</a> SHOULD NOT come from the list of URI schemes as defined in
3165+
[[!IANA-URI-SCHEMES]]. Similarly, to avoid confusion between a
3166+
<a>Compact IRI</a> and a <a>term</a>, terms SHOULD NOT include a colon (<code>:</code>)
3167+
and SHOULD be restricted to the form of
3168+
<code><a data-cite="RFC3897#section-2.2">isegment-nz-nc</a></code>
3169+
as defined in [[!RFC3897]].</p>
31613170

31623171
<p>To avoid forward-compatibility issues, a <a>term</a> SHOULD NOT start
31633172
with an <code>@</code> character as future versions of JSON-LD may introduce

0 commit comments

Comments
 (0)