W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2009

Confusing SPARQL/Update request

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Thu, 29 Oct 2009 13:52:11 +0000
To: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-ID: <B6CF1054FDC8B845BF93A6645D19BEA3694058EAA0@GVW1118EXC.americas.hpqcorp.net>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:40 GMT