Skip to end of metadata
Go to start of metadata

Here's a SPARQL query that counts all statements (triples) in a repository.

Count all statements
SELECT (COUNT(?s) AS ?triples) WHERE {
    ?s ?p ?o
}

Note that this can be a long running query. For me it took took 21 seconds to count the statements in a repository with 30 million triples.