Little fix to the subject map generation algorithm
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 17 May 2012 22:13:20 +0800
changeset 655 45252a1126a1
parent 654 238a1f698630
child 656 e993b16442ff
Little fix to the subject map generation algorithm

Subject references were added multiple times to the parent before, fixed it.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Thu May 17 21:46:17 2012 +0800
+++ b/spec/latest/json-ld-api/index.html	Thu May 17 22:13:20 2012 +0800
@@ -1846,8 +1846,8 @@
         property does not exist, set <em>id</em> to a <tref>blank node</tref> identifer created by the
         <a href="#generate-blank-node-identifier">Generate Blank Node Identifier</a> algorithm; otherwise use the value of the <code>@id</code>
         property as <em>id</em>.</li>
-      <li>If <em>parent</em> is not <tref>null</tref>, add create new object with an <code>@id</code> property whose value equals <em>id</em> and
-        add it to <em>parent</em>.</li>
+      <li>If <em>parent</em> is not <tref>null</tref>, create new object with an <code>@id</code> property whose value equals <em>id</em> and
+        add it to <em>parent</em> if it doesn't exist yet in parent or the <em>list</em> flag is set to <code>true</code>.</li>
       <li>If there already exists a <em>id</em> property in the <tref>JSON object</tref> of the <em>graph</em> property of <em>subjectMap</em>, set
         <em>subject</em> to the value of that property.</li>
       <li>Otherwise, create a new object with an <code>@id</code> property whose value equals <em>id</em> and add it as value of the <em>id</em>