Skip to main content
Version: 0.0.5 (stable)

agrag.ingestion.merge.relation_id

relation_id(source_id:UUID, target_id:UUID, rel_type:str) -> UUID

Return the committed id for a domain relationship triple.

This is the identity a relation has once committed. While a Cutover Job is pending, the job creates the relation under pending_relation_id and the commit folds it into this id.

Parameters:

  • source_id (UUID) – The relationship's source Entity id.
  • target_id (UUID) – The relationship's target Entity id.
  • rel_type (str) – The relationship's type.

Returns:

  • UUID – The relationship id. Same triple always returns the same id.