W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2010

Comments on SPARQL 1.1. Update (2)

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 31 Aug 2010 13:26:23 +0100
Message-ID: <4C7CF4EF.1000805@epimorphics.com>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
4.1.3 DELETE/INSERT

[[
Following the optional WITH clause are the INSERT
   and DELETE directives.
]]
[[
The GRAPH <uri> clause ... the directive applies to the graph specified 
by the WITH clause ...
]]

What's the difference between a clause and a directive?  What is a 
directive? (in N3, @prefix and @base are directives).


[[
To illustrate the use of the WITH clause, an operation of the general form:

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 { ... }

Note that WITH will be ignored for any section that stipulates a GRAPH 
or for the entire WHERE clause if a USING is present.
]]

The last sentence isn't right:

INSERT { <a> <b> <c> GRAPH <g1> { x y z } }

stipulates a GRAPH, it just isn't the whole pattern.  WITH applies to 
the <a> <b> <c> part.

	Andy
Received on Tuesday, 31 August 2010 12:27:02 GMT

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