Skip to content

Commit da9b2f0

Browse files
authored
Merge pull request #184 from w3c/issue-175
Clarify that expansion steps looking for entries
2 parents 3238015 + 2dc02c1 commit da9b2f0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,30 +2865,30 @@ <h3>Algorithm</h3>
28652865
set <var>result</var> to the <a data-lt="entry">entry's</a> associated value.</li>
28662866
</ol>
28672867
</li>
2868-
<li>If <var>result</var> contains only the <a>entry</a>
2868+
<li>If <var>result</var> is a <a>map</a> that contains only the <a>entry</a>
28692869
<code>@language</code>, set <var>result</var> to <code>null</code>.</li>
28702870
<li>If <var>active property</var> is <code>null</code> or <code>@graph</code>,
28712871
drop free-floating values as follows:
28722872
<ol>
2873-
<li>If <var>result</var> is an empty <a class="changed">map</a> or contains
2874-
the <a>entries</a> <code>@value</code> or <code>@list</code>, set <var>result</var> to
2875-
<code>null</code>.</li>
2873+
<li>If <var>result</var> is a <a>map</a> which is empty,
2874+
or contains only the <a>entries</a> <code>@value</code> or <code>@list</code>,
2875+
set <var>result</var> to <code>null</code>.</li>
28762876
<li>Otherwise, if <var>result</var> is a <a class="changed">map</a> whose only
28772877
<a>entry</a> is <code>@id</code>, set <var>result</var> to <code>null</code>.
28782878
<span class="changed">
28792879
When the {{JsonLdOptions/frameExpansion}} flag is set, a <a>map</a>
28802880
containing only the <code>@id</code> <a>entry</a> is retained.</span></li>
28812881
</ol>
28822882
</li>
2883+
<li>If <var>result</var> is a
2884+
<a class="changed">map</a> that contains only an <code>@graph</code> <a>entry</a>,
2885+
set <var>result</var> that value.</li>
2886+
<li>If <var>result</var> is <code>null</code>,
2887+
set <var>result</var> to an empty <a>array</a>.</li>
2888+
<li>If <var>result</var> is not an <a>array</a>,
2889+
set <var>result</var> to an <a>array</a> containing only <var>result</var>.</li>
28832890
<li>Return <var>result</var>.</li>
28842891
</ol>
2885-
2886-
<p>If, after the above algorithm is run, the result is a
2887-
<a class="changed">map</a> that contains only an <code>@graph</code> <a>entry</a>, set the
2888-
result to the value of <code>@graph</code>'s value. Otherwise, if the result
2889-
is <code>null</code>, set it to an empty <a>array</a>. Finally, if
2890-
the result is not an <a>array</a>, then set the result to an
2891-
<a>array</a> containing only the result.</p>
28922892
</section>
28932893
</section> <!-- end of Expansion Algorithm -->
28942894

0 commit comments

Comments
 (0)