Skip to content

Commit 4354b50

Browse files
committed
Clarify what _base IRI_ to set in compact() and flatten().
Fixes #396.
1 parent 3f8bb4b commit 4354b50

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5720,7 +5720,7 @@ <h3>Algorithm</h3>
57205720
passing a new empty <a>context</a> as <var>active context</var>
57215721
<var>context</var> as <var>local context</var>,
57225722
and <var>context base</var> as <var>base URL</var>.</li>
5723-
<li>Initialize <a>base IRI</a> to the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-compact-options">options</a>, if set;
5723+
<li>Set <a data-lt="context-base-iri">base IRI</a> in <var>active context</var> to the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-compact-options">options</a>, if set;
57245724
otherwise, if the <a data-link-for="JsonLdOptions">compactToRelative</a> option is <strong>true</strong>,
57255725
to the IRI of the currently being processed document, if available;
57265726
otherwise to <code>null</code>.</li>
@@ -5874,11 +5874,6 @@ <h3>Algorithm</h3>
58745874
for <a data-lt="jsonldprocessor-expand-input">input</a>,
58755875
and <a data-lt="jsonldprocessor-flatten-options">options</a>
58765876
<span class="changed">with {{JsonLdOptions/ordered}} set to <code>false</code></span>.</li>
5877-
<li class="changed">Initialize the <a>base IRI</a> to the {{JsonLdOptions/base}} option
5878-
from <a data-lt="jsonldprocessor-flatten-options">options</a>, if set;
5879-
otherwise, if the <a data-link-for="JsonLdOptions">compactToRelative</a> option is <strong>true</strong>,
5880-
to the IRI of the currently being processed document, if available;
5881-
otherwise to <code>null</code>.</li>
58825877
<li>Initialize an empty <var>identifier map</var>.</li>
58835878
<li>Set <var>flattened output</var> to the result of using the <a href="#flattening-algorithm">Flattening algorithm</a>,
58845879
passing <var>expanded input</var> as <var>element</var>,
@@ -5890,7 +5885,12 @@ <h3>Algorithm</h3>
58905885
using the <a data-link-for="JsonLdProcessor">compact()</a> method
58915886
using <var>flattened output</var> for <a data-lt="jsonldprocessor-compact-input">input</a>,
58925887
<a data-lt="jsonldprocessor-flatten-context">context</a>,
5893-
and <a data-lt="jsonldprocessor-flatten-options">options</a>.</li>
5888+
and <a data-lt="jsonldprocessor-flatten-options">options</a>.
5889+
Set the <a data-lt="context-base-iri">base IRI</a> in <var>active context</var> to the {{JsonLdOptions/base}} option
5890+
from <a data-lt="jsonldprocessor-flatten-options">options</a>, if set;
5891+
otherwise, if the <a data-link-for="JsonLdOptions">compactToRelative</a> option is <strong>true</strong>,
5892+
to the IRI of the currently being processed document, if available;
5893+
otherwise to <code>null</code>.</li>
58945894
</ol>
58955895
</li>
58965896
<li>Resolve the <var>promise</var> with <var>flattened output</var>

0 commit comments

Comments
 (0)