

def evalDeleteWhere(ctx, u):
    '\n    http://www.w3.org/TR/sparql11-update/#deleteWhere\n    '
    res = evalBGP(ctx, u.triples)
    for g in u.quads:
        cg = ctx.dataset.get_context(g)
        c = ctx.pushGraph(cg)
        res = _join(res, list(evalBGP(c, u.quads[g])))
    for c in res:
        g = ctx.graph
        g -= _fillTemplate(u.triples, c)
        for g in u.quads:
            cg = ctx.dataset.get_context(c.get(g))
            cg -= _fillTemplate(u.quads[g], c)

dataset/ETHPy150Open RDFLib/rdflib/rdflib/plugins/sparql/update.py evalDeleteWhere/original