def contexts(self, triple=None):
        for context in self.store.contexts(triple):
            if isinstance(context, Graph):
                # TODO: One of these should never happen and probably
                # should raise an exception rather than smoothing over
                # the weirdness - see #225
                yield context
            else:
                yield self.get_context(context)
Iterate over all contexts in the graph
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/ConjunctiveGraph.contexts