Skip to content

Conversation

@kevinschaper
Copy link
Collaborator

Summary

  • Use entity_id() from bmt.pydantic instead of uuid.uuid1() for association IDs
  • Use build_association_knowledge_sources() with sources field instead of deprecated primary_knowledge_source/aggregator_knowledge_source fields
  • Return KnowledgeGraph objects instead of raw entity/association lists
  • Remove redundant explicit category assignments on nodes and associations
  • Update function signatures with proper type hints (KnowledgeGraph | None)

Test plan

  • All existing Alliance unit tests updated and passing
  • Verified knowledge sources are properly constructed with primary (MGI/RGD) and aggregator (AGRKB) roles

Notes

The qualifiers field usage is kept as-is for now (experimental conditions for phenotypes, assay for expression). This may need a follow-up PR to address potential deprecation concerns, but the current usage appears to be semantically correct for ontology-term qualifiers.

🤖 Generated with Claude Code

kevinschaper and others added 3 commits January 5, 2026 16:52
- Use entity_id() from bmt.pydantic instead of uuid.uuid1() for association IDs
- Use build_association_knowledge_sources() with sources field instead of
  deprecated primary_knowledge_source/aggregator_knowledge_source fields
- Return KnowledgeGraph objects instead of raw entity/association lists
- Remove redundant explicit category assignments on nodes and associations
- Update function signatures with proper type hints
- Update tests to work with new KnowledgeGraph return type

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Switch from qualifiers (list) to qualifier (single value) for expression
  assay since mouse/rat data always has exactly one assay per record
- Change conditionRelations handling to raise ValueError if conditions are
  found, since mouse/rat phenotype data should not have experimental conditions
- This simplifies the code and makes unexpected data visible

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

3 participants