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

Do we need DELETE and CLEAR?

From: Steve Harris <steve.harris@garlik.com>
Date: Thu, 11 Mar 2010 08:29:19 +0000
Message-Id: <984200C7-9150-4242-B7C5-8D4C00FE4817@garlik.com>
To: "public-rdf-dawg@w3.org Group" <public-rdf-dawg@w3.org>
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 GRAPH <a>
DELETE DEFAULT                                     # see previous mail
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

-- 
Steve Harris, Garlik Limited
2 Sheen Road, Richmond, TW9 1AE, UK
+44 20 8973 2465  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 Thursday, 11 March 2010 08:29:47 GMT

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