def transitive_objects(self, subject, property, remember=None):
        if remember is None:
            remember = {}
        if subject in remember:
            return
        remember[subject] = 1
        yield subject
        for object in self.objects(subject, property):
            for o in self.transitive_objects(object, property, remember):
                yield o
Transitively generate objects for the ``property`` relationship
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.transitive_objects