On 24/09/2024 08:36, Sorin Gheorghiu wrote:
To count the triples for large datasets with a SPARQL query it takes a
longer time, therefore I asked if someone knows if Jena Fuseki can
deliver this information faster
Regards
Sorin
Am 24.09.2024 um 09:26 schrieb Daniel Hernandez:
What about the SPARQL query?
SELECT (count(*) as ?n)
WHERE { ?s ?p ?o }
Maybe do you also want to count triples in named graphs. In this case,
your question is ambiguous, unless you answer the following
questions. Do you want to count repeated triples from different named
graphs as one, or to consider their multiplicities? Is the default graph
a separate graph, or the union of the named graphs?
Another question - do you want exact or approximate.
Jena provides the exact count from the point of view of the caller.
The count is different for an in-progress write transaction and an
concurrent read transaction (transaction isolation).
Andy
Best,
Daniel
Sorin Gheorghiu<sorin.gheorg...@uni-konstanz.de> writes:
Hi,
can Jena Fuseki return the total number of triples of a dataset?
Cheers,
Sorin