upper
relationalai.semantics.std.strings
upper(s: StringValue) -> ExpressionConvert the string s to uppercase.
Parameters
Section titled “Parameters”
(sStringValue) - The string to convert.
Returns
Section titled “Returns”Expression- AnExpressionrepresenting the uppercase version of the string. ReturnsString.
Examples
Section titled “Examples”Convert a string to uppercase:
>>> select(strings.upper(Person.last_name))>>> select(City.name).where(strings.upper(City.province) == "ONTARIO")Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Use advanced reasoning > Rules-based reasoning └── Work with strings └── Normalize text before comparisons