lenskit.data.schema.RelationshipSchema ====================================== .. py:class:: lenskit.data.schema.RelationshipSchema Bases: :py:obj:`pydantic.BaseModel` Relationship class definitions in the dataset schema. .. py:attribute:: entities :type: dict[Name, Name | None] Define the entity classes participating in the relationship. For aliased entity classes (necessary for self-relationships), the key is the alias, and the value is the original entity class name. .. py:attribute:: interaction :type: bool :value: False Whether this relationship class records interactions. .. py:attribute:: repeats :type: AllowableTroolean Whether this relationship supports repeated interactions. .. py:attribute:: attributes :type: dict[Name, ColumnSpec] Relationship attribute definitions. .. py:property:: entity_class_names :type: list[str]