def regexCompareQuad(quad, regexQuad):
    for index in range(4):
        if isinstance(regexQuad[index], REGEXTerm) and not \
                regexQuad[index].compiledExpr.match(quad[index]):
            return False
    return True
dataset/ETHPy150Open RDFLib/rdflib/rdflib/plugins/stores/regexmatching.py/regexCompareQuad/original