endswith
relationalai.semantics.std.strings
endswith(s: StringValue, suffix: StringValue) -> ExpressionCheck whether s ends with suffix.
Parameters
Section titled “Parameters”
(sStringValue) - The string to check.
(suffixStringValue) - The suffix to check for.
Returns
Section titled “Returns”Expression- AnExpressionthat evaluates totrueifsends withsuffix.
Examples
Section titled “Examples”Filter strings that end with a suffix:
>>> select(Person.name).where(strings.endswith(Person.last_name, "dottir"))Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Use advanced reasoning > Rules-based reasoning └── Work with strings └── Filter facts with text conditions