Hi,

I think I found a little bug in the SPARQL parser for Jena 2.12.0. When I
run the query :

SELECT count(distinct ?s) as ?count WHERE {?s ?p ?o}

Against the DBpedia SPARQL endpoint I have a result, but if I go through
Jena I have this error :

Exception in thread "main" com.hp.hpl.jena.query.QueryParseException:
Encountered " "count" "count "" at line 1, column 8.

Was expecting one of:

    <VAR1> ...

    <VAR2> ...

    "distinct" ...

    "reduced" ...

    "(" ...

    "*" ...



at
com.hp.hpl.jena.sparql.lang.ParserSPARQL11.perform(ParserSPARQL11.java:102)

at com.hp.hpl.jena.sparql.lang.ParserSPARQL11.parse$(ParserSPARQL11.java:53)

at com.hp.hpl.jena.sparql.lang.SPARQLParser.parse(SPARQLParser.java:37)

at com.hp.hpl.jena.query.QueryFactory.parse(QueryFactory.java:148)

at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:80)

at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:53)

at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:41)

at fr.eurecom.indexinglinking.indexing.Indexing.main(Indexing.java:25)

Is-this as I think a bug or I missed something in my query ?

Thanks in advance.

Best
--
Julien Plu

PhD Student at Eurecom.
Personal webpage: http://jplu.developpez.com
FOAF file : http://jplu.developpez.com/julien
Email address : [email protected] && *[email protected]
<[email protected]>*
Phone : +33493008103
Twitter : @julienplu

Reply via email to