RDF::Query allows SPARQL and RDQL queries to be run against an RDF model, returning rows of matching results.