def subjects(self, predicate=None, object=None):
        for s, p, o in self.triples((None, predicate, object)):
            yield s
A generator of subjects with the given predicate and object
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.subjects