Hi,

This would work if all operations are in same graph since all operations after 
"with <:graph>" are done in that graph, but if if i want to do one transaction 
over multiple graphs
then using multiple "with" keywords results in an error and I don't think it 
should be the case.
Of course this can be solved by specifying the graph in each insert/delete as I 
found out, but it looks much more complicated than it should. 



On Saturday, April 5, 2014 12:23 AM, Kingsley Idehen <kide...@openlinksw.com> 
wrote:
 
On 4/4/14 1:59 PM, Kingsley Idehen wrote:

On 4/4/14 2:52 AM, Eugen F wrote:
>
>PREFIX foaf: <http://xmlns.com/foaf/0.1/> WITH <http://example/addresses> 
>DELETE { ?person foaf:givenName 'Bill' }
INSERT { ?person foaf:givenName 'William' }
WHERE { ?person foaf:givenName 'Bill' } 
>
>
>PREFIX foaf: <http://xmlns.com/foaf/0.1/> WITH GRAPH 
><http://example/addresses> DELETE { ?person foaf:givenName 'Bill' } 
WHERE { ?person foaf:givenName 'Bill' } ;
 
INSERT { ?person foaf:givenName 'William' } 
Sorry, it should be as follows, in regards to an Update (INSERT and then 
DELETE):


PREFIX foaf: <http://xmlns.com/foaf/0.1/> WITH GRAPH <http://example/addresses> 
INSERT { ?person foaf:givenName 'William' }
WHERE { ?person foaf:givenName 'Bill' } ;
 
DELETE { ?person foaf:givenName 'Bill' } 
WHERE { ?person foaf:givenName 'Bill' }  



--  Regards, Kingsley Idehen          
Founder & CEO 
OpenLink Software     
Company Web: http://www.openlinksw.com Personal Weblog: 
http://www.openlinksw.com/blog/~kidehen Twitter Profile: 
https://twitter.com/kidehen Google+ Profile: 
https://plus.google.com/+KingsleyIdehen/about LinkedIn Profile: 
http://www.linkedin.com/in/kidehen 

------------------------------------------------------------------------------


_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to