def _graphOrDefault(ctx, g):
    if g == 'DEFAULT':
        return ctx.graph
    else:
        return ctx.dataset.get_context(g)
dataset/ETHPy150Open RDFLib/rdflib/rdflib/plugins/sparql/update.py/_graphOrDefault/original