Jens Lehmann wrote:

Is there an easy way to query the number of triples in a graph
(http://geonames.org) or the whole triple store? That way I could see
how many there are and whether this number changes.

sparql SELECT count(*) from <http://geonames.org> WHERE {?s ?p ?o}

or

select count(*)
from DB.DBA.RDF_QUAD
where G = DB.DBA.RDF_MAKE_IID_OF_QNAME('http://geonames.org');

perhaps?

~Tim
--
Tim Haynes
Product Development Consultant
OpenLink Software
<http://www.openlinksw.com/>

Reply via email to