Skip to content

lower

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

Convert the string s to lowercase.

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

Convert a string to lowercase:

>>> select(strings.lower(Person.last_name))
>>> select(City.name).where(strings.lower(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