Skip to content

Allow empty lists to be compacted by any term with container @list #510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions spec/latest/json-ld-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2409,10 +2409,13 @@ <h3>Algorithm</h3>
<em>result</em> using the variable <em>container map</em>.</li>
<li>If <em>container map</em> has no <em>container</em> member,
create one and set its value to a new
<a class="changed">dictionary</a> with two members. The first member is
<code>@language</code> and its value is a new empty
<a class="changed">dictionary</a> with <span class="changed">three</span> members.
The first member is <code>@language</code> and its value is a new empty
<a class="changed">dictionary</a>, the second member is <code>@type</code>
and its value is a new empty <a class="changed">dictionary</a>.</li>
and its value is a new empty <a class="changed">dictionary</a>,
<span class="changed">and the third member is <code>@any</code>
and its value is a new <a>dictionary</a> with the member
<code>@none</code> set to the <a>term</a> being processed</span>.</li>
<li>Reference the value associated with the <em>container</em> member
in <em>container map</em> using the variable <em>type/language map</em>.</li>
<li>If the <a>term definition</a> indicates that the <a>term</a>
Expand Down Expand Up @@ -2674,7 +2677,9 @@ <h3>Algorithm</h3>
</ol>
</li>
<li>Otherwise, append <em>type/language value</em> and <code>@none</code>, in
that order, to <em>preferred values</em>.</li>
that order, to <em>preferred values</em>.
<span class="changed">If <em>value</em> is an empty <a>list object</a>,
set <em>type/language</em> to <code>@any</code>.</span></li>
<li>Initialize <em>term</em> to the result of the
<a href="#term-selection">Term Selection algorithm</a>, passing
<a>inverse context</a>, <em>iri</em>, <em>containers</em>,
Expand Down