On 11/10/14 9:57 AM, Erich Bremer wrote:
Thanks Kingsley, I can write my inserts in this style for what I need to do. But, I wanted to try the WITH option out since most of what I do these days involves quads. - E

Erich,

This is actually an implementation bug. We are working on a fix, which should be completed shortly.

Kingsley
​
​
On Sun, 09 Nov 2014 07:05:15 -0500
 Kingsley Idehen <kide...@openlinksw.com> wrote:
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


​
​



--
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

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to