Update to work with rdflib 4.0 query results