Skip to content

Commit affb76c

Browse files
committed
Allow empty lists to be compacted by any term with container @list that matches the property IRI:
* Update inverse context to creation to include an `@any` member for the _container_ member of _container map_ for a given _iri_. * Update IRI Compaction to set _type/language_ to `@any` if value is an empty list object. Fixes #508. PR #509 is appropriate with this change.
1 parent 3164dfe commit affb76c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

spec/latest/json-ld-api/index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,10 +2409,13 @@ <h3>Algorithm</h3>
24092409
<em>result</em> using the variable <em>container map</em>.</li>
24102410
<li>If <em>container map</em> has no <em>container</em> member,
24112411
create one and set its value to a new
2412-
<a class="changed">dictionary</a> with two members. The first member is
2413-
<code>@language</code> and its value is a new empty
2412+
<a class="changed">dictionary</a> with <span class="changed">three</span> members.
2413+
The first member is <code>@language</code> and its value is a new empty
24142414
<a class="changed">dictionary</a>, the second member is <code>@type</code>
2415-
and its value is a new empty <a class="changed">dictionary</a>.</li>
2415+
and its value is a new empty <a class="changed">dictionary</a>,
2416+
<span class="changed">and the third member is <code>@any</code>
2417+
and its value is a new <a>dictionary</a> with the member
2418+
<code>@none</code> set to the <a>term</a> being processed</span>.</li>
24162419
<li>Reference the value associated with the <em>container</em> member
24172420
in <em>container map</em> using the variable <em>type/language map</em>.</li>
24182421
<li>If the <a>term definition</a> indicates that the <a>term</a>
@@ -2674,7 +2677,9 @@ <h3>Algorithm</h3>
26742677
</ol>
26752678
</li>
26762679
<li>Otherwise, append <em>type/language value</em> and <code>@none</code>, in
2677-
that order, to <em>preferred values</em>.</li>
2680+
that order, to <em>preferred values</em>.
2681+
<span class="changed">If <em>value</em> is an empty <a>list object</a>,
2682+
set <em>type/language</em> to <code>@any</code>.</span></li>
26782683
<li>Initialize <em>term</em> to the result of the
26792684
<a href="#term-selection">Term Selection algorithm</a>, passing
26802685
<a>inverse context</a>, <em>iri</em>, <em>containers</em>,

0 commit comments

Comments
 (0)