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

Re: SPARQL Update feature

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 13 Jul 2010 13:25:06 +0100
Cc: Andy Seaborne <andy.seaborne@talis.com>, SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <D28699AA-050A-4347-9455-398E5EA41FFE@garlik.com>
To: Alexandre Passant <alexandre.passant@deri.org>
On 2010-07-13, at 11:46, Alexandre Passant wrote:

[ snip, all looks good to me ]

> We initially thought that ALL includes also the default graph, but that will be a problem for removing all named graphs but not the default one (not sure that will happen so often, yet)
> So better to have ALL = all named graphs, which leads to the following to clean the store
> or
> What do you think ? 

I prefer DROP/CLEAR ALL does everything, including the default graph. "ALL" implies that to me.

If I really want to leave the named graph, and CLEAR the others I can do that with:

DELETE WHERE { GRAPH ?g { ?x ?y ?z } }

Admittedly there's no DROP equivalent, for graphs that don't do empty graph culling, but that's well into corner cases AFAIC.

Otherwise, you could add a "GRAPH *" like syntax, meaning all named graphs, but I predict that users would confuse GRAPH * and ALL a lot.

- Steve

Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Tuesday, 13 July 2010 12:25:41 UTC

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