Skip to content

Reading

relationalai.semantics.frontend.base
Reading(
model: Model,
relationship: Relationship,
reading_str: str,
reading_fields: list[Field] = [],
reading_parts: list[str | int] = [],
)

Represents an alternative reading for a relationship.

A Reading refers to the same underlying fields as a Relationship but uses a different human-readable reading string and possibly different field ordering.

You typically create readings via Relationship.alt (or Chain.alt) and then use the result anywhere a relationship can be used.

Most users should not instantiate this class directly. Prefer Relationship.alt.

ReadingRelationshipVariableDSLBase
 semantics > frontend > base
├──  Chain
│   └──  alt
└──  Relationship
    └──  alt