JFS SPARQL Query -- Problem with SELECT having COUNT
Hi,
I have attempted to write a SPARQL query that uses the aggregate function COUNT .. GROUP BY. The query is very simple, like
However, the JFS SPARQL service failed to execute the query.
It seems that the service does not support this aggregate function.
Please let me know if there is a way to get this work or there are any packages or newer versions that support SPARQL extensions or ARQ queries.
Thanks,
Vu
I have attempted to write a SPARQL query that uses the aggregate function COUNT .. GROUP BY. The query is very simple, like
SELECT ?o COUNT(?s)
WHERE {
?s ?p ?o.
} group BY ?o
However, the JFS SPARQL service failed to execute the query.
It seems that the service does not support this aggregate function.
Please let me know if there is a way to get this work or there are any packages or newer versions that support SPARQL extensions or ARQ queries.
Thanks,
Vu
3 answers
As you note, these are vendor extensions to SPARQL and not specified by the core language standard. We currently support only the standard language, not any of the extensions provided by Jena (ARQ) or Virtuoso for example.
Hi,
I have attempted to write a SPARQL query that uses the aggregate function COUNT .. GROUP BY. The query is very simple, like
SELECT ?o COUNT(?s)
WHERE {
?s ?p ?o.
} group BY ?o
However, the JFS SPARQL service failed to execute the query.
It seems that the service does not support this aggregate function.
Please let me know if there is a way to get this work or there are any packages or newer versions that support SPARQL extensions or ARQ queries.
Thanks,
Vu
We are planning to support aggregation if enabling the ARQ language extension via an extra query argument: "&syntax=ARQ". This should be made available as part of 3.0M5 (in progress).
Also read https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=102647
Also read https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=102647