Hi Erich, See also the following documentation on Executing Queries Combined in Single or Multiple Statements:
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtTipsAndTricksGuideSPARQLSingleMultipleExecution
Have you been able to use the "with" construct for executing multiple
statements with other stores ?
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
> On 9 Nov 2014, at 12:05, Kingsley Idehen <[email protected]> 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 <[email protected]> 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
>> [email protected]
>> 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
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------
_______________________________________________ Virtuoso-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/virtuoso-users
