Skip to content

Commit 629ec61

Browse files
committed
Separate creating map context from rolling back term-scoped context when expanding container maps for @id and @type.
Fixes #159.
1 parent a4026a8 commit 629ec61

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

index.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,20 +2663,18 @@ <h3>Algorithm</h3>
26632663
in <var>value</var>, ordered lexicographically by <var>index</var>
26642664
<span class="changed">if {{JsonLdOptions/ordered}} is <code>true</code></span>:
26652665
<ol>
2666-
<li class="changed">If <var>container mapping</var> includes <code>@type</code>:
2667-
<ol>
2668-
<li>Set <var>map context</var> to the <a>previous context</a>
2669-
from <var>active context</var> if it exists, or <var>active context</var> otherwise.</li>
2670-
<li>If <var>index</var>'s <a>term definition</a> in
2671-
<var>map context</var> has a <a>local context</a>, update
2672-
<var>map context</var> to the result of the
2673-
<a href="#context-processing-algorithm">Context Processing algorithm</a>,
2674-
passing <var>map context</var> as <var>active context</var>
2675-
and the value of the <var>index</var>'s <a>local context</a>
2676-
as <var>local context</var>.</li>
2677-
</ol>
2678-
</li>
2679-
<li>Otherwise, set <var>map context</var> to <var>active context</var>.</li>
2666+
<li class="changed">If <var>container mapping</var> includes `@id` or `@type`,
2667+
set <var>map context</var> to the <a>previous context</a>
2668+
from <var>active context</var> if it exists, or <var>active context</var> otherwise.</li>
2669+
<li class="changed">If <var>container mapping</var> includes <code>@type</code>
2670+
and <var>index</var>'s <a>term definition</a> in
2671+
<var>map context</var> has a <a>local context</a>, update
2672+
<var>map context</var> to the result of the
2673+
<a href="#context-processing-algorithm">Context Processing algorithm</a>,
2674+
passing <var>map context</var> as <var>active context</var>
2675+
and the value of the <var>index</var>'s <a>local context</a>
2676+
as <var>local context</var>.</li>
2677+
<li>Otherwise, set <var>map context</var> to <var>active context</var>.</li>
26802678
<li>Set <var>expanded index</var> to the result of using the
26812679
<a href="#iri-expansion">IRI Expansion algorithm</a>,
26822680
passing <var>active context</var>, <var>index</var>, and <code>true</code>

0 commit comments

Comments
 (0)