def triples(self, (s, p, o)):
        if isinstance(p, Path):
            for _s, _o in p.eval(self, s, o):
                yield (_s, p, _o)
        else:
            for (s, p, o), cg in self.__store.triples((s, p, o), context=self):
                yield (s, p, o)
Generator over the triple store
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.triples