@classmethod
    def coerce(self, expr):
        if isinstance(expr, Query):
            return expr
        elif isinstance(expr, basestring):
            return Tag(expr)
        else:
            raise TypeError("Expected %s or string, got %s" % (Query.__name__, expr))
Returns the ``Query`` representation of the expression.
dataset/ETHPy150Open jdp/taxon/taxon/query.py/Query.coerce