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

WITH <x> -> INSERT|DELETE... USING *NAMED* <x>

From: Eric Prud'hommeaux <eric@w3.org>
Date: Sat, 26 Nov 2011 10:12:09 -0500
To: public-rdf-dawg@w3.org
Message-ID: <20111126151208.GB29120@w3.org>
http://www.w3.org/2009/sparql/docs/update-1.1/#deleteInsert

[[
WITH <g1> INSERT { x y z } DELETE { a b c } WHERE { ... }

Is considered equivalent to:

INSERT { GRAPH <g1> { x y z } } DELETE { GRAPH <g1> { a b c } } USING <g1> WHERE { ... }
]]

should that be "USING NAMED <g1>" ?
                      ^^^^^

Editorial nit:
[[
If no data is to be inserted, then no graph will be created, even if applying the operation to a different dataset would result in data being inserted.
]]

I don't see the need for the additional clause about "applying the operation to a different dataset". Wouldn't any op which would create a graph in some other dataset demand the graph's (possibly prior) existence in the target dataset?


[0]     Modify                     ::= ( 'WITH' IRIref )? ( DeleteClause InsertClause? | InsertClause ) UsingClause* 'WHERE' GroupGraphPatternNoSub

INSERT { GRAPH <g1> { x y z } } DELETE { GRAPH <g1> { a b c } } USING <g1> WHERE { ... }

-- 
-ericP
Received on Saturday, 26 November 2011 15:12:41 GMT

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