Hi! I'm using the virtuoso SPARUL implementation to manage the RDF-data from remote. I ran into a problem when trying to remove and insert data in a single query which I think is due to the SPARUL implementation in virtuoso. I'm running the example query 2.c) from: http://jena.hpl.hp.com/~afs/SPARQL-Update.html. I added "FROM GRAPH <http://example/bookStore>" since it doesnt work without that.
Here is the result from virtuoso: 37000 Error SP031: SPARQL compiler: Variable 'v' is used in the query result set but not assigned SPARQL query: define output:valmode "LONG" PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> DELETE FROM GRAPH <http://example/bookStore> { ?book ?p ?v } WHERE { ?book dc:date ?date . FILTER ( ?date < "2000-01-01T00:00:00"^^xsd:dateTime ) }
From my point of view, it is ok if ?v is not assigned. This should
then mean that all triples matching the (?book, ?p)-bindings should be removed independent of the value of the object. Best Regards, Mikael