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

Re: Do we need DELETE and CLEAR?

From: Andy Seaborne <andy.seaborne@talis.com>
Date: Thu, 11 Mar 2010 10:34:28 +0000
Message-ID: <4B98C734.8000206@talis.com>
To: Steve Harris <steve.harris@garlik.com>
CC: "public-rdf-dawg@w3.org Group" <public-rdf-dawg@w3.org>
It's not been a support issue with the released update language 
documented in the submission.

Style-wise, verb-rich does not worry me.  The verbs should have a 
logical categorization, separating deleting triples and managing graphs say.

In one design, theer was "REMOVE" for "DELETE DATA" - that did not 
receive much enthusiasm.

On 11/03/2010 08:29, Steve Harris wrote:
> Observation about SPARQL Update syntax:
> SPARQL Update is quite verb-rich, making it (IMHO) harder to learn the
> syntax, and it seems to me that one of CLEAR and DELETE is redundant now:
> DELETE DEFAULT # see previous mail

I find that confusing usage - is that CLEAR or DROP?

You explain below it's CLEAR but reading it in natural language, I would 
have gone for a reading of get rid of the GRAPH (i.e. DROP).

It is useful to have an explicit "delete everything" operation (rather 
than say "DELETE WHERE { ?s ?p ?o }" both for simple implementations and 
also the application writer because it's quite a major thing to do.

CLEAR is an abbreviation of the abbreviated syntax (half :-).


Identifying the DEFAULT graph seems an interesting thing to do.


> DELETE DATA { <s> <p> <o> . }
> DELETE WHERE { <s> <p> ?o . }
> DELETE { ?o <p> <s> . } WHERE { <s> <p> ?o . }
> The first one is equivalent to
> DELETE WHERE { GRAPH <a> { ?s ?p ?o . } }
> which is perhaps more evidence that two verbs don't make it clearer.
> We do still need DROP GRAPH, as that does something slightly different.
> - Steve
Received on Thursday, 11 March 2010 10:35:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:02 UTC