Resolving an RDF term should match the rdf type in the graph query