On 11/8/14 8:56 PM, Erich Bremer wrote:
Hi Kingsley,
​
Using sparql-auth and executing this on a vanilla V7.1 instance:
prefix foaf: <http://xmlns.com/foaf/>
with <http://crux.ebremer.com> insert data
{<http://www.ebremer.com/foaf.rdf> foaf:lastName "Bremer"};
with <http://crux.ebremer.com> insert data
{<http://www.ebremer.com/foaf.rdf> foaf:firstName "Erich"};
This will work.

prefix foaf: <http://xmlns.com/foaf/>
insert data
{ graph <http://crux.ebremer.com> {<http://www.ebremer.com/foaf.rdf> foaf:lastName 
"Bremer" }};

insert data {graph <http://crux.ebremer.com>
{<http://www.ebremer.com/foaf.rdf> foaf:firstName "Erich"}};


WITH is setting statement block. Whereas the revision above executes many 
statements delimited by semi-colons.


Kingsley


​
yields:
Virtuoso 37000 Error SP030: SPARQL compiler, line 5: syntax error at 'with'
before '<http://crux.ebremer.com>'
SPARQL query:
define sql:big-data-const 0
#output-format:text/html
define sql:signal-void-variables 1 prefix foaf: <http://xmlns.com/foaf/>
with <http://crux.ebremer.com> insert data
{<http://www.ebremer.com/foaf.rdf> foaf:lastName "Bremer"};
with <http://crux.ebremer.com> insert data
{<http://www.ebremer.com/foaf.rdf> foaf:firstName "Erich"};
​
However, either with-insert works fine by itself.  - Erich
​
​
​
On Sat, 08 Nov 2014 19:40:04 -0500
   Kingsley Idehen <kide...@openlinksw.com> wrote:
On 11/8/14 6:25 PM, Erich Bremer wrote:
Hi,
Is Virtuoso supposed to be able to handle multiple
SPARQL update commands
such as a with-delete-insert separated with semi-colons
via sparql-auth
endpoint?  - Erich

Yes it is. What's failing?

--
Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2:
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
Personal WebID:
http://kingsley.idehen.net/dataspace/person/kidehen#this


​
​

------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
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 1: http://kidehen.blogspot.com
Personal Weblog 2: 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
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to