def quads(self, triple_or_quad=None):

        s,p,o,c = self._spoc(triple_or_quad)

        for (s, p, o), cg in self.store.triples((s, p, o), context=c):
            for ctx in cg:
                yield s, p, o, ctx
Function to use on Group by Charts.
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/ConjunctiveGraph.quads--crossover with--dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/models/group.py/aggregate_avg