recursive RDF querying