Skip to content

Commit 2ff493f

Browse files
committed
Move description of using @set with @type to from Aliasing Keywords to a new section under Value Ordering.
1 parent 91fb907 commit 2ff493f

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

index.html

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,25 +2847,9 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
28472847
<strong>url</strong> and <strong>a</strong>, respectively.</p>
28482848

28492849
<p><span class="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-
<p class="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 <a data-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-
<pre class="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 <a href="#using-set-with-type" class="sectionRef"></a> for further details.</p>
28692853

28702854
<p>Since keywords cannot be redefined, they can also not be aliased to
28712855
other keywords.</p>
@@ -5264,6 +5248,27 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52645248
represented using arrays. See <a href="#indexed-values"
52655249
class="sectionRef"></a> for a further discussion.</p>
52665250
</section>
5251+
5252+
<section class="informative changed"><h2>Using <code>@set</code> with <code>@type</code></h2>
5253+
<p class="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 <a data-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+
<pre class="example" data-transform="updateExample" title="Setting @container: @set on @type">
5260+
<!--
5261+
{
5262+
"@context": {
5263+
"@version": 1.1,
5264+
"@type": {"@container": "@set"}
5265+
},
5266+
"@type": ["http:/example.org/type"]
5267+
}
5268+
-->
5269+
</pre>
5270+
5271+
</section>
52675272
</section>
52685273

52695274

0 commit comments

Comments
 (0)