Update fromRdf algorithm to not emit nodes having only @id.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sat, 20 Jul 2013 15:22:38 -0700
changeset 1796 578e37b94fe3
parent 1795 4b707531e8c8
child 1797 bd6069a0f277
Update fromRdf algorithm to not emit nodes having only @id.
This is for part of http://json-ld.org/minutes/2013-07-16/#resolution-2 which should be in issue #258.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Sat Jul 20 18:00:59 2013 -0400
+++ b/spec/latest/json-ld-api/index.html	Sat Jul 20 15:22:38 2013 -0700
@@ -3549,11 +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.</li>
+                  removing its <code>usages</code> member, unless <i>n</i>
+                  contains only an <code>@id</code> member.</li>
               </ol>
             </li>
             <li>Append <i>node</i> to <i>result</i> after removing its
-              <code>usages</code> member.</li>
+              <code>usages</code> member, unless <i>node</i>
+                  contains only an <code>@id</code> member.</li>
           </ol>
         </li>
         <li>Return <i>result</i>.</li>