Hi,

while attempting to remove some triples, I noticed that VALUES is not supported, here an example:

DELETE WHERE {
  VALUES (?value) { ( '10' ) ( '20' ) ( '30' ) }
  ?s ?p ?o .
  ?s _:prop ?value .
}

although SELECT works with multiple values:

SELECT * WHERE {
  VALUES (?value) { ( '10' ) ( '20' ) ( '30' ) }
  ?s ?p ?o .
  ?s _:prop ?value .
}

I would assume VALUES is not supported by SPARQL 1.1, but at least DELETE using the |IN| function in a |FILTER| clause should be supported according to example 6 from https://www.w3.org/TR/2013/REC-sparql11-update-20130321/

DELETE WHERE {
  ?s ?p ?o .
  ?s _:prop ?value .
  FILTER(?value IN("10","20","30"))
}

Regards,
Sorin


Reply via email to