Skip to content

Commit 90e6dc7

Browse files
committed
Create a "context-base-iri" definition used for referencing the _base IRI_ property of an _active context_.
For #371.
1 parent 3ea2d6f commit 90e6dc7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ <h2>RDF Serialization/Deserialization</h2>
10691069
<ul>
10701070
<li>the active <a>term definitions</a> which specify how
10711071
keys and values have to be interpreted (<a>array</a> of <a>term definitions</a>),</li>
1072-
<li>the current <a>base IRI</a> (<a>IRI</a>),</li>
1072+
<li>the current <dfn data-lt="context-base-iri" data-lt-noDefault>base IRI</dfn> (<a>IRI</a>),</li>
10731073
<li class="changed">the <dfn>original base URL</dfn> (<a>IRI</a>),</li>
10741074
<li>an optional <a>vocabulary mapping</a> (<a>IRI</a>),</li>
10751075
<li>an optional <a>default language</a> (<a>string</a>),</li>
@@ -1131,7 +1131,7 @@ <h3>Overview</h3>
11311131
<p>If <a>context</a> is a <a class="changed">map</a>,
11321132
it is a <a data-cite="JSON-LD11#dfn-context-definition">context definition</a>.
11331133
We first update
1134-
the <a>base IRI</a>,
1134+
the <a class="changed" data-lt="context-base-iri">base IRI</a>,
11351135
<span class="changed">the <a>default base direction</a></span>,
11361136
the <a>default language</a>,
11371137
<span class="changed">context propagation</span>,
@@ -1163,7 +1163,7 @@ <h3>Overview</h3>
11631163
otherwise from the {{JsonLdOptions/base}} API option.
11641164
This is necessary when resetting the <a>active context</a>
11651165
by setting it to `null`
1166-
to retain the original default <a>base IRI</a>.</p>
1166+
to retain the original default <a class="changed" data-lt="context-base-iri">base IRI</a>.</p>
11671167

11681168
<p>Then, for every other <a>entry</a> in <a>local context</a>, we update
11691169
the <a>term definition</a> in <var>result</var>. Since
@@ -1225,7 +1225,7 @@ <h3>Algorithm</h3>
12251225
<li>Initialize <var>result</var> as a
12261226
newly-initialized <a>active context</a>,
12271227
<span class="changed">
1228-
setting both <a>base IRI</a> and <a>original base URL</a> to the value of
1228+
setting both <a data-lt="context-base-iri">base IRI</a> and <a>original base URL</a> to the value of
12291229
<a>original base URL</a> in <var>active context</var></span>,
12301230
and, if <var>propagate</var> is <code>false</code>,
12311231
<a>previous context</a> in <var>result</var>
@@ -1242,7 +1242,7 @@ <h3>Algorithm</h3>
12421242
has been detected and processing is aborted.
12431243
<div class="note">
12441244
<var>base URL</var> is often not the same as {{JsonLdOptions/base}}
1245-
or the <a>base IRI</a> of the <var>active context</var>.
1245+
or the <a class="changed" data-lt="context-base-iri">base IRI</a> of the <var>active context</var>.
12461246
</div>
12471247
</li>
12481248
<li>If the number of entries in the <var>remote contexts</var> array
@@ -1359,13 +1359,13 @@ <h3>Algorithm</h3>
13591359
<li>Initialize <var>value</var> to the value associated with the
13601360
<code>@base</code> <a>entry</a>.</li>
13611361
<li>If <var>value</var> is <code>null</code>, remove the
1362-
<a>base IRI</a> of <var>result</var>.</li>
1362+
<a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var>.</li>
13631363
<li>Otherwise, if <var>value</var> is an <a>IRI</a>,
1364-
the <a>base IRI</a> of <var>result</var> is set to <var>value</var>.</li>
1364+
the <a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var> is set to <var>value</var>.</li>
13651365
<li>Otherwise, if <var>value</var> is a <a>relative IRI reference</a> and
1366-
the <a>base IRI</a> of <var>result</var> is not <code>null</code>,
1367-
set the <a>base IRI</a> of <var>result</var> to the result of
1368-
resolving <var>value</var> against the current <a>base IRI</a>
1366+
the <a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var> is not <code>null</code>,
1367+
set the <a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var> to the result of
1368+
resolving <var>value</var> against the current <a class="changed" data-lt="context-base-iri">base IRI</a>
13691369
of <var>result</var>.</li>
13701370
<li>Otherwise, an
13711371
<a data-link-for="JsonLdErrorCode">invalid base IRI</a>
@@ -3215,7 +3215,7 @@ <h3>Algorithm</h3>
32153215
with <var>value</var>.</li>
32163216
<li>Otherwise, if <var>document relative</var> is <code>true</code>
32173217
set <var>value</var> to the result of resolving <var>value</var> against
3218-
the <a>base IRI</a> from <var>active context</var>. Only the basic algorithm in
3218+
the <a class="changed" data-lt="context-base-iri">base IRI</a> from <var>active context</var>. Only the basic algorithm in
32193219
<a data-cite="RFC3986#section-5.2">section 5.2</a>
32203220
of [[RFC3986]] is used; neither
32213221
<a data-cite="RFC3986#section-6.2.2">Syntax-Based Normalization</a> nor
@@ -4187,7 +4187,7 @@ <h3>Algorithm</h3>
41874187
and processing is aborted.</li>
41884188
<li>If <var>vocab</var> is <code>false</code>,
41894189
transform <var>var</var> to a <a>relative IRI reference</a> using
4190-
the <span class="changed"><a>base IRI</a> from <var>active context</var>, if it exists</span>.</li>
4190+
the <span class="changed"><a data-lt="context-base-iri">base IRI</a> from <var>active context</var>, if it exists</span>.</li>
41914191
<li>Finally, return <var>var</var> as is.</li>
41924192
</ol>
41934193
</section>
@@ -5750,10 +5750,10 @@ <h3>Algorithm</h3>
57505750
If {{RemoteDocument/document}} cannot be transformed to the <a>internal representation</a>,
57515751
reject <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.</li>
57525752
<li>Initialize a new empty <var>active context</var>.
5753-
The <a>base IRI</a> and <a>original base URL</a> of the <var>active context</var> is set to the {{RemoteDocument/documentUrl}}
5753+
The <a data-lt="context-base-iri">base IRI</a> and <a>original base URL</a> of the <var>active context</var> is set to the {{RemoteDocument/documentUrl}}
57545754
from <var>remote document</var>, if available;
57555755
otherwise to the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-expand-options">options</a>.
5756-
If set, the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-expand-options">options</a> overrides the <a>base IRI</a>.</li>
5756+
If set, the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-expand-options">options</a> overrides the <a data-lt="context-base-iri">base IRI</a>.</li>
57575757
<li>If the {{JsonLdOptions/expandContext}} option in <a data-lt="jsonldprocessor-expand-options">options</a> is set,
57585758
update the <var>active context</var> using the <a href="#context-processing-algorithm">Context Processing algorithm</a>,
57595759
passing the {{JsonLdOptions/expandContext}} as <var>local context</var>

0 commit comments

Comments
 (0)