I'm trying to create some code that will tell me if a query is SPARQL 1.1 or 
SPARQL 1.0 by first parsing with the 1.0 parser and failing that parse with the 
1.1 parser.  But the following fails:


QueryFactory.create("SELECT COUNT(*) {}",Syntax.syntaxSPARQL_11);

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:87)
<...SNIP...>

Reply via email to