Skip to content

Commit

Permalink
Add note to IRI Compaction algorithm on the importance of ordering va…
Browse files Browse the repository at this point in the history
…lues of _containers_.

Fixes w3c/json-ld-syntax#75.
  • Loading branch information
gkellogg committed Dec 6, 2018
1 parent 53fcabc commit 1208d52
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3043,9 +3043,13 @@ <h3>Algorithm</h3>
element from the value of <code>@preserve</code> as <var>value</var>.</li>
<li>Initialize <var>containers</var> to an empty <a>array</a>. This
<a>array</a> will be used to keep track of an ordered list of
preferred <a>container mapping</a>
for a <a>term</a>, based on what is compatible with
<var>value</var>.</li>
preferred <a>container mapping</a> for a <a>term</a>,
based on what is compatible with <var>value</var>.
<div class="note">
Algorithm steps may append the same value to <var>containers</var>,
but the order in which they are added is significant for choosing the most appropriate term.
</div>
</li>
<li>Initialize <var>type/language</var> to <code>@language</code>,
and <var>type/language value</var> to <code>@null</code>. These two
variables will keep track of the preferred
Expand Down

0 comments on commit 1208d52

Please sign in to comment.