Models

Relation

The Relation model represents a relation between two entities.

See the documentation for the Relation concept.

class Relation(BaseModel):
    source_uri: str
    target_uri: str
    predicate: str
    properties: Dict[str, LiteralValue] = Field(default_factory=dict)
AttributeTypeDescription
source_uristrThe URI of the source entity of the relation.
target_uristrThe URI of the target entity of the relation.
predicatestrThe full URI of the relation type (predicate).
propertiesDict[str, LiteralValue]A dictionary where keys are full predicate URIs and values are LiteralValue objects. Defaults to an empty dictionary.