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)| Attribute | Type | Description |
|---|---|---|
source_uri | str | The URI of the source entity of the relation. |
target_uri | str | The URI of the target entity of the relation. |
predicate | str | The full URI of the relation type (predicate). |
properties | Dict[str, LiteralValue] | A dictionary where keys are full predicate URIs and values are LiteralValue objects. Defaults to an empty dictionary. |