Ok, happy to hear that it works now. Although it would be interesting to know what "random changes" you did. Nevertheless, have fun in using Jena.
On 29.09.2016 12:34, neha gupta wrote: > I am sorry Lorenz for late reply. It gives me the now the integer number. I > do not know even now how, but I made some random changes to the code and it > shows me the result now. > > Kind regards > > On Thu, Sep 29, 2016 at 12:33 AM, Lorenz B. < > [email protected]> wrote: > >> Obviously not, otherwise you wouldn't get a parse exception?! You can't >> have a filter outside of the query. See SPARQL specs and/or tutorials. >> >> And that's what we already told you in the other thread. >> >> You know, it's really strange that you do not answer our questions. So >> again, how can you get the exception with the literals given that your >> query does not compile and thus you can't get to the point where >> literals would have been parsed to Java objects? >> >>> SELECT *" + >>> " WHERE { ?x rdf:type ont:Team . ?x ont:team_goal >> ?goal >>> . ?x ont:team_wins ?wins} filter(?goal>10 && ?wins<?goal ) "; >>> >>> Is this syntax correct because it gives me error:* Encountered " "filter" >>> "filter "" at line 1, column 265.* >>> >> -- >> Lorenz Bühmann >> AKSW group, University of Leipzig >> Group: http://aksw.org - semantic web research center >> >>
