Fix categories detele SPARQL clause
authorStanislav Malyshev <smalyshev@gmail.com>
Tue, 27 Aug 2019 23:18:30 +0000 (16:18 -0700)
committerStanislav Malyshev <smalyshev@gmail.com>
Tue, 27 Aug 2019 23:19:31 +0000 (16:19 -0700)
Bug: T228348
Change-Id: I87b3b5831e31dc619b5eefb7854d3223acd605fc

maintenance/categoryChangesAsRdf.php
tests/phpunit/data/categoriesrdf/delete.sparql
tests/phpunit/data/categoriesrdf/edit.sparql
tests/phpunit/data/categoriesrdf/move.sparql

index 1d85dcc..c4f175f 100644 (file)
@@ -46,6 +46,7 @@ SPARQL;
 DELETE {
 ?category ?x ?y
 } WHERE {
+   ?category ?x ?y
    VALUES ?category {
      %s
    }
@@ -62,6 +63,7 @@ DELETE {
 } INSERT {
 %s
 } WHERE {
+  ?category ?x ?y
    VALUES ?category {
      %s
    }
index 043d9c3..77fa4a9 100644 (file)
@@ -2,6 +2,7 @@
 DELETE {
 ?category ?x ?y
 } WHERE {
+   ?category ?x ?y
    VALUES ?category {
      <http://acme.test/wiki/Category:Test> <http://acme.test/wiki/Category:Test_2>
    }
index ae2e300..1970d33 100644 (file)
@@ -2,6 +2,7 @@
 DELETE {
 ?category ?x ?y
 } WHERE {
+   ?category ?x ?y
    VALUES ?category {
      <http://acme.test/wiki/Category:Changed_category>
    }
index d22bc47..3ee38df 100644 (file)
@@ -2,6 +2,7 @@
 DELETE {
 ?category ?x ?y
 } WHERE {
+   ?category ?x ?y
    VALUES ?category {
      <http://acme.test/wiki/Category:Test> <http://acme.test/wiki/Category:MovedTo> <http://acme.test/wiki/Category:Test_2> <http://acme.test/wiki/Category:Test_3> <http://acme.test/wiki/Category:Test_4>
    }