Confusing SPARQL/Update request

From a recent user report: [1]

This update request

  DELETE FROM  <example:store> { ?s ?p ?o } WHERE { ?s ?p ?o }

does not clear the graph <example:store>  as might be expected from the DELETE syntax. The pattern matches against the default graph, not the named graph in the FROM clause but the syntax is confusingto the point of leading the application writer astray.

This would also matter for a shorthand version:

  DELETE FROM <example:store> { ?s ?p ?o }

What's the implicit WHERE clause here?  Use of GRAPH in the template might be a bit less confusing but I don't think it is sufficiently so.

 Andy

[1] Full details:
    http://tech.groups.yahoo.com/group/jena-dev/message/41915

Received on Thursday, 29 October 2009 13:53:08 UTC