Re: filter error in query
On 29/09/16 13:07, neha gupta wrote: Thank you Lorenz, yes I am really enjoying learning Jena and also enjoying this supportive group. However, still I did not receive any guidance from my earlier question. *how can we add/sum data property values (newly entered) with previous ones?* See the thread for the first time you asked this around 2016-09-11. "Calculating numeric values of Data property in Ontology" On Thu, Sep 29, 2016 at 4:10 AM, Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> wrote: 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. < buehm...@informatik.uni-leipzig.de> 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 "filter" "filter "" at line 1, column 265.* -- Lorenz Bühmann AKSW group, University of Leipzig Group: http://aksw.org - semantic web research center
Re: filter error in query
Thank you Lorenz, yes I am really enjoying learning Jena and also enjoying this supportive group. However, still I did not receive any guidance from my earlier question. *how can we add/sum data property values (newly entered) with previous ones?* On Thu, Sep 29, 2016 at 4:10 AM, Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> wrote: > 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. < > > buehm...@informatik.uni-leipzig.de> 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 >>> > >>> 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 > >> > >> > >
Re: filter error in query
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. < > buehm...@informatik.uni-leipzig.de> 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>> >>> 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 >> >>
Re: filter error in query
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. < buehm...@informatik.uni-leipzig.de> 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 > > > 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 > >
Re: filter error in query
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 > 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
filter error in query
SELECT *" + " WHERE { ?x rdf:type ont:Team . ?x ont:team_goal ?goal . ?x ont:team_wins ?wins} filter(?goal>10 && ?wins