Skip to content

Commit 2f23de3

Browse files
committed
Add text to the grammar to restrict the content model of @reverse to be consistent with API processing.
Fixes #636.
1 parent 6500be5 commit 2f23de3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spec/latest/json-ld/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4818,11 +4818,6 @@ <h2>Context Definitions</h2>
48184818
<code>@container</code>. An
48194819
<a>expanded term definition</a> SHOULD NOT contain any other keys.</p>
48204820

4821-
<p>If an <a>expanded term definition</a> has an <code>@reverse</code> member,
4822-
it MUST NOT have <code>@id</code> or <code>@nest</code> members at the same time. If an
4823-
<code>@container</code> member exists, its value MUST be <a>null</a>,
4824-
<code>@set</code>, or <code>@index</code>.</p>
4825-
48264821
<p>If the term being defined is not a <a>compact IRI</a> or
48274822
<a>absolute IRI</a> and the <a>active context</a> does not have an
48284823
<code>@vocab</code> mapping, the <a>expanded term definition</a> MUST
@@ -4833,6 +4828,13 @@ <h2>Context Definitions</h2>
48334828
a <a>blank node identifier</a>, a <a>compact IRI</a>, a <a>term</a>,
48344829
or a <a>keyword</a>.</p>
48354830

4831+
<p>If an <a>expanded term definition</a> has an <code>@reverse</code> member,
4832+
it MUST NOT have <code>@id</code> or <code>@nest</code> members at the same time,
4833+
its value MUST be an <a>absolute IRI</a>,
4834+
a <a>blank node identifier</a>, a <a>compact IRI</a>, or a <a>term</a>. If an
4835+
<code>@container</code> member exists, its value MUST be <a>null</a>,
4836+
<code>@set</code>, or <code>@index</code>.</p>
4837+
48364838
<p>If the <a>expanded term definition</a> contains the <code>@type</code>
48374839
<a>keyword</a>, its value MUST be an <a>absolute IRI</a>, a
48384840
<a>compact IRI</a>, a <a>term</a>, <a>null</a>, or one of the

0 commit comments

Comments
 (0)