Skip to content

Commit 2870081

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

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>,
@@ -1162,7 +1162,7 @@ <h3>Overview</h3>
11621162
of the document containing the initial <a>context</a>.
11631163
This is necessary when resetting the <a>active context</a>
11641164
by setting it to `null`
1165-
to retain the original default <a>base IRI</a>.</p>
1165+
to retain the original default <a class="changed" data-lt="context-base-iri">base IRI</a>.</p>
11661166

11671167
<p>Then, for every other <a>entry</a> in <a>local context</a>, we update
11681168
the <a>term definition</a> in <var>result</var>. Since
@@ -1225,7 +1225,7 @@ <h3>Algorithm</h3>
12251225
newly-initialized <a>active context</a>,
12261226
<span class="changed">setting <a>previous context</a> in <var>result</var>
12271227
to the previous value of <var>result</var> if <var>propagate</var> is <code>false</code>
1228-
and both <a>base IRI</a> and <a>original base URL</a> to the value of
1228+
and 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>.</li>
12301230
<li>Continue with the next <var>context</var>.</li>
12311231
</ol>
@@ -1236,7 +1236,7 @@ <h3>Algorithm</h3>
12361236
<var>base URL</var>.
12371237
<div class="note">
12381238
<var>base URL</var> is often not the same as {{JsonLdOptions/base}}
1239-
or the <a>base IRI</a> of the <var>active context</var>.
1239+
or the <a class="changed" data-lt="context-base-iri">base IRI</a> of the <var>active context</var>.
12401240
</div>
12411241
</li>
12421242
<li>If the number of entries in the <var>remote contexts</var> array
@@ -1350,13 +1350,13 @@ <h3>Algorithm</h3>
13501350
<li>Initialize <var>value</var> to the value associated with the
13511351
<code>@base</code> <a>entry</a>.</li>
13521352
<li>If <var>value</var> is <code>null</code>, remove the
1353-
<a>base IRI</a> of <var>result</var>.</li>
1353+
<a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var>.</li>
13541354
<li>Otherwise, if <var>value</var> is an <a>IRI</a>,
1355-
the <a>base IRI</a> of <var>result</var> is set to <var>value</var>.</li>
1355+
the <a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var> is set to <var>value</var>.</li>
13561356
<li>Otherwise, if <var>value</var> is a <a>relative IRI reference</a> and
1357-
the <a>base IRI</a> of <var>result</var> is not <code>null</code>,
1358-
set the <a>base IRI</a> of <var>result</var> to the result of
1359-
resolving <var>value</var> against the current <a>base IRI</a>
1357+
the <a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var> is not <code>null</code>,
1358+
set the <a class="changed" data-lt="context-base-iri">base IRI</a> of <var>result</var> to the result of
1359+
resolving <var>value</var> against the current <a class="changed" data-lt="context-base-iri">base IRI</a>
13601360
of <var>result</var>.</li>
13611361
<li>Otherwise, an
13621362
<a data-link-for="JsonLdErrorCode">invalid base IRI</a>
@@ -3206,7 +3206,7 @@ <h3>Algorithm</h3>
32063206
with <var>value</var>.</li>
32073207
<li>Otherwise, if <var>document relative</var> is <code>true</code>
32083208
set <var>value</var> to the result of resolving <var>value</var> against
3209-
the <a>base IRI</a> from <var>active context</var>. Only the basic algorithm in
3209+
the <a class="changed" data-lt="context-base-iri">base IRI</a> from <var>active context</var>. Only the basic algorithm in
32103210
<a data-cite="RFC3986#section-5.2">section 5.2</a>
32113211
of [[RFC3986]] is used; neither
32123212
<a data-cite="RFC3986#section-6.2.2">Syntax-Based Normalization</a> nor
@@ -4178,7 +4178,7 @@ <h3>Algorithm</h3>
41784178
and processing is aborted.</li>
41794179
<li>If <var>vocab</var> is <code>false</code>,
41804180
transform <var>var</var> to a <a>relative IRI reference</a> using
4181-
the <span class="changed"><a>base IRI</a> from <var>active context</var>, if it exists</span>.</li>
4181+
the <span class="changed"><a data-lt="context-base-iri">base IRI</a> from <var>active context</var>, if it exists</span>.</li>
41824182
<li>Finally, return <var>var</var> as is.</li>
41834183
</ol>
41844184
</section>
@@ -5741,10 +5741,10 @@ <h3>Algorithm</h3>
57415741
If {{RemoteDocument/document}} cannot be transformed to the <a>internal representation</a>,
57425742
reject <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.</li>
57435743
<li>Initialize a new empty <var>active context</var>.
5744-
The <a>base IRI</a> and <a>original base URL</a> of the <var>active context</var> is set to the {{RemoteDocument/documentUrl}}
5744+
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}}
57455745
from <var>remote document</var>, if available;
57465746
otherwise to <code>null</code>.
5747-
If set, the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-expand-options">options</a> overrides the <a>base IRI</a>.</li>
5747+
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>
57485748
<li>If the {{JsonLdOptions/expandContext}} option in <a data-lt="jsonldprocessor-expand-options">options</a> is set,
57495749
update the <var>active context</var> using the <a href="#context-processing-algorithm">Context Processing algorithm</a>,
57505750
passing the {{JsonLdOptions/expandContext}} as <var>local context</var>

0 commit comments

Comments
 (0)