Skip to content

Use biolink-model deterministic association ids - #17

Open
kevinschaper wants to merge 1 commit into
mainfrom
deterministic-association-ids
Open

kevinschaper wants to merge 1 commit into
mainfrom
deterministic-association-ids

Conversation

@kevinschaper

Copy link
Copy Markdown
Member

Summary

Part of the OKN RDF cleanup tracked in monarch-initiative/monarch-app#1424 (the "URNs are included incorrectly" item).

  • Bump biolink-model to >=4.4.5, the first release that ships deterministic association ids (Add deterministic hash-based IDs for Association classes biolink/biolink-model#1708).
  • Stop passing random UUIDs as association ids. The model now derives a SHA-256 id from the association's identity fields (subject, predicate, object, qualifiers, knowledge level, agent type, primary knowledge source, publications), so the same assertion gets the same id on every run and across releases.

Notes

  • Explicit ids are still honored by the model, so any remaining id= on non-association entities is unaffected.
  • Edges that differ only in fields outside the identity set (for example has_evidence or aggregator source) will now share an id and collapse at merge-time dedupe. Per-source edge counts in the next KG build should be compared against the previous release.

https://claude.ai/code/session_01V4T7NDQUNm5nXB7jtTEorT

Bump biolink-model to >=4.4.5 and stop passing random UUIDs as
association ids. The model now derives a SHA-256 id from the
association's identity fields (subject, predicate, object, qualifiers,
knowledge level, agent type, primary knowledge source, publications),
so the same assertion gets the same id on every run.

Claude-Session: https://claude.ai/code/session_01V4T7NDQUNm5nXB7jtTEorT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant