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.


[1] Full details:

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:58 UTC