Clarify in flattening algo that the check looks for @id after removing uses
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Sun, 21 Jul 2013 18:55:11 +0200
changeset 1803 4ddc5db5221b
parent 1802 a83f60ce0dae
child 1804 330d94671fdb
Clarify in flattening algo that the check looks for @id after removing uses

This addresses #258, see also 1798aa242a2590af9d92680e0a370b6bb6d7258b
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Sat Jul 20 20:26:44 2013 -0400
+++ b/spec/latest/json-ld-api/index.html	Sun Jul 21 18:55:11 2013 +0200
@@ -189,7 +189,7 @@
       and the Convert to RDF algorithms</li>
     <li>Raise an error if a blank node is used as data type</li>
     <li>Clarify that blank node identifier are supported as value of <code>@vocab</code></li>
-    <li>When generating RDF, exclude <tref title="rdf triple">triples</tref> containing a 
+    <li>When generating RDF, exclude <tref title="rdf triple">triples</tref> containing a
       <tref>blank node</tref> <tref title="rdf predicate">predicate</tref>, unless the
       <code class="idlMemberName"><a href="#widl-JsonLdOptions-produceGeneralizedRdf">produceGeneralizedRdf</a></code>
       option is set.</li>
@@ -3549,13 +3549,13 @@
                 <li>For each key-value pair <i>s</i>-<i>n</i> in the the <i>subject</i>
                   member of <i>graph map</i> ordered by <i>s</i>, append <i>n</i>
                   to the <code>@graph</code> member of <i>node</i> after
-                  removing its <code>usages</code> member, unless <i>n</i>
-                  contains only an <code>@id</code> member.</li>
+                  removing its <code>usages</code> member, unless the only
+                  remaining member of <i>n</i> is <code>@id</code>.</li>
               </ol>
             </li>
             <li>Append <i>node</i> to <i>result</i> after removing its
-              <code>usages</code> member, unless <i>node</i>
-                  contains only an <code>@id</code> member.</li>
+              <code>usages</code> member, unless the only remaining member of
+              <i>node</i> is <code>@id</code>.</li>
           </ol>
         </li>
         <li>Return <i>result</i>.</li>
@@ -3841,9 +3841,9 @@
            <dd>The JSON-LD object or array of JSON-LD objects to perform the compaction upon or an
             <tref>IRI</tref> referencing the JSON-LD document to compact.</dd>
           <dt>JsonLdContext context</dt>
-          <dd>The context to use when compacting the <code>input</code>; 
-            it can be specified by using a <tref>JSON object</tref>, an 
-            <tref>IRI</tref>, or an array consisting of 
+          <dd>The context to use when compacting the <code>input</code>;
+            it can be specified by using a <tref>JSON object</tref>, an
+            <tref>IRI</tref>, or an array consisting of
             <tref>JSON object</tref>s and <tref>IRI</tref>s.</dd>
           <dt>optional JsonLdOptions options</dt>
           <dd>A set of options to configure the algorithms. This allows, e.g.,
@@ -3951,8 +3951,8 @@
             referencing the JSON-LD document to flatten.</dd>
           <dt>optional JsonLdContext? context</dt>
           <dd>The context to use when compacting the flattened <code>input</code>;
-            it can be specified by using a <tref>JSON object</tref>, an 
-            <tref>IRI</tref>, or an array consisting of <tref>JSON object</tref>s 
+            it can be specified by using a <tref>JSON object</tref>, an
+            <tref>IRI</tref>, or an array consisting of <tref>JSON object</tref>s
             and <tref>IRI</tref>s. If not
             passed or <tref>null</tref> is passed, the result will not be compacted
             but kept in expanded form.</dd>