You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add version announcement requirement. Version must be set explicitly either using processingMode API option set to "json-ld-1.1", or "@Version": 1.1 in the first encountered JSON Object context, otherwise processing mode set implicitly to "json-ld-1.0". Added checks with expected errors in context processing if new features used in context with the wrong processing mode. Also adds compact/expand tests to check for proper error reporting.
Copy file name to clipboardExpand all lines: spec/latest/json-ld-framing/index.html
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1227,7 +1227,7 @@ <h3>JsonLdProcessor</h3>
1227
1227
<adata-lt="JsonLdProcessor-frame-frame">frame</a> and
1228
1228
<adata-lt="JsonLdProcessor-frame-options">options</a> with
1229
1229
<codeclass="idlMemberName"><adata-cite="JSON-LD-API#dom-jsonldoptions-expandcontext">expandContext</a></code> set to <code>null</code>
1230
-
and <codeclass="idlMemberName"><adata-cite="JSON-LD-API#dom-jsonldoptions-processingmode">processingMode</a></code> set to <strong>"json-ld-framing-1.1-expand-frame"</strong>.
1230
+
and <codeclass="idlMemberName"><adata-cite="JSON-LD-API#dom-jsonldoptions-processingmode">processingMode</a></code> set to <strong>json-ld-1.1-expand-frame</strong>.
1231
1231
<li>Set <em>context</em> to the value of <code>@context</code>
1232
1232
from <adata-lt="JsonLdProcessor-frame-frame">frame</a>, if it exists, or to
<pclass="ednote">Consider requirements from <ahref="https://w3ctag.github.io/security-questionnaire/">Self-Review Questionnaire: Security and Privacy</a>.</p>
starting with an <code>@</code> character are to be avoided as they
1482
1519
might be used as <a>keyword</a> in future versions
1483
1520
of JSON-LD. Terms starting with an <code>@</code> character that are not
1484
-
<adata-lt="keyword">JSON-LD 1.0 keywords</a> are treated as any other term, i.e.,
1521
+
<adata-lt="keyword">JSON-LD 1.1 keywords</a> are treated as any other term, i.e.,
1485
1522
they are ignored unless mapped to an <a>IRI</a>. Furthermore, the use of
1486
1523
empty <a>terms</a> (<code>""</code>) is not allowed as
1487
1524
not all programming languages are able to handle empty JSON keys.</p>
@@ -2101,7 +2138,7 @@ <h2>Reverse Properties</h2>
2101
2138
-->
2102
2139
</pre>
2103
2140
2104
-
<pclass="changed">The <code>@reverse</code><a>keyword</a> can also be used in
2141
+
<p>The <code>@reverse</code><a>keyword</a> can also be used in
2105
2142
<a>expanded term definitions</a>
2106
2143
to create reverse properties as shown in the following example:</p>
2107
2144
@@ -2238,6 +2275,9 @@ <h2>Scoped Contexts</h2>
2238
2275
</pre>
2239
2276
2240
2277
<p>Scoping on <code>@type</code> is useful when common properties are used to relate things of different types, where the vocabularies in use within different entities calls for different context scoping. For example, `hasPart`/`partOf` may be common terms used in a document, but mean different things depending on the context.</p>
2278
+
2279
+
<pclass="note">Scoped Contexts are a new feature in JSON-LD 1.1, requiring
2280
+
<a>processing mode</a> set to <code>json-ld-1.1</code></p>
0 commit comments