How many triples ?
I just found a simple way to count triples in a RDF file, without needed to script anything, using rapper (included in raptor-utils package for Debian and Ubuntu):
rapper --count http://apassant.net/feed 2>&1 | awk 'NR==2 {print $4}'
Redland is definitely great to manage RDF in many ways !
SPARQL in command line
Just discovered roquet while talking on #sioc about SPARQL in command line.
Available on Debian within rasqal-utils packages, and really simple to use, eg:
roqet -r json -e "SELECT ?s ?p ?o WHERE { ?s ?p ?o }" -s http://apassant.net/blog/feed/rdf
