[RDF] When checking for parent nodes, don't follow back-references