Closed MichaelRoeder closed 10 years ago
Can you try your query in http://www.sparql.org/query-validator.html and check if it is valid?
Hi, thanks for this hint. The validator gave the same error. It turns out that the endpoint itself accepts the SPARQL query as I posted it in the first comment. However, the pagination class as well as the query validator only accepts the "count" in brackets as it is described in the SPARQL standard (there is an example in section 18.2.4.1 on http://www.w3.org/TR/sparql11-query ).
So, my query should look like:
SELECT (COUNT(*) AS ?COUNT) WHERE { ?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.openlinksw.com/schemas/virtrdf#QuadMapFormat> }
Thanks again and sorry for opening this issue.
I used a QueryExecutionFactory created as described in the tutorial: QueryExecutionFactoryHttp(endpoint) QueryExecutionFactoryDelay(qef, DELAY) QueryExecutionFactoryCacheEx(qef, cacheFrontend) QueryExecutionFactoryPaginated(qef, 100)
Using http://cr.eionet.europa.eu/sparql as endpoint the SPARQL query
fails with the following Exception: com.hp.hpl.jena.query.QueryParseException: Encountered " "count" "COUNT "" at line 1, column 8. Was expecting one of: