[Virtuoso-users] Library to parse SPARQL queries

2015-06-25 Thread Cong Kinh Nguyen
Hi everybody, I have been using Jena library to parse SPARQL query. However, Virtuoso supports a lot more than Jena. Could anyone tell me if there was any libraries for parsing SPARQL queries with extensible features (for example: support 'IN', etc.) in Virtuoso? Thanks in advance! Best

Re: [Virtuoso-users] Library to parse SPARQL queries

2015-06-25 Thread Lorena Etcheverry
Hi Kinh. I've been using this javascript SPARQL parser for a while and it's very good. http://ruben.verborgh.org/blog/2014/08/22/writing-a-sparql-parser-in-javascript/ best lorena On 06/25/2015 10:15 AM, Cong Kinh Nguyen wrote: Hi everybody, I have been using Jena library to parse SPARQL

Re: [Virtuoso-users] Library to parse SPARQL queries

2015-06-25 Thread Cong Kinh Nguyen
Hi Lorena, Thanks Lorena. Indeed, this Javascript library seems so powerful. I just had a quick look and found that the library also supported 'IN'. However, sorry to not mention in the first message, I'm actually using JAVA. Does you know a solution for this? Best regards, Kinh On 25/06/15

Re: [Virtuoso-users] Library to parse SPARQL queries

2015-06-25 Thread Lorenz Bühmann
Hello Cong, the problem is that the first query is illegal SPARQL Syntax, but Virtuoso allows such queries nevertheless. You can avoid the parsing to a Query object if you use the QueryEngineHttp class instead, which only works with the query string and does not do any syntax checks. Lorenz

Re: [Virtuoso-users] Library to parse SPARQL queries

2015-06-25 Thread Lorenz Bühmann
Apache JENA supports full SPARQL 1.1 and thus also FILTER IN clause. Lorenz Hi Lorena, Thanks Lorena. Indeed, this Javascript library seems so powerful. I just had a quick look and found that the library also supported 'IN'. However, sorry to not mention in the first message, I'm actually

Re: [Virtuoso-users] Library to parse SPARQL queries

2015-06-25 Thread Cong Kinh Nguyen
Hi Lorena, Lorenz, Thanks for your information. Sorry, I didn't check carefully the documentation about SPARQL1.1 before picking an example 'IN' in the SPARQL. Basically, we've created restful service for augmenting SPARQL queries. The queries are created by third party and sent to the rest

Re: [Virtuoso-users] Library to parse SPARQL queries

2015-06-25 Thread Cong Kinh Nguyen
Hi Lorenz, In fact, we also need to parse the queries because we need to get Expr, Triple, etc. from the queries. We've augmented the queries based on Expr and Triple. Do you know how to overcome this? Thanks a lot! Best regards, Kinh On 25/06/15 16:54, Lorenz Bühmann wrote: Hello Cong,