W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2009

INSERT/DELETE Update syntax

From: Steve Harris <steve.harris@garlik.com>
Date: Thu, 8 Oct 2009 13:17:05 +0100
Message-Id: <BD315460-58A8-46BF-8324-FB5D057715A3@garlik.com>
To: "public-rdf-dawg@w3.org Group" <public-rdf-dawg@w3.org>
Reflecting on the update syntax I'm just wondering why the syntax  
looks like:

INSERT DATA INTO <uri> {
   ... some triples ...
}

rather than:

INSERT {
    GRAPH <uri> { ... some triples ... }
}

which seems like a more obvious parallel to SPARQL 1.0, and allows  
inserts to multiple graphs in a single insert block, with GRAPH you  
would be able to write:

INSERT {
    GRAPH <uri1> { <x> <y> ?a }
    GRAPH <uri2> { <a> <b> ?b }
}
WHERE {
    ?a <foo> ?b
}

which would be less verbose than using the draft syntax, and arguably  
easier to understand. c.f.

INSERT DATA INTO <uri1> {
    <x> <y> ?a
}
WHERE {
    ?a <foo> ?b
}
INSERT DATA INTO <uri2> {
    <a> <b> ?b
}
WHERE {
    ?a <foo> ?b
}

- Steve

-- 
Steve Harris
Garlik Limited, 2 Sheen Road, Richmond, TW9 1AE, UK
+44(0)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, 8 October 2009 12:17:36 GMT

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