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

Re: [ACTION-33] Trying to sort the SPARQL/Update issues.

From: Kjetil Kjernsmo <Kjetil.Kjernsmo@computas.com>
Date: Thu, 28 May 2009 13:39:37 +0200
To: public-rdf-dawg@w3.org
Message-Id: <200905281339.37950.Kjetil.Kjernsmo@computas.com>
On Wednesday 27 May 2009 17:25:48 Seaborne, Andy wrote:
> > I think INSERT INTO <uri> is very important, but I don't know if there
> > needs
> > to be support for multiple graphs.
>
> Agreed - the whole "[INTO <uri>]*" thing is over doing it but it is simple.

Errr, actually, the first use of insertion of different triples into different 
graphs jumped up and bit us today... :-)

We have a batch edit function in the app to change multiple properties of many 
resources in one operation. Up to now, we have had one query for each 
resource, but today we found that it results in too many OPTIONALs, and the 
query takes forever, so we decided to split it up by property instead, which 
results in much more manageable queries. However, the instance data that's 
manipulated here comes from many different archives, and each of them is 
given a graph name.

So there we have the use case... :-) Whether we should accommodate for it is 
of course an open question.

Then, the problem is which graph the triples should be inserted into. In our 
case, they should be inserted into only the graph that allready contains the 
subject of the triple. I don't know if this it solveable today with GRAPH in 
the WHERE clause, or if this introduces additional problems. 

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer / SPARQL F&R Editor
Mobile: +47 986 48 234
Email: kjetil.kjernsmo@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 
1001
Received on Thursday, 28 May 2009 11:40:15 GMT

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