Skip to content

feat(graph): implement Knowledge Graph data model, in-memory store, builder, and MCP tool (v0.8.0) - #21

Merged
engkinandatama merged 1 commit into
CORE-Lab-Research:mainfrom
engkinandatama:feat/phase2-knowledge-graph-v0.8.0
Oct 10, 2026
Merged

engkinandatama merged 1 commit into
CORE-Lab-Research:mainfrom
engkinandatama:feat/phase2-knowledge-graph-v0.8.0

Conversation

@engkinandatama

Copy link
Copy Markdown
Collaborator

Summary of Changes

  • PRD-21 Implementation: Built the core ontological Knowledge Graph infrastructure.
  • Node & Edge Schemas (biocontext.graph.models): Added 7 node types (GENE, PROTEIN, TRANSCRIPT, PATHWAY, DISEASE, PUBLICATION, GO_TERM) and directed biological edges with provenance attribution.
  • In-Memory Graph Engine (biocontext.graph.store): Lightweight InMemoryGraphStore for deterministic neighbor lookups and sub-graph extraction.
  • Graph Builder Pipeline (biocontext.graph.builder): Connects all resolvers (HGNC, UniProt, Ensembl, QuickGO, Reactome, Open Targets, Europe PMC) into unified subgraphs.
  • MCP & CLI Interface: Added build_entity_subgraph tool to server.py and biocontext graph <query> to CLI.
  • Tests: Comprehensive unit and integration test coverage in tests/test_graph.py (100% passing).
  • SemVer: Bumped version to 0.8.0.

@engkinandatama
engkinandatama merged commit 3960d61 into CORE-Lab-Research:main Oct 10, 2026
4 checks passed
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