Clarify flattning algorithm to allow only @graph and possibly @context at the top level, not @graph with anything else.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sun, 05 May 2013 13:08:13 -0700
changeset 1632 570f884d88b0
parent 1631 5ad9c668391c
child 1633 51f7620f28ac
Clarify flattning algorithm to allow only @graph and possibly @context at the top level, not @graph with anything else.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Sun May 05 21:15:27 2013 +0200
+++ b/spec/latest/json-ld-api/index.html	Sun May 05 13:08:13 2013 -0700
@@ -2811,8 +2811,8 @@
         <li>If <i>context</i> is <tref>null</tref>, return <i>flattened</i>.</li>
         <li>Otherwise, return the result of compacting <i>flattened</i> according the
           <a href="#compaction-algorithm">Compaction algorithm</a> passing <i>context</i>
-          ensuring that the compaction result uses the <code>@graph</code> keyword (or its alias)
-          at the top-level, even if the context is empty or if there is only one element to
+          ensuring that the compaction result has only the <code>@graph</code> keyword (or its alias)
+          at the top-level other than <code>@context</code>, even if the context is empty or if there is only one element to
           put in the <code>@graph</code> <tref>array</tref>. This ensures that the returned
           document has a deterministic structure.</li>
       </ol>