Skip to content

Commit 5f985ff

Browse files
committed
Add Candidate Correction 2 for issue #514.
1 parent 293585a commit 5f985ff

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

index.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3876,9 +3876,15 @@ <h3>Algorithm</h3>
38763876
set <var>map key</var> to the value of <code>@index</code> in <var>expanded item</var>, if any.</li>
38773877
<li id="alg-compact-12_8_9_6" class="changed">Otherwise, if <var>container</var> includes <code>@index</code>
38783878
and <var>index key</var> is not <code>@index</code>:
3879+
<div class="candidate correction" id="change_2">
3880+
<span class="marker">Candidate Correction 2</span>
3881+
<p>The value of `@index` on a property map can be a <a>Compact IRI</a> in addition to an <a>IRI</a>.
3882+
The Compaction Algorithm is updated to first expand this value before re-compacting it.
3883+
For more information, refer to <a href="https://github.com/w3c/json-ld-api/issues/514">issue 380</a>.</p>
3884+
</div>
38793885
<ol>
38803886
<li id="alg-compact-12_8_9_6_1">Reinitialize <var>container key</var> by <a>IRI compacting</a>
3881-
<var>index key</var> after first <a>IRI expanding</a> it.</li>
3887+
<var>index key</var> <ins cite="#change_2">after first <a>IRI expanding</a> it</ins>.</li>
38823888
<li>Set <var>map key</var> to the first value of <var>container key</var> in <var>compacted item</var>, if any.</li>
38833889
<li id="alg-compact-12_8_9_6_3">If there are remaining values in <var>compacted item</var>
38843890
for <var>container key</var>, use <a>add value</a> to
@@ -6868,7 +6874,8 @@ <h2>Change log</h2>
68686874
<li>2021-05-15: Added additional language to the
68696875
<a href="#compaction-algorithm">Compaction Algorithm</a>
68706876
step <a href="#alg-compact-12_8_9_6_1">12.8.9.6.1</a> to first expand
6871-
<var>container key</var> before compacting it.</li> <!-- From issue 525 commit: faddb4288947f56cbc6e1019f8d628b5316a91ab -->
6877+
<var>container key</var> before compacting it,
6878+
as described in <a href="#change_2">Candidate Correction 2</a>.</li>
68726879
<li>2023-06-28: Changed the <a href="#create-term-definition">Create Term Definition</a>
68736880
in section 4.2 of the Context Processing Algorithms, to ensure that all
68746881
possible features for reverse term definitions are processed. The change

0 commit comments

Comments
 (0)