@classmethod
    def compile_attribute(cls, expr):
        if isinstance(expr, NamedAttributeRef):
            var = expr
        if isinstance(expr, UnnamedAttributeRef):
            var = cls.currentop.scheme().getName(expr.position)
        return "?%s" % var
dataset/ETHPy150Open uwescience/raco/raco/backends/sparql/sparql.py/SPARQLLanguage.compile_attribute/original