Hi,
## following omission of ";" separator between the INSERT and DELETE .
WITH <urn:x>
DELETE { ?person <http://xmlns.com/foaf/0.1/givenName> 'Bill' } ;
INSERT { ?person <http://xmlns.com/foaf/0.1/givenName> 'William' }
WHERE
{
?person <http://xmlns.com/foaf/0.1/givenName> 'Bill'
} ;
I'm not sure what you mean by omission of ";". If I run the query using ";"
between Insert and Delete I get "Virtuoso 37000 Error SP031: SPARQL compiler:
Variable 'person' is used in the query result set but not assigned".
This query can also be found in sparql 1.1 specs:
Example 5:
An example to update the graph http://example/addresses to rename all people
with the given name "Bill" to "William".
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' }
So this is one operation and what I want is to execute 2 operations in a
transaction something like: "rename all people with the given name "Bill" to
"William" + "rename all people with the given name "William" to "Van". But as I
mentioned I get
""Virtuoso 37000 Error SP030: SPARQL compiler, line 11: syntax error at 'WITH'
before '<urn:x>'" before second operation.
On Thursday, April 3, 2014 5:53 PM, Kingsley Idehen <kide...@openlinksw.com>
wrote:
On 4/3/14 10:23 AM, Eugen F wrote:
Hi Hugh,
>
>
>I have write permissions; now that you pointed to those docs I think it's a
>bug. Consider a query from virtuoso docs duplicated:
>
>
>WITH <urn:x>
>DELETE { ?person <http://xmlns.com/foaf/0.1/givenName> 'Bill' }
>INSERT { ?person <http://xmlns.com/foaf/0.1/givenName> 'William' }
>WHERE
> {
> ?person <http://xmlns.com/foaf/0.1/givenName> 'Bill'
> } ;
Should be:
## following omission of ";" separator between the INSERT and DELETE
.
WITH <urn:x>
DELETE { ?person <http://xmlns.com/foaf/0.1/givenName> 'Bill' } ;
INSERT { ?person <http://xmlns.com/foaf/0.1/givenName> 'William' }
WHERE
{
?person <http://xmlns.com/foaf/0.1/givenName> 'Bill'
} ;
>
>WITH <urn:x>
>DELETE { ?person <http://xmlns.com/foaf/0.1/givenName> 'Bill' }
>INSERT { ?person <http://xmlns.com/foaf/0.1/givenName> 'William' }
>WHERE
> {
> ?person <http://xmlns.com/foaf/0.1/givenName> 'Bill'
> }
>
>
Ditto.
-- 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
------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users