Re: [Virtuoso-users] Authenticating a service to use the SPARQL endpoint

2016-11-02 Thread Quentin
Hi Arun, OAuth can be done programatically but it's a little convoluted to do so. In anycase, Virtuoso supports other forms of authentication than OAuth. https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtTipsAndTricksDigestAuthAJAX You haven't mentioned what kind of applicati

[Virtuoso-users] Authenticating a service to use the SPARQL endpoint

2016-11-02 Thread Arun Balagopalan
Hi all, I am trying to build a service that uses Virtuoso DB with DBpedia data. I've got the setup to a point where the data is loaded and my client can query the Virtuoso server using the public SPARQL endpoint. Now I want to secure access to the server, ie allow only authorized applications to a

Re: [Virtuoso-users] Virtuoso 22011 Error SR026

2016-11-02 Thread Jindřich Mynarz
Hi Ivan, On Wed, Nov 2, 2016 at 12:32 PM, Ivan Mikhailov wrote: > > How do you know that FILTER (STRLEN(?literal) = 8) is executed before > SUBSTR(?literal, 8, 1) ? FILTER is placed before SUBSTR in the WHERE clause. SPARQL optimizer may (incorrectly) switch that order. > What's the full text

Re: [Virtuoso-users] Virtuoso 22011 Error SR026

2016-11-02 Thread Ivan Mikhailov
Hello Jindřich, How do you know that FILTER (STRLEN(?literal) = 8) is executed before SUBSTR(?literal, 8, 1) ? What's the full text of the query? Virtuoso translates SPARQL to SQL and uses all allowed term rewritings and other tricks trying to get highest possible speed. As a side effect, the ord

Re: [Virtuoso-users] {Disarmed} Re: Virtuoso 22011 Error SR026

2016-11-02 Thread Lorenz B.
Hello Jerven, good catch. Now, I'm wondering whether BIND has to be evaluated after the FILTER or if this isn't specified in the SPARQL standard. Or does the order in the SPARQL query matters in that case like it does for OPTIONAL clauses? Kind regards, Lorenz > Hi All, > > I think it is an is

Re: [Virtuoso-users] {Disarmed} Re: Virtuoso 22011 Error SR026

2016-11-02 Thread Jerven Tjalling Bolleman
Hi All, I think it is an issue in the way that the xpath spec is included in the SPARQL 1.1 spec, in an unclear manner. e.g. SELECT * WHERE { VALUES ?s { "abc" "abcd" "abd" "AB" "" UNDEF "AA" } BIND(substr(str(?s), 3, 1) AS ?lastChar) } Gives an error as described. B

Re: [Virtuoso-users] Virtuoso 22011 Error SR026

2016-11-02 Thread Jindřich Mynarz
Hi Lorenz, I also could not replicate the behaviour with VALUES. If that was possible, that would make diagnosing it much simpler. It seems it is caused by some side effects. The original query is at https://github.com/jindrichmynarz/vvz-to-rdf/blob/f8d421002eef19359ffd89b0d209b47e87b2ee0e/sparql

Re: [Virtuoso-users] Virtuoso 22011 Error SR026

2016-11-02 Thread Lorenz B.
Hello Jindřich, can you show the query maybe? I couldn't reproduce this with some dummy data produced by VALUES, but I don't know how you use FILTER and substring afterwards: SELECT * WHERE { { SELECT * WHERE { VALUES ?s { "abc" "abcd" "abd" } } } FILTER ( strlen(str(

Re: [Virtuoso-users] Virtuoso 22011 Error SR026

2016-11-02 Thread Jindřich Mynarz
Hi Hugh, producing a minimal test case to reproduce the behaviour is indeed the difficult part. I've been trying to do that without success. So far I'm able to replicate the behaviour only with my full database. I'll reopen this if I manage to narrow down the data required to replicate the behavio