Skip to content

Commit 10a858b

Browse files
committed
Update Create Term Definition to set defined[term] to true in 16.5.
For #245.
1 parent 3838d3c commit 10a858b

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

index.html

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,16 +1642,24 @@ <h3>Algorithm</h3>
16421642
error has been detected and processing is aborted; if it equals <code>@context</code>, an
16431643
<a data-link-for="JsonLdErrorCode">invalid keyword alias</a>
16441644
error has been detected and processing is aborted.</li>
1645-
<li class="changed">If the <var>term</var> contains a colon (`:`)
1645+
<li id="ctd-contains-colon" class="changed">If the <var>term</var> contains a colon (`:`)
16461646
anywhere but as the first or last character of <var>term</var>,
1647-
or if it contains a slash (`/`) anywhere,
1648-
and for either case, the result of expanding <var>term</var>
1649-
using the <a href="#iri-expansion">IRI Expansion algorithm</a>, passing
1650-
<var>active context</var>, <var>term</var> for <var>value</var>, <code>true</code> for <var>vocab</var>,
1651-
<var>local context</var>, and <var>defined</var>,
1652-
is not the same as the <a>IRI mapping</a> of <var>definition</var>,
1653-
an <a data-link-for="JsonLdErrorCode">invalid IRI mapping</a>
1654-
error has been detected and processing is aborted.</li>
1647+
or if it contains a slash (`/`) anywhere:
1648+
<ol>
1649+
<li>Set the value associated with <var>defined</var>'s <var>term</var> <a>entry</a> to
1650+
<code>true</code>.</li>
1651+
<li>If the result of expanding <var>term</var>
1652+
using the <a href="#iri-expansion">IRI Expansion algorithm</a>,
1653+
passing <var>active context</var>,
1654+
<var>term</var> for <var>value</var>,
1655+
<code>true</code> for <var>vocab</var>,
1656+
<var>local context</var>,
1657+
and <var>defined</var>,
1658+
is not the same as the <a>IRI mapping</a> of <var>definition</var>,
1659+
an <a data-link-for="JsonLdErrorCode">invalid IRI mapping</a>
1660+
error has been detected and processing is aborted.</li>
1661+
</ol>
1662+
</li>
16551663
<li class="changed">If <var>term</var> contains neither a colon (`:`) nor a slash (`/`),
16561664
<span class="changed"><var>simple term</var> is <code>true</code></span>,
16571665
and if the <a>IRI mapping</a> of <var>definition</var>
@@ -6901,6 +6909,10 @@ <h2>Changes since Candidate Release of 12 December 2019</h2>
69016909
<a href="#expansion-algorithm">Expansion algorithm</a>
69026910
that duplicate the following step.
69036911
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/243">Issue 243</a>.</li>
6912+
<li>Updated step <a href="#ctd-contains-colon">16.5</a> of the
6913+
<a href="#create-term-definition">Create Term Definition algorithm</a>
6914+
to prevent an issue where <var>term</var> might not be defined at the time it is expanded.
6915+
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/245">Issue 245</a>.</li>
69046916
</ul>
69056917
</section>
69066918

0 commit comments

Comments
 (0)