On 4/8/14 3:48 AM, Eugen F wrote:
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:Sorry, it should be as follows, in regards to an Update (INSERT and then DELETE):On 4/4/14 2:52 AM, Eugen F wrote:PREFIX foaf:<http://xmlns.com/foaf/0.1/> <http://xmlns.com/foaf/0.1/> WITH<http://example/addresses> <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/> <http://xmlns.com/foaf/0.1/> WITH GRAPH<http://example/addresses> <http://example/addresses> DELETE { ?person foaf:givenName 'Bill' } WHERE { ?person foaf:givenName 'Bill' };INSERT { ?person foaf:givenName 'William' }PREFIX foaf:<http://xmlns.com/foaf/0.1/> <http://xmlns.com/foaf/0.1/> WITH GRAPH<http://example/addresses> <http://example/addresses> INSERT { ?person foaf:givenName 'William' } WHERE { ?person foaf:givenName 'Bill' };DELETE { ?person foaf:givenName 'Bill' }WHERE { ?person foaf:givenName 'Bill' }
Multiple Graphs : PREFIX foaf:<http://xmlns.com/foaf/0.1/> <http://xmlns.com/foaf/0.1/> INSERT { GRAPH ?g {?person foaf:givenName 'William'} } WHERE { GRAPH ?g {?person foaf:givenName 'Bill'} };DELETE { GRAPH ?g {?person foaf:givenName 'Bill' } }
WHERE { GRAPH ?g {?person foaf:givenName 'Bill'} }
-- Regards, Kingsley Idehen Founder & CEO OpenLink Software Company Web:http://www.openlinksw.com <http://www.openlinksw.com/> Personal Weblog:http://www.openlinksw.com/blog/~kidehen <http://www.openlinksw.com/blog/%7Ekidehen> 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 listVirtuoso-users@lists.sourceforge.net <mailto:Virtuoso-users@lists.sourceforge.net>https://lists.sourceforge.net/lists/listinfo/virtuoso-users
-- 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
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ 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