Skip to content

Commit 480429c

Browse files
committed
Fix grammar: @annotation is allowed in node objects
This addresses #196.
1 parent 936b448 commit 480429c

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

spec/latest/json-ld-syntax/index.html

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,36 +2761,37 @@ <h3>Node Object</h3>
27612761

27622762
<p>A <tdef>node object</tdef> represents zero or more properties of a
27632763
<tref>node</tref> in the <tref>JSON-LD graph</tref> serialized by the
2764-
<tref>JSON-LD document</tref>.
2764+
<tref>JSON-LD document</tref>. A <tref>JSON object</tref> is a
2765+
<tref>node object</tref> if it exists outside of a JSON-LD
2766+
<tref>context</tref> and:</p>
27652767

2766-
A <tref>JSON Object</tref> is a <tref>node object</tref> if
2767-
it exists outside of the JSON-LD Context and:</p>
2768-
2769-
<ul>
2770-
<li>it does not contain the <code>@value</code>, <code>@list</code>,
2771-
<code>@annotation</code>, or <code>@set</code> keywords, or</li>
2772-
<li>it does not contain the <code>@graph</code> keyword and is
2773-
the top-most <tref>JSON Object</tref> in the JSON-LD document.
2774-
</ul>
2768+
<ul>
2769+
<li>it does not contain the <code>@value</code>, <code>@list</code>,
2770+
or <code>@set</code> keywords, or</li>
2771+
<li>it does not contain the <code>@graph</code> keyword and is
2772+
the top-most <tref>JSON object</tref> in the JSON-LD document.
2773+
</ul>
27752774

2776-
The properties of a <tref>node</tref> in the <tref>JSON-LD graph</tref>
2777-
may be spread among different <tref title="node object">node objects</tref>
2778-
within a document. When that happens,
2779-
the keys of the different <tref title="node object">node objects</tref>
2780-
are merged to create the properties of the resulting <tref>node</tref>.</p>
2775+
<p>The <tref title="property">properties</tref> of a <tref>node</tref> in
2776+
the <tref>JSON-LD graph</tref> may be spread among different
2777+
<tref title="node object">node objects</tref> within a document. When
2778+
that happens, the keys of the different
2779+
<tref title="node object">node objects</tref> are merged to create the
2780+
properties of the resulting <tref>node</tref>.</p>
27812781

27822782
<p>A <tref>node object</tref> MUST be a <tref>JSON object</tref> that contains
2783-
one or more key-value pairs. Keys MUST either be
2784-
<tref title="IRI">IRIs</tref>,
2785-
<tref title="compact IRI">compact IRIs</tref>,
2786-
<tref title="term">terms</tref> valid in the <tref>active context</tref>, or
2787-
one of the following <tref title="keyword">keywords</tref>:</p>
2783+
one or more key-value pairs. All keys which are not <tref title="IRI">IRIs</tref>,
2784+
<tref title="compact IRI">compact IRIs</tref>, <tref title="term">terms</tref>
2785+
valid in the <tref>active context</tref>, or one of the following
2786+
<tref title="keyword">keywords</tref> MUST be ignored when processed:</p>
2787+
27882788
<ul>
27892789
<li><code>@context</code>,</li>
27902790
<li><code>@graph</code>,</li>
27912791
<li><code>@id</code>, or</li>
27922792
<li><code>@type</code></li>
27932793
</ul>
2794+
27942795
<p>If the <tref>node object</tref> contains the <code>@context</code>
27952796
key, its value MUST be one of the following:</p>
27962797
<ul>

0 commit comments

Comments
 (0)