liveBook · Manning

Metagraph

As explained in Knowledge Graphs and LLMs in Action

A metagraph is an intermediate graph representation that preserves page-level extracted entities, relationships, and their source information for later knowledge graph construction.

A metagraph is an intermediate graph layer that stores unmerged entity mentions, their extracted relationships, and links back to the pages where they originated. It separates extraction from normalization and entity resolution before constructing a final knowledge graph. section 6.1.1 section 6.1.2

A practical metagraph pipeline:

  • Chunk long documents, using page-level splitting as a simple strategy. section 6.1.2
  • Create an Entity node for every extracted mention instead of merging mentions immediately. section 6.1.2
  • Link entities to their originating pages and connect related mentions with typed relationships. section 6.1.1 section 6.1.2
  • Use graph structure, string similarity, and domain rules to support later entity resolution. section 6.1.4

Diary ingestion

A 150-page subset of Warren Weaver’s 1939 diary is split by page. Each page produces unmerged entity mentions and relationships, while OCR errors remain visible for later normalization and resolution. section 6.1.2

Figure 6.2 Simplified KG schema of the Rockefeller Archive Center project
figure

Use the schema view to trace the progression from files and pages, through the metagraph, to normalized knowledge-graph entities and relationships. section 6.1.1

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Defines page-level creation and provenance, then outlines similarity-based resolution while deferring a full resolution system.
Examples
Uses page nodes, Entity mentions, RELATED_TO_ENTITY edges, META_SIMILAR edges, and a 150-page 1939 diary subset.
What it assumes
Assumes extracted page text and basic graph concepts while teaching the separation between mentions and resolved entities.
What you can do after
Build it from extracted pages, preserve provenance, and support explainable normalization and entity resolution.
How it connects
Connects document ingestion, OCR, chunking, normalization, entity resolution, entity disambiguation, and knowledge graphs.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.