Skip to content

Commit 44b08b2

Browse files
committed
Add checks for terms including a colon which do not expand in a natural way.
For w3c/json-ld-syntax#155
1 parent ef43954 commit 44b08b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,12 @@ <h3>Algorithm</h3>
13071307
i.e., it contains no colon (<code>:</code>), an
13081308
<a data-link-for="JsonLdErrorCode">invalid IRI mapping</a>
13091309
error has been detected and processing is aborted.</li>
1310+
<li class="changed">If the <var>term</var> contains a colon (<code>:</code>)
1311+
and the result of expanding <var>term</var>
1312+
using the <a href="#iri-expansion">IRI Expansion algorithm</a>
1313+
is not the same as the <a>IRI mapping</a> of <var>definition</var>,
1314+
an <a data-link-for="JsonLdErrorCode">invalid IRI mapping</a>
1315+
error has been detected and processing is aborted.</li>
13101316
<li>If <var>value</var> contains an <code>@container</code> <a>member</a>,
13111317
set the <a>container mapping</a> of <var>definition</var>
13121318
to its value; if its value is neither <code>@set</code>, nor
@@ -1341,6 +1347,12 @@ <h3>Algorithm</h3>
13411347
error has been detected and processing is aborted; if it equals <code>@context</code>, an
13421348
<a data-link-for="JsonLdErrorCode">invalid keyword alias</a>
13431349
error has been detected and processing is aborted.</li>
1350+
<li class="changed">If the <var>term</var> contains a colon (<code>:</code>)
1351+
and the result of expanding <var>term</var>
1352+
using the <a href="#iri-expansion">IRI Expansion algorithm</a>
1353+
is not the same as the <a>IRI mapping</a> of <var>definition</var>,
1354+
an <a data-link-for="JsonLdErrorCode">invalid IRI mapping</a>
1355+
error has been detected and processing is aborted.</li>
13441356
<li class="changed">If <var>term</var> does not contain a colon (<code>:</code>),
13451357
<span class="changed"><var>simple term</var> is <code>true</code></span>, and the,
13461358
<a>IRI mapping</a> of <var>definition</var> ends with a URI
@@ -5937,6 +5949,8 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
59375949
<strong>recursive context inclusion</strong> error with a <a data-link-for="JsonLdErrorCode">context overflow</a> error.</li>
59385950
<li>Added support for <code>"@type": "@none"</code> in a <a>term definition</a> to prevent value compaction.</li>
59395951
<li>Added support for <a>JSON literals</a>.</li>
5952+
<li><a>Term definitions</a> with keys which are of the form of a <a>compact IRI</a> or <a>absolute IRI</a> MUST NOT
5953+
expand to an <a>IRI</a> other than the expansion of the key itself.</li>
59405954
</ul>
59415955
</section>
59425956

0 commit comments

Comments
 (0)