Re: [Dbpedia-discussion] Query parsing error

2013-03-01 Thread Martynas Jusevičius
Hey Amir, how did you come up with this syntax? OPTION is not part if standard SPARQL. Martynas On Mar 1, 2013 9:44 AM, "Amir Hossein Jadidinejad" wrote: > Hi, > check the following function: > public boolean isConceptType(String uri, String ctype) { > uri = "<" + uri + ">"; >

Re: [Dbpedia-discussion] Query parsing error

2013-03-01 Thread Andrea Di Menna
Ciao Amir, As far as I understood the transitive option is a Virtuoso extension, that means it is not defined in SPARQL 1.1 (used by Jena). That means Jena will fail with a parser exception when trying to parse your query. You might want to read [1] which could have a solution for you. Regards And

[Dbpedia-discussion] Query parsing error

2013-03-01 Thread Amir Hossein Jadidinejad
Hi, check the following function:     public boolean isConceptType(String uri, String ctype) {     uri = "<" + uri + ">";     boolean results = false;     String queryString = "PREFIX rdfs: \n" +     "PREFIX dbpedia-owl:

[Dbpedia-discussion] Query parsing error

2013-02-28 Thread Amir Hossein Jadidinejad
Hi, check the following function:     public boolean isConceptType(String uri, String ctype) {         uri = "<" + uri + ">";         boolean results = false;         String queryString = "PREFIX rdfs: \n" +                 "PREFIX dbpedia-owl: