That would only count triples in the default graph and omit triples in
named graphs. To account for them, you would need something like

SELECT (COUNT(*) AS ?no) { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } }

On Mon, Nov 9, 2015 at 3:47 PM, Zen 98052 <z98...@outlook.com> wrote:
> What is the most efficient way to get total number of triples?
>
> Is this query below the only way?
>
> SELECT (COUNT(*) AS ?no) { ?s ?p ?o }
>
>
> Thanks,
>
> Z

Reply via email to