fixed a few bugs in the UpdateList algorithm ldpatch
authorPierre-Antoine <pchampin@liris.cnrs.fr>
Fri, 21 Nov 2014 12:58:43 +0100
branchldpatch
changeset 902 f6bc6c22fd2b
parent 901 caf4bc0d15f0
child 903 0574b13034e2
fixed a few bugs in the UpdateList algorithm
ldpatch.html
--- a/ldpatch.html	Fri Nov 21 11:23:48 2014 +0100
+++ b/ldpatch.html	Fri Nov 21 12:58:43 2014 +0100
@@ -603,7 +603,7 @@
                 Remove from the <a>target graph</a> the arcs (<var>spost</var>, <var>ppost</var>, <var>opost</var>).
               </li>
               <li>
-                Let <var>elt</var> be the object of the triple (<var>spost</var>, <code>rdf:first</code>, ?). Remove from the <a>target graph</a> the arc (<var>spost</var>, <code>rdf:first</code>, <var>elt</var>). If <var>elt</var> is a blank node, apply the <a>Cut</a> operation to <var>elt</var>.
+                Let <var>elt</var> be the object of the triple (<var>opost</var>, <code>rdf:first</code>, ?). Remove from the <a>target graph</a> the arc (<var>opost</var>, <code>rdf:first</code>, <var>elt</var>). If <var>elt</var> is a blank node, apply the <a>Cut</a> operation to <var>elt</var>.
               </li>
               <li>
                 Set <var>spost</var> to <var>opost</var>, <var>ppost</var> to <code>rdf:rest</code> and <var>opost</var> to the object of the triple (<var>opost</var>, <code>rdf:rest</code>, ?) from the <a>target graph</a>.
@@ -631,7 +631,10 @@
                     Add all the arcs resulting from the parsing of <var>col</var> to the target graph, let <var>fst</var> be the first node of the corresponding new collection, and <var>lst</var> the last node of that collection (excluding <code>rdf:nil</code>).
                   </li>
                   <li>
-                    Add in the <a>target graph</a> the arcs (<var>spre</var>, <var>ppre</var>, <var>fst</var>) and (<var>lst</var>, <var>ppost</var>, <var>opost</var>).
+                    Remove from the <a>target graph</a> the arc (<var>lst</var>, <code>rdf:rest</code>, <code>rdf:nil</code>).
+                  </li>
+                  <li>
+                    Add in the <a>target graph</a> the arcs (<var>spre</var>, <var>ppre</var>, <var>fst</var>) and (<var>lst</var>, <code>rdf:rest</code>, <var>opost</var>).
                   </li>
                 </ul>
               </li>