Disallow list of lists
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Sun, 18 Mar 2012 19:31:50 +0800
changeset 383 a91a7a5122dc
parent 382 3f4411ae2c58
child 384 4ec1ec4fdb36
Disallow list of lists

Added a note to the syntax specification that list of lists are not allowed in this version of JSON-LD and the according exceptions to the API specification.

This closes #52.
spec/latest/json-ld-api/index.html
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-api/index.html	Sun Mar 18 19:16:44 2012 +0800
+++ b/spec/latest/json-ld-api/index.html	Sun Mar 18 19:31:50 2012 +0800
@@ -498,6 +498,12 @@
          <dd>There was a problem encountered loading a remote context.</dd>
         </dl>
 
+        <dl class="exception" title="ProcessingError">
+          <dt>LIST_OF_LISTS_DETECTED</dt>
+          <dd>A list of lists was detected. This is not supported in this
+            version of JSON-LD.</dd>
+        </dl>
+
       </dd>
 
       <dt>object compact()</dt>
@@ -537,6 +543,9 @@
           <dt>CONFLICTING_DATATYPES</dt>
           <dd>The target datatype specified in the coercion rule and the
             datatype for the typed literal do not match.</dd>
+          <dt>LIST_OF_LISTS_DETECTED</dt>
+          <dd>A list of lists was detected. This is not supported in this
+            version of JSON-LD.</dd>
         </dl>
 
       </dd>
@@ -568,6 +577,12 @@
             requested, MUST result in this exception.</dd>
         </dl>
 
+        <dl class="exception" title="ProcessingError">
+          <dt>LIST_OF_LISTS_DETECTED</dt>
+          <dd>A list of lists was detected. This is not supported in this
+            version of JSON-LD.</dd>
+        </dl>
+
       </dd>
 
       <dt>DOMString normalize()</dt>
@@ -598,6 +613,12 @@
           <dd>There was a problem encountered loading a remote context.</dd>
         </dl>
 
+        <dl class="exception" title="ProcessingError">
+          <dt>LIST_OF_LISTS_DETECTED</dt>
+          <dd>A list of lists was detected. This is not supported in this
+            version of JSON-LD.</dd>
+        </dl>
+
       </dd>
 
       <dt>void triples()</dt>
@@ -626,6 +647,12 @@
           <dd>There was a problem encountered loading a remote context.</dd>
         </dl>
 
+        <dl class="exception" title="ProcessingError">
+          <dt>LIST_OF_LISTS_DETECTED</dt>
+          <dd>A list of lists was detected. This is not supported in this
+            version of JSON-LD.</dd>
+        </dl>
+
       </dd>
 
     </dl>
--- a/spec/latest/json-ld-syntax/index.html	Sun Mar 18 19:16:44 2012 +0800
+++ b/spec/latest/json-ld-syntax/index.html	Sun Mar 18 19:31:50 2012 +0800
@@ -1270,6 +1270,7 @@
     The value of this key, if present, MUST be <code>true</code>.
     This indicates that array values of keys coerced as <code>@list</code> are to be serialized
     as a <a href="#lists">List</a>.</p>
+  <p class="note">List of lists are not allowed in this version of JSON-LD. If a list of lists is detected, a JSON-LD processor will throw an exception.</p>
 </section>
 
 </section>