Skip to content

Commit b4dae4d

Browse files
pchampingkellogg
authored andcommitted
added missing keywords in sections 1.7, 9.15 and 9.16, addressing #262
also - reordered the keywords (in alphabetical order) in the def of "context definition" - removed spurious keywords in the def "expanded term definitions" (@import, @propagate)
1 parent fb571ab commit b4dae4d

File tree

1 file changed

+39
-17
lines changed

1 file changed

+39
-17
lines changed

index.html

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,9 @@ <h2>Syntax Tokens and Keywords</h2>
614614
(other than for <a>type-scoped contexts</a>, which default to `false`).
615615
Setting this to `false` causes term definitions created within that context
616616
to be removed when entering a new <a>node object</a>.</dd>
617+
<dt class="changed">`@protected`</dt><dd class="changed">
618+
Used to prevent <a>term definitions</a> of a context to be overriden by other contexts.
619+
This keyword is described in <a class="sectionRef" href="#protected-term-definitions"></a>.
617620
<dt class="changed">`@import`</dt><dd class="changed">
618621
Used in a <a>context definition</a> to load an external context
619622
within which the containing <a>context definition</a> is merged.
@@ -12156,28 +12159,47 @@ <h2>Context Definitions</h2>
1215612159

1215712160
<p>A <a>context definition</a> MUST be a <a>map</a> whose
1215812161
keys MUST be either <a>terms</a>, <a>compact IRIs</a>, <a>absolute IRIs</a>,
12159-
or one of the <a>keywords</a> <code>@language</code>, <code>@base</code>,
12160-
<code class="changed">@type</code>, <code>@vocab</code>, or <code class="changed">@version</code>.</p>
12161-
12162-
<p>If the <a>context definition</a> has an <code>@language</code> key,
12163-
its value MUST have the <a data-cite="BCP47#section-2.1.1">lexical form</a> described in [[BCP47]] or be <a>null</a>.</p>
12162+
or one of the <a>keywords</a>
12163+
<code>@base</code>,
12164+
<code class="changed">@import</code>,
12165+
<code>@language</code>,
12166+
<code class="changed">@propagate</code>,
12167+
<code class="changed">@protected</code>,
12168+
<code class="changed">@type</code>,
12169+
<code class="changed">@version</code>.
12170+
or <code>@vocab</code>.
12171+
</p>
1216412172

1216512173
<p>If the <a>context definition</a> has an <code>@base</code> key,
1216612174
its value MUST be an <a>absolute IRI</a>, a <a>relative IRI</a>,
1216712175
or <a>null</a>.</p>
1216812176

12177+
<p>If the <a>context definition</a> has an <code>@language</code> key,
12178+
its value MUST have the <a data-cite="BCP47#section-2.1.1">lexical form</a> described in [[BCP47]] or be <a>null</a>.</p>
12179+
12180+
<p class="changed">If a <a>context</a> contains the <code>@import</code>
12181+
<a>keyword</a>, its value MUST be an <a>absolute IRI</a> or <a>relative IRI</a>.
12182+
When used as a reference from an `@import`, the referenced <a>context definition</a> MUST NOT
12183+
include an `@import` key, itself.</p>
12184+
12185+
<p class="changed">If the <a>context definition</a> has an <code>@propagate</code> key,
12186+
its value MUST be <code>true</code> or <code>false</code>.</p>
12187+
12188+
<p class="changed">If the <a>context definition</a> has an <code>@protected</code> key,
12189+
its value MUST be <code>true</code> or <code>false</code>.</p>
12190+
1216912191
<p class="changed">If the <a>context definition</a> has an <code>@type</code> key,
1217012192
its value MUST be a <a>map</a> with the single <a>entry</a> <code>@container</code> set to <code>@set</code>.</p>
1217112193

