diff -r f2c2c80a49f7 -r 5d2621f71f39 server/src/app/Libraries/Sparql/SparqlClient.php --- a/server/src/app/Libraries/Sparql/SparqlClient.php Thu Sep 22 15:34:10 2016 +0200 +++ b/server/src/app/Libraries/Sparql/SparqlClient.php Thu Sep 22 15:42:12 2016 +0200 @@ -130,15 +130,19 @@ public function deleteWhere($whereClauses, string $graphUri = null) { - if(is_array($whereClause)) { - $whereClause = implode(" .", $whereClause); + if(empty($whereClauses)) { + return; } + if(is_array($whereClauses)) { + $whereClauses = implode(" .", $whereClauses); + } + + $query = "DELETE { ?s ?p ?o } WHERE { $whereClauses }"; if($graphUri) { - $whereClause = "GRAPH <$graphUri> { $whereClause }"; + $query = "WITH <$graphUri> $query"; } - $query = "DELETE WHERE { $whereClause }"; // doc : http://rdf4j.org/doc/4/articles/REST-API/transaction-operations.docbook?view // cf. bug : https://openrdf.atlassian.net/browse/SES-2295