Hello Pierre,
In the next release of Virtuoso Open Source that should happen during
this weekend, the following query will work:
SELECT count (?g) ?g WHERE { graph ?g {?s ?p ?o}} order by (count(?g))
Note parentheses around (count(?g)) after order by.
Depending on version you're using now, the
Hi,
I would like to get a list of named graphs ordered by number of triples per
graph. So, I try (without success):
sparql select count(?g) ?g where {graph ?g {?s ?p ?o}} order by count(?g);
Is there a way to sort on aggregates in Virtuoso SPARQL?
Pierre