strip
relationalai.semantics.std.strings
strip(s: StringValue) -> ExpressionStrip whitespace from both ends of the string s.
Parameters
Section titled “Parameters”
(sStringValue) - The string to strip.
Returns
Section titled “Returns”Expression- AnExpressionrepresenting the string with leading and trailing whitespace removed. ReturnsString.
Examples
Section titled “Examples”Remove whitespace from both ends of a string:
>>> select(strings.strip(Person.name))>>> select(Text.content).where(strings.strip(Text.content) == "string with spaces")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