Hi Andy, Thank you very much!
Best Regards, Wei Zhang -----Original Message----- From: Andy Seaborne [mailto:[email protected]] Sent: Saturday, 30 August 2014 7:54 PM To: [email protected] Subject: Re: Jena-2.11.2 QueryParseException: Encountered " "as" "as "" On 30/08/14 11:08, Wei Zhang wrote: > but I think 2.11.2 is new. 2.12.0 is newer but this is to do with Virtuoso proprietary extensions. SPARQL 1.1 syntax hasn't changed. > "having(count(distinct ?n0) as ?tt >1)" That's not legal SPARQL 1.1. http://www.w3.org/TR/sparql11-query/#rHavingClause "AS" is not legal at that point as the error message says (put newlines in the query string - it makes the error messages more useful). You just need: """ having(count(distinct ?n0) > 1) """ Andy PS try: http://www.sparql.org/query-validator.html