12194+
<p class="changed">If the <a>context definition</a> has an <code>@version</code> key,
12195+
its value MUST be a <a>number</a> with the value <code>1.1</code>.</p>
12196+
1217212197
<p>If the <a>context definition</a> has an <code>@vocab</code> key,
1217312198
its value MUST be a <a>absolute IRI</a>, a <a>compact IRI</a>,
1217412199
a <a>blank node identifier</a>,
1217512200
<span class="changed">a <a>relative IRI</a></span>,
1217612201
a <a>term</a>, or <a>null</a>.</p>
1217712202

12178-
<p class="changed">If the <a>context definition</a> has an <code>@version</code> key,
12179-
its value MUST be a <a>number</a> with the value <code>1.1</code>.</p>
12180-
1218112203
<p>The value of keys that are not <a>keywords</a> MUST be either an
1218212204
<a>absolute IRI</a>, a <a>compact IRI</a>, a <a>term</a>,
1218312205
a <a>blank node identifier</a>, a <a>keyword</a>, <a>null</a>,
@@ -12191,14 +12213,13 @@ <h2>Context Definitions</h2>
1219112213
<p>An <a>expanded term definition</a> MUST be a <a>map</a>
1219212214
composed of zero or more keys from
1219312215
<code>@id</code>,
12194-
<code class="changed">@import</code>,
1219512216
<code>@reverse</code>,
1219612217
<code>@type</code>,
1219712218
<code>@language</code>,
1219812219
<code>@container</code>,
1219912220
<code class="changed">@context</code>,
12200-
<code class="changed">@prefix</code>, or
12201-
<code class="changed">@propagate</code>.
12221+
<code class="changed">@prefix</code>,
12222+
<code class="changed">@protected</code>.
1220212223
An <a>expanded term definition</a> SHOULD NOT contain any other keys.</p>
1220312224

1220412225
<p>If the term being defined is not a <a>compact IRI</a> or
@@ -12265,14 +12286,9 @@ <h2>Context Definitions</h2>
1226512286
<p class="changed">If the <a>expanded term definition</a> contains the <code>@prefix</code>
1226612287
<a>keyword</a>, its value MUST be <code>true</code> or <code>false</code>.</p>
1226712288

12268-
<p class="changed">If the <a>expanded term definition</a> contains the <code>@propagate</code>
12289+
<p class="changed">If the <a>expanded term definition</a> contains the <code>@protected</code>
1226912290
<a>keyword</a>, its value MUST be <code>true</code> or <code>false</code>.</p>
1227012291

12271-
<p class="changed">If a <a>context</a> contains the <code>@import</code>
12272-
<a>keyword</a>, its value MUST be an <a>absolute IRI</a> or <a>relative IRI</a>.
12273-
When used as a reference from an `@import`, the referenced <a>context definition</a> MUST NOT
12274-
include an `@import` key, itself.</p>
12275-
1227612292
<p><a>Terms</a> MUST NOT be used in a circular manner. That is,
1227712293
the definition of a term cannot depend on the definition of another term if that other
1227812294
term also depends on the first term.</p>
@@ -12406,6 +12422,12 @@ <h2>Keywords</h2>
1240612422
Its value MUST be <code>true</code> or <code>false</code>.
1240712423
See <a class="sectionRef" href="#context-propagation"></a> for a further discussion.
1240812424
</dd>
12425+
<dt class="changed">`@protected`</dt><dd class="changed">
12426+
The `@protected` keyword MUST NOT be aliased, and MAY be used in a <a>context definition</a>,
12427+
or an <a>expanded term definition</a>.
12428+
Its value MUST be <code>true</code> or <code>false</code>.
12429+
See <a class="sectionRef" href="#protected-term-definitions"></a> for a further discussion.
12430+
</dd>
1240912431
<dt><code>@reverse</code></dt><dd>
1241012432
The <code>@reverse</code> keyword MAY be aliased and MAY be used as a key in a <a>node object</a>.
1241112433
The unaliased <code>@reverse</code> MAY be used as a key in an <a>expanded term definition</a>.

0 commit comments

Comments
 (0)