Skip to content

Commit e441cc4

Browse files
committed
Remove bits about setting processingMode to json-ld-1.1 automatically.
1 parent a6a9ad3 commit e441cc4

File tree

1 file changed

+20
-43
lines changed

1 file changed

+20
-43
lines changed

index.html

Lines changed: 20 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -927,9 +927,7 @@ <h2>RDF Serialization/Deserialization</h2>
927927
Once set, it is an error to attempt to change to a different processing mode,
928928
and processors MUST generate,
929929
a <a data-link-for="JsonLdErrorCode">processing mode conflict</a>
930-
error and abort further processing.
931-
If unspecified, processors MUST set <a>processing mode</a> to `json-ld-1.1`
932-
on the first attempt to use a JSON-LD 1.1 feature.</p>
930+
error and abort further processing.</p>
933931

934932
<p>The algorithms in this specification are generally written with more concern for clarity
935933
than efficiency. Thus, <a>JSON-LD Processors</a> may
@@ -1177,16 +1175,13 @@ <h3>Algorithm</h3>
11771175
is set to `json-ld-1.0`,
11781176
a <a data-link-for="JsonLdErrorCode">processing mode conflict</a>
11791177
error has been detected and processing is aborted.</li>
1180-
<li>Set <a>processing mode</a>,
1181-
to `json-ld-1.1`, if not already set.</li>
11821178
</ol>
11831179
</li>
11841180
<li class="changed">If <var>context</var> has an <code>@import</code> <a>entry</a>:
11851181
<ol>
11861182
<li>If <a>processing mode</a> is `json-ld-1.0`,
11871183
an <a data-link-for="JsonLdErrorCode">invalid context entry</a>
1188-
error has been detected and processing is aborted.
1189-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1184+
error has been detected and processing is aborted.</li>
11901185
<li>Otherwise, if its value is not a <a>string</a>,
11911186
an <a data-link-for="JsonLdErrorCode">invalid @import value</a>
11921187
error has been detected and processing is aborted.</li>
@@ -1293,8 +1288,7 @@ <h3>Algorithm</h3>
12931288
<ol>
12941289
<li>If <a>processing mode</a> is `json-ld-1.0`,
12951290
an <a data-link-for="JsonLdErrorCode">invalid context entry</a>
1296-
error has been detected and processing is aborted.
1297-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1291+
error has been detected and processing is aborted.</li>
12981292
<li>Initialize <var>value</var> to the value associated with the
12991293
<code>@direction</code> <a>entry</a>.</li>
13001294
<li>If <var>value</var> is <code>null</code>, remove
@@ -1310,8 +1304,7 @@ <h3>Algorithm</h3>
13101304
<ol>
13111305
<li>If <a>processing mode</a> is `json-ld-1.0`,
13121306
an <a data-link-for="JsonLdErrorCode">invalid context entry</a>
1313-
error has been detected and processing is aborted.
1314-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1307+
error has been detected and processing is aborted.</li>
13151308
<li>Otherwise, if its value is not <a>boolean</a> <code>true</code> or <code>false</code>,
13161309
an <a data-link-for="JsonLdErrorCode">invalid @propagate value</a>
13171310
error has been detected and processing is aborted.</li>
@@ -1414,7 +1407,6 @@ <h3>Algorithm</h3>
14141407
and <a>processing mode</a> is `json-ld-1.0`,
14151408
a <a data-link-for="JsonLdErrorCode">keyword redefinition</a> error has
14161409
been detected and processing is aborted.
1417-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.
14181410
At this point, <var>value</var>
14191411
MUST be a <a>map</a> with only the entry <code>@container</code>
14201412
and value <code>@set</code>
@@ -1448,8 +1440,7 @@ <h3>Algorithm</h3>
14481440
is <code>true</code> set the <a>protected</a> in <var>definition</var> to true.
14491441
If <a>processing mode</a> is `json-ld-1.0`,
14501442
an <a data-link-for="JsonLdErrorCode">invalid term definition</a>
1451-
has been detected and processing is aborted.
1452-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set. </li>
1443+
has been detected and processing is aborted. </li>
14531444
<li class="changed">Otherwise, if there is no <code>@protected</code> entry in <var>value</var>
14541445
and the <var>protected</var> parameter is <code>true</code>,
14551446
set the <a>protected</a> in <var>definition</var> to true.</li>
@@ -1467,8 +1458,7 @@ <h3>Algorithm</h3>
14671458
<li class="changed">If the expanded <var>type</var> is
14681459
`@json` or `@none`, and <a>processing mode</a> is `json-ld-1.0`,
14691460
an <a data-link-for="JsonLdErrorCode">invalid type mapping</a>
1470-
error has been detected and processing is aborted.
1471-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1461+
error has been detected and processing is aborted.</li>
14721462
<li>Otherwise, if the expanded <var>type</var> is
14731463
neither <code>@id</code>, nor <code>@vocab</code>,
14741464
nor an <a>absolute IRI</a>,
@@ -1607,8 +1597,7 @@ <h3>Algorithm</h3>
16071597
<li class="changed">If the container value
16081598
is <code>@graph</code>, <code>@id</code>, or <code>@type</code>, or is otherwise not a <a>string</a>,
16091599
generate an <a data-link-for="JsonLdErrorCode">invalid container mapping</a>
1610-
error and abort processing if <a>processing mode</a> is `json-ld-1.0`.
1611-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1600+
error and abort processing if <a>processing mode</a> is `json-ld-1.0`.</li>
16121601
<li>Set the <a>container mapping</a> of <var>definition</var> to
16131602
<var>container</var>.</li>
16141603
<li class="changed">If <a>container mapping</a> is `@type`:
@@ -1626,8 +1615,7 @@ <h3>Algorithm</h3>
16261615
<li>If <a>processing mode</a> is `json-ld-1.0` or
16271616
<a>container mapping</a> does not include <code>@index</code>,
16281617
an <a data-link-for="JsonLdErrorCode">invalid term definition</a>
1629-
has been detected and processing is aborted.
1630-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1618+
has been detected and processing is aborted.</li>
16311619
<li>Initialize <var>index</var> to the value associated with the
16321620
<code>@index</code> <a>entry</a>, which MUST a <a>string</a> expanding to an <a>absolute IRI</a>.
16331621
Otherwise, an
@@ -1640,8 +1628,7 @@ <h3>Algorithm</h3>
16401628
<ol>
16411629
<li>If <a>processing mode</a> is `json-ld-1.0`, an
16421630
<a data-link-for="JsonLdErrorCode">invalid term definition</a>
1643-
has been detected and processing is aborted.
1644-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1631+
has been detected and processing is aborted.</li>
16451632
<li>Initialize <var>context</var> to the value associated with the
16461633
<code>@context</code> <a>entry</a>, which is treated as a <var>local context</var>.</li>
16471634
<li>Invoke the <a href="#context-processing-algorithm">Context Processing algorithm</a>
@@ -1689,8 +1676,7 @@ <h3>Algorithm</h3>
16891676
<ol>
16901677
<li>If <a>processing mode</a> is `json-ld-1.0`, an
16911678
<a data-link-for="JsonLdErrorCode">invalid term definition</a>
1692-
has been detected and processing is aborted.
1693-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1679+
has been detected and processing is aborted.</li>
16941680
<li>Initialize <a>nest value</a> in <var>definition</var> to the value associated with the
16951681
<code>@nest</code> <a>entry</a>, which MUST be a <a>string</a> and
16961682
MUST NOT be a keyword other than <code>@nest</code>. Otherwise, an
@@ -1703,8 +1689,7 @@ <h3>Algorithm</h3>
17031689
<li>If <a>processing mode</a> is `json-ld-1.0`, or if
17041690
<var>term</var> contains a colon (<code>:</code>), an
17051691
<a data-link-for="JsonLdErrorCode">invalid term definition</a>
1706-
has been detected and processing is aborted.
1707-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
1692+
has been detected and processing is aborted.</li>
17081693
<li>Initialize the <a>prefix flag</a> to the value associated with the
17091694
<code>@prefix</code> <a>entry</a>, which MUST be a <a>boolean</a>. Otherwise, an
17101695
<a data-link-for="JsonLdErrorCode">invalid @prefix value</a>
@@ -2383,8 +2368,7 @@ <h3>Algorithm</h3>
23832368
a <a data-link-for="JsonLdErrorCode">colliding keywords</a>
23842369
error has been detected and processing is aborted.</li>
23852370
<li class="changed">If <var>result</var> already has an <var>expanded property</var> <a>entry</a>,
2386-
for `@included` or `@type`.
2387-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
2371+
for `@included` or `@type`.</li>
23882372
<li>If <var>expanded property</var> is <code>@id</code> and
23892373
<var>value</var> is not a <a>string</a>, an
23902374
<a data-link-for="JsonLdErrorCode">invalid @id value</a>
@@ -2435,8 +2419,7 @@ <h3>Algorithm</h3>
24352419
<li class="changed">If <var>expanded property</var> is `@included`:
24362420
<ol>
24372421
<li>If <a>processing mode</a> is `json-ld-1.0`,
2438-
continue with the next <var>key</var> from <var>element</var>.
2439-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
2422+
continue with the next <var>key</var> from <var>element</var>.</li>
24402423
<li>Set <var>expanded value</var> to the result of using
24412424
this algorithm recursively passing <var>active context</var>,
24422425
<var>active property</var>, <var>value</var> for <var>element</var>,
@@ -2456,8 +2439,7 @@ <h3>Algorithm</h3>
24562439
set <var>expanded value</var> to <var>value</var>.
24572440
If <a>processing mode</a> is `json-ld-1.0`,
24582441
an <a data-link-for="JsonLdErrorCode">invalid value object value</a>
2459-
error has been detected and processing is aborted.
2460-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
2442+
error has been detected and processing is aborted.</li>
24612443
<li>Otherwise, if <var>value</var> is not a <a>scalar</a> or <code>null</code>,
24622444
an <a data-link-for="JsonLdErrorCode">invalid value object value</a>
24632445
error has been detected and processing is aborted.</li>
@@ -2493,8 +2475,7 @@ <h3>Algorithm</h3>
24932475
<li class="changed">If <var>expanded property</var> is <code>@direction</code>:
24942476
<ol>
24952477
<li>If <a>processing mode</a> is `json-ld-1.0`,
2496-
continue with the next <var>key</var> from <var>element</var>.
2497-
Otherwise, set <a>processing mode</a>, to `json-ld-1.1`, if not already set.</li>
2478+
continue with the next <var>key</var> from <var>element</var>.</li>
24982479
<li>If <var>value</var> is neither `"ltr"` nor `"rtl"`, an
24992480
<a data-link-for="JsonLdErrorCode">invalid base direction</a>
25002481
error has been detected and processing is aborted.</li>
@@ -2579,7 +2560,6 @@ <h3>Algorithm</h3>
25792560
<li class="changed">If <var>expanded property</var> is <code>@nest</code>,
25802561
add <var>key</var> to <var>nests</var>, initializing it to an empty <a>array</a>,
25812562
if necessary.
2582-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.
25832563
Continue with the next <var>key</var> from <var>element</var>.</li>
25842564
<li class="changed">When the {{JsonLdOptions/frameExpansion}} flag is set,
25852565
if <var>expanded property</var> is any other
@@ -2993,8 +2973,8 @@ <h3>Algorithm</h3>
29932973
return the result of concatenating the <a>IRI mapping</a>
29942974
associated with <var>prefix</var> and <var>suffix</var>.
29952975
<p class="ednote">A more conservative change, although more involved,
2996-
would to restrict looking at the <a>prefix flag</a> unless
2997-
the <a>processing mode</a> is `json-ld-1.1`.</p></li>
2976+
would to restrict looking at the <a>prefix flag</a> if
2977+
the <a>processing mode</a> is `json-ld-1.0`.</p></li>
29982978
<li><span class="changed">If <var>value</var> has the form of an <a>absolute IRI</a></span>,
29992979
return <var>value</var>.</li>
30002980
</ol>
@@ -4005,11 +3985,11 @@ <h3>Algorithm</h3>
40053985
be the last <a>container mapping</a> value to be checked as it
40063986
is the most generic.</li>
40073987
<li class="changed">
4008-
If <a>processing mode</a> is `json-ld-1.1` and value does not contain an <code>@index</code> <a>entry</a>,
3988+
If <a>processing mode</a> not `json-ld-1.0` and value does not contain an <code>@index</code> <a>entry</a>,
40093989
append <code>@index</code> and <code>@index@set</code> to <var>containers</var>.
40103990
</li>
40113991
<li class="changed">
4012-
If <a>processing mode</a> is `json-ld-1.1` and value contains only an <code>@value</code> <a>entry</a>,
3992+
If <a>processing mode</a> is not `json-ld-1.0` and value contains only an <code>@value</code> <a>entry</a>,
40133993
append <code>@language</code> and <code>@language@set</code> to <var>containers</var>.
40143994
</li>
40153995
<li>If <var>type/language value</var> is <code>null</code>, set it to
@@ -5323,7 +5303,6 @@ <h3>Algorithm</h3>
53235303
set <var>converted value</var> to the result of
53245304
turning the lexical value of <var>value</var>
53255305
into the <a>JSON-LD internal representation</a>, and set <var>type</var> to <code>@json</code>.
5326-
Set <a>processing mode</a>, to `json-ld-1.1`, if not already set.
53275306
If the lexical value of <var>value</var> is not valid JSON according to
53285307
the <a data-cite="RFC8259#section-2">JSON Grammar</a> [[RFC8259]],
53295308
an <a data-link-for="JsonLdErrorCode">invalid JSON literal</a>
@@ -6725,9 +6704,7 @@ <h4>JsonLdErrorCode</h4>
67256704
other than for testing considerations.
67266705
Language tags that are not valid according to [[BCP47]] are rejected.</li>
67276706
<li>The <a>processing mode</a> is now implicitly `json-ld-1.1`, unless set
6728-
explicitly to `json-ld-1.0`. Processing mode is wired to `json-ld-1.1`
6729-
when the first JSON-LD 1.1 specific feature is encountered, and it is
6730-
not set explicilty.</li>
6707+
explicitly to `json-ld-1.0`.</li>
67316708
</ul>
67326709
</section>
67336710

0 commit comments

Comments
 (0)