Skip to content

FilterBy

relationalai.semantics.frontend.base
FilterBy(item: Concept | Ref, kwargs: dict[str, Any])

Represents a keyword-based filter expression for a concept or reference.

This is the expression returned by Concept.filter_by and Ref.filter_by. It can be used anywhere an Expression is accepted (most commonly in Model.where).

  • item

    (Concept | Ref) - The concept (or a specific reference to it) being filtered.
  • kwargs

    (dict[str, Any]) - Property/relationship values to match (keys are treated case-insensitively).

Most users should not instantiate this class directly. Prefer Concept.filter_by and Ref.filter_by.

FilterByExpressionVariableDSLBase
 semantics > frontend > base
├──  Concept
│   └──  filter_by
└──  Ref
    └──  filter_by