Hello Damian and Rob, @Damian:
Thanks, I am satisfied with your answer. @Rob: The latest version (2.9.0), yes I am trying to build the query programmatically, it can be made using: addResultVar(String varName, Expr expr), as Damian's response. Kind regards, Fariz On Mon, Jun 4, 2012 at 7:56 PM, Rob Vesse <[email protected]> wrote: > What version of ARQ are you using? > > Trying your query on the ARQ 2.9.0 powered query validator at > http://sparql.org/query-validator.html shows that it parses fine so I > assume you are using an older version than ARQ or are trying to build a > query programmatically in which case you should see Damian's reply to your > question > > Rob > > > On 6/4/12 2:43 AM, "Fariz Darari" <[email protected]> wrote: > > >Dear Jena ARQ Community, > > > >I have this SPARQL query: > > > >*select ("abc" AS ?ABC) where {?ind a > ><http://dbpedia.org/ontology/Animal>}* > > > >Basically this query embeds a literal ("abc") in the head (inside the > >SELECT clause). I have looked into the javadoc of Jena ARQ, but it seems > >that the class Query (com.hp.hpl.jena.query) doesn't support to represent > >constant/literal in head. It seems Jena Query class can only support > >variables in the head. > > > >I have searched for the solution as well in Stack Overflow with Jena tag > >but I couldn't find any solution of my problem. So, does Jena ARQ, > >particularly the class Query, support the representation of the > >HEAD/SELECT > >clause above query? If yes, how can I do that using the library? Thank you > >very much in advance. > > > >Kind regards, > >Fariz > >FU Bolzano - Italy > >
