Skip to content

upper

relationalai.semantics.std.strings
upper(s: StringValue) -> Expression

Convert the string s to uppercase.

  • Expression - An Expression representing the uppercase version of the string. Returns String.

Convert a string to uppercase:

>>> select(strings.upper(Person.last_name))
>>> select(City.name).where(strings.upper(City.province) == "ONTARIO")
RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        └──  Work with strings
            └──  Normalize text before comparisons