def absolutize(self, iri):

        """
        Apply BASE / PREFIXes to URIs
        (and to datatypes in Literals)

        TODO: Move resolving URIs to pre-processing
        """

        if isinstance(iri, CompValue):
            if iri.name == 'pname':
                return self.resolvePName(iri.prefix, iri.localname)
            if iri.name == 'literal':
                return Literal(
                    iri.string, lang=iri.lang,
                    datatype=self.absolutize(iri.datatype))
        elif isinstance(iri, URIRef) and not iri in ':':
            return URIRef(iri, base=self.base)

        return iri
dataset/ETHPy150Open RDFLib/rdflib/rdflib/plugins/sparql/sparql.py/Prologue.absolutize/swapped operands of `in`