Dear all, I am using an app, which uses Jena under the hood.
In the app, I can create SPARQL queries. I want to create a SPARQL query which uses the AVG() aggregate function. However, when I include AVG() in my query, it yields no results. I can use COUNT() and it works. But I cannot use SUM(). If SUM() would work, I could calculate AVG() on my own. There are two solutions in my opinion: 1) Since I read somewhere, that Jena should typically support SUM(), I would like to find out why it seems not to work for me. Maybe someone here can help to identify the reason? The app, uses the following libraries from jena (when did Jena ARQ start to support SUM()?): jena-arq-Percentile-2.11.1.jar jena-core-2.11.1.jar jena-iri-1.0.1.jar jena-tdb-1.0.1.jar 2) Implement my own aggregate, that is, AVG(): Since I think, I am not the first person in the world which needs AVG() in Jena, I think there should already be the solution out there somewhere? Help is appreciated. Best regards, Peter
