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

Re: Comments on SPARQL 1.1. Update (2)

From: Alexandre Passant <alexandre.passant@deri.org>
Date: Tue, 31 Aug 2010 13:50:13 +0100
Cc: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <7E2161F8-1E45-4616-996E-BAC1023E800A@deri.org>
To: Andy Seaborne <andy.seaborne@epimorphics.com>
Hi,

On 31 Aug 2010, at 13:26, Andy Seaborne wrote:

> 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).

I've looked at the QUERY doc, that indeed should be clause instead of directive (you're using SELECT clause, WHERE clause, etc.)
I've updated it, and changed the second part by

"""
The GRAPH <uri> clause ... the <code>INSERT</code> and <code>DELETE</code> clauses apply ...
"""

> 
> 
> [[
> 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.
> 

Is your example complete ? I cannot see the relationship with the WITH.

Alex.

> 	Andy
> 

--
Dr. Alexandre Passant
Digital Enterprise Research Institute
National University of Ireland, Galway
:me owl:sameAs <http://apassant.net/alex> .
Received on Tuesday, 31 August 2010 12:50:47 GMT

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