Spaqrl update not working?

2 views
Skip to first unread message

Maatary Okouya

unread,
Sep 23, 2014, 2:28:56 AM9/23/14
to sta...@clarkparsia.com
I keep on trying to insert some data but it does not work? what am i doing wrong ? I just copy the example online: 

PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX ns: <http://example.org/ns#> INSERT DATA { GRAPH <http://example/bookStore> { <http://example/book1> ns:price 42 } }

or even something simpler


I keep on getting the following error: 

Error!

Encountered " "limit" "limit "" at line 1, column 56.
Was expecting one of:
    <EOF> 
    ";" ...

Markus Stocker

unread,
Sep 23, 2014, 2:46:50 AM9/23/14
to Stardog
Hi,
I suspect you are trying this via the WebConsole. Try on the command line, e.g.

$ bin/stardog query test "Insert data {<http://ex.com/me> a
<http://ex.com/you>}"

To me it looks like limit is added to a user query by the WebConsole.
The WebConsole does support adding data files, but I guess not update
queries.

Cheers,

Markus

>
> --
> -- --
> You received this message because you are subscribed to the C&P "Stardog"
> group.
> To post to this group, send email to sta...@clarkparsia.com
> To unsubscribe from this group, send email to
> stardog+u...@clarkparsia.com
> For more options, visit this group at
> http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to stardog+u...@clarkparsia.com.

Mike Grove

unread,
Sep 23, 2014, 6:22:55 AM9/23/14
to stardog
On Tue, Sep 23, 2014 at 2:46 AM, Markus Stocker <markus....@gmail.com> wrote:
Hi,

On Tue, Sep 23, 2014 at 9:28 AM, Maatary Okouya <maatar...@gmail.com> wrote:
> I keep on trying to insert some data but it does not work? what am i doing
> wrong ? I just copy the example online:
>
> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX ns:
> <http://example.org/ns#> INSERT DATA { GRAPH <http://example/bookStore> {
> <http://example/book1> ns:price 42 } }
>
> or even something simpler
>
> Insert data {<http://ex.com/me> a <http://ex.com/you>}
>
> I keep on getting the following error:
>
> Error!
>
> Encountered " "limit" "limit "" at line 1, column 56.
> Was expecting one of:
>     <EOF>
>     ";" ...

I suspect you are trying this via the WebConsole. Try on the command line, e.g.

$ bin/stardog query test "Insert data {<http://ex.com/me> a
<http://ex.com/you>}"

To me it looks like limit is added to a user query by the WebConsole.
The WebConsole does support adding data files, but I guess not update
queries.

As of 2.2.1 it supports them.

Cheers,

Mike

Maatary Okouya

unread,
Sep 23, 2014, 11:26:15 AM9/23/14
to sta...@clarkparsia.com
Ok thax

Maatary Okouya

unread,
Sep 23, 2014, 11:32:31 AM9/23/14
to sta...@clarkparsia.com
A/

Upon updating to 2.2.1 i have noticed a bug. 


Which list the databases available in the the store, if one click on the database to see it spec or configuration it does not work. I got redirected to the following page http://localhost:5820/#/databases/chap1DB which shows nothing !!!

However if i type http://localhost:5820/chap1DB i get redirected to http://localhost:5820/chap1DB#!/webconsole which has the view on the configuration of the database. 


B/
Finally, just to be sure, moving from one version of stardog to the other is just a matter of replacing the executable and the key in the home directoy, leaving the database as it is ?

Maatary Okouya

unread,
Sep 23, 2014, 11:40:06 AM9/23/14
to sta...@clarkparsia.com
Mike, 

i have installed stardog 2.2.1 and the sparql update does not work on the webconsole


On Tuesday, September 23, 2014 6:22:55 AM UTC-4, Michael Grove wrote:

Edgar Rodriguez

unread,
Sep 23, 2014, 11:47:53 AM9/23/14
to sta...@clarkparsia.com
Sometimes the application gets cached in the browser, specially in Chrome that does a very aggressive caching. You can try deleting the cache or using the web console in incognito/private mode to try it out and see if that works.

There are some improvements on the next release trying to avoid these issues.

Cheers,
Edgar

Maatary Okouya

unread,
Sep 23, 2014, 12:14:07 PM9/23/14
to sta...@clarkparsia.com
Thanks Mark. 

However i notice that sparql update of multiple line does not work. 

~ maatary$ stardog query chap1DB \

> "

> PREFIX dc: <http://purl.org/dc/elements/1.1/>

> INSERT DATA

> {

> <http://example/book1> dc:title "A new book" ;

> dc:creator "A.N.Other" .

> }

> "

Not a valid query string or a file: PREFIX dc: <http://purl.org/dc/elements/1.1/>


INSERT DATA

{

<http://example/book1> dc:title A

Maatary Okouya

unread,
Sep 23, 2014, 12:15:39 PM9/23/14
to sta...@clarkparsia.com
This kinda frustrating. In my use case i need to update data quite often. What is the proper way to do that with stardog that is w3c compliant ? Other what is the custom way ?

Mike Grove

unread,
Sep 23, 2014, 12:49:57 PM9/23/14
to stardog
On Tue, Sep 23, 2014 at 12:15 PM, Maatary Okouya <maatar...@gmail.com> wrote:
This kinda frustrating. In my use case i need to update data quite often. What is the proper way to do that with stardog that is w3c compliant ? Other what is the custom way ?

You're not correctly escaping your quotations in your command line invocation.  That has nothing to do with Stardog, or w3c compliance, it's simply how your shell works.

Cheers,

Mike

Maatary Okouya

unread,
Sep 23, 2014, 2:00:15 PM9/23/14
to sta...@clarkparsia.com
is it? please let me know what i'm doing wrong. That would help.

Maatary Okouya

unread,
Sep 23, 2014, 2:03:40 PM9/23/14
to sta...@clarkparsia.com
Hi Edgar, thank you for the answer. The sparql update works fine in incognito mode. 

Mike Grove

unread,
Sep 24, 2014, 6:04:15 AM9/24/14
to stardog
On Tue, Sep 23, 2014 at 2:00 PM, Maatary Okouya <maatar...@gmail.com> wrote:
is it? please let me know what i'm doing wrong. That would help.

Reply all
Reply to author
Forward
0 new messages