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
Copy file name to clipboardExpand all lines: index.html
+24-19Lines changed: 24 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -2847,25 +2847,9 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
2847
2847
<strong>url</strong> and <strong>a</strong>, respectively.</p>
2848
2848
2849
2849
<p><spanclass="changed">Other than for <code>@type</code>,</span> properties of
2850
-
<a>expanded term definitions</a> where the term is a <a>keyword</a> are ignored.</p>
2851
-
2852
-
<pclass="changed">When <a>processing mode</a> is set to <code>json-ld-1.1</code>,
2853
-
<code>@type</code> may be used with an <a>expanded term definition</a> with <code>@container</code> set
2854
-
to <code>@set</code>; no other members may be set within such an <a>expanded term definition</a>.
2855
-
This is used by the <adata-cite="JSON-LD11-API#compaction-algorithm">Compaction algorithm</a> to ensure that the values of <code>@type</code> (or an alias)
2856
-
are always represented in an <a>array</a>.</p>
2857
-
2858
-
<preclass="example" data-transform="updateExample" title="Setting @container: @set on @type">
2859
-
<!--
2860
-
{
2861
-
"@context": {
2862
-
"@version": 1.1,
2863
-
"@type": {"@container": "@set"}
2864
-
},
2865
-
"@type": ["http:/example.org/type"]
2866
-
}
2867
-
-->
2868
-
</pre>
2850
+
<a>expanded term definitions</a> where the term is a <a>keyword</a> are ignored.
2851
+
When processing mode is set to <code>json-ld-1.1</code>, there is an exception for <code>@type</code>;
2852
+
see <ahref="#using-set-with-type" class="sectionRef"></a> for further details.</p>
2869
2853
2870
2854
<p>Since keywords cannot be redefined, they can also not be aliased to
2871
2855
other keywords.</p>
@@ -5264,6 +5248,27 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5264
5248
represented using arrays. See <ahref="#indexed-values"
5265
5249
class="sectionRef"></a> for a further discussion.</p>
5266
5250
</section>
5251
+
5252
+
<sectionclass="informative changed"><h2>Using <code>@set</code> with <code>@type</code></h2>
5253
+
<pclass="changed">When <a>processing mode</a> is set to <code>json-ld-1.1</code>,
5254
+
<code>@type</code> may be used with an <a>expanded term definition</a> with <code>@container</code> set
5255
+
to <code>@set</code>; no other members may be set within such an <a>expanded term definition</a>.
5256
+
This is used by the <adata-cite="JSON-LD11-API#compaction-algorithm">Compaction algorithm</a> to ensure that the values of <code>@type</code> (or an alias)
5257
+
are always represented in an <a>array</a>.</p>
5258
+
5259
+
<preclass="example" data-transform="updateExample" title="Setting @container: @set on @type">
0 commit comments