null is not a valid value for @id, either within a document or within a context definition. (Relates to #135).
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sun, 24 Jun 2012 16:26:54 -0700
changeset 741 40e7468c59e8
parent 740 e7ef310d5fc7
child 742 a50c1b69a05b
null is not a valid value for @id, either within a document or within a context definition. (Relates to #135).
spec/latest/json-ld-syntax/index.html
test-suite/tests/compact-0017-context.jsonld
test-suite/tests/compact-0017-out.jsonld
--- a/spec/latest/json-ld-syntax/index.html	Sun Jun 24 15:42:48 2012 -0700
+++ b/spec/latest/json-ld-syntax/index.html	Sun Jun 24 16:26:54 2012 -0700
@@ -1257,6 +1257,21 @@
 
 </section>
 
+<section>
+  <h2>JSON-LD Syntax</h2>
+  
+  <p>A JSON-LD document is first, and foremost, a JSON document
+    (as defined in [[!RFC5988]]), and any syntactically correct JSON document 
+    MUST be processed by a conforming JSON-LD processor. However, JSON-LD 
+    describes a specific syntax to use for expressing Linked Data. This 
+    includes the use of specific keywords, as identified in <a 
+    href="#syntax-tokens-and-keywords">Syntax Tokens and Keywords</a> for 
+    expressing <a title="subject definition">subject definitions</a>, values, 
+    and the <a>context</a>. See <a 
+    href="#json-ld-authoring-guidelines">Appendix A</a> for authoring 
+    guidelines and a BNF description of JSON-LD.</p>
+
+</section>
 </section>
 
 <section>
@@ -2304,7 +2319,7 @@
 
 <ol>
 <li>A JSON-LD document is composed of a single <tref>JSON object</tref> or an <tref>array</tref> of <tref title="JSON object">JSON objects</tref>.</li>
-<li>The value of <code>@id</code> MUST be <code>null</code>, a <tref>term</tref>, a <tref>compact IRI</tref>, or an <tref>IRI</tref>.</li>
+<li>The value of <code>@id</code> MUST be a <tref>term</tref>, a <tref>compact IRI</tref>, or an <tref>IRI</tref>.</li>
 <li>An <code>@id</code> keyword and a <code>@language</code> keyword MUST NOT exist in the same <tref>JSON object</tref>.</li>
 <li>An <code>@id</code> keyword and a <code>@container</code> keyword MUST NOT exist in the same <tref>JSON object</tref>.</li>
 <li>A <tref>JSON object</tref> MAY contain a <code>@context</code> property.</li>
--- a/test-suite/tests/compact-0017-context.jsonld	Sun Jun 24 15:42:48 2012 -0700
+++ b/test-suite/tests/compact-0017-context.jsonld	Sun Jun 24 16:26:54 2012 -0700
@@ -4,7 +4,7 @@
       "comment": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
     },
     {
-      "comment": { "@id": null },
+      "comment": null,
       "comment_en": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
     }
   ]
--- a/test-suite/tests/compact-0017-out.jsonld	Sun Jun 24 15:42:48 2012 -0700
+++ b/test-suite/tests/compact-0017-out.jsonld	Sun Jun 24 16:26:54 2012 -0700
@@ -4,7 +4,7 @@
       "comment": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
     },
     {
-      "comment": { "@id": null },
+      "comment": null,
       "comment_en": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
     }
   ],