Inferensys

Glossary

Graph Merging

Graph merging is the algorithmic process of combining two or more knowledge graphs or datasets by aligning ontologies and resolving entity identities to create a unified, non-redundant canonical graph.
Knowledge engineer constructing knowledge base on laptop, document hierarchy visible, casual office setup.
ONTOLOGY ALIGNMENT

What is Graph Merging?

The algorithmic process of combining two or more knowledge graphs or datasets by aligning ontologies and resolving entity identities to create a unified, non-redundant canonical graph.

Graph merging is the computational process of integrating multiple knowledge graphs into a single, coherent structure by reconciling their schemas and deduplicating entities. It relies on entity resolution to identify when different nodes refer to the same real-world object and ontology alignment to map equivalent classes and properties across disparate vocabularies.

The output is a canonical graph that eliminates redundancy while preserving all unique assertions. Core techniques include sameAs linking for identity reconciliation, transitive closure to infer implicit matches, and survivorship rules to select authoritative values when conflicting attributes exist between source graphs.

UNIFICATION MECHANICS

Key Characteristics of Graph Merging

Graph merging is the algorithmic synthesis of disparate knowledge structures into a single, non-redundant canonical graph. The process hinges on resolving identity and aligning semantics to eliminate duplication while preserving provenance.

01

Ontology Alignment

The computational process of establishing semantic correspondences between two distinct schemas. Before merging instance data, the system must map equivalent classes and properties.

  • Schema Mapping: Identifies that Person in Graph A is equivalent to Human in Graph B.
  • Property Matching: Determines that date_of_birth and birthDate refer to the same attribute.
  • Structural Heterogeneity: Resolves conflicts where one graph uses a single attribute while another uses a complex sub-graph to represent the same fact.
02

Entity Resolution & Identity Linking

The core deduplication engine that determines if two nodes from different graphs refer to the same real-world object. This step prevents the creation of duplicate entities in the merged graph.

  • Probabilistic Matching: Uses algorithms like Fellegi-Sunter to weigh the evidence of attributes like names, dates, and locations.
  • Blocking Keys: Reduces the quadratic search space by grouping potential matches using shared attributes (e.g., same postal code).
  • SameAs Assertions: Explicitly links two URIs using the owl:sameAs property to declare identity, a critical step for linked data consolidation.
03

Conflict Resolution & Survivorship

When two matching entities possess contradictory attribute values, a deterministic logic must decide which value survives in the final golden record.

  • Source Priority: A predefined trust hierarchy where data from an authoritative ERP system overrides a scraped web source.
  • Temporal Freshness: The most recent timestamp wins, assuming newer data is more accurate.
  • Majority Voting: In multi-source merges, the value confirmed by the highest number of independent sources is selected.
  • Manual Curation: High-stakes conflicts (e.g., financial totals) are flagged for human review.
04

Provenance Tracking

Maintaining an auditable trail of origin for every fact in the merged graph. This is essential for debugging and trust.

  • Edge Attribution: Every merged triple is annotated with metadata identifying the source graph and extraction timestamp.
  • Lineage Graphs: Visual representations showing how a specific value was derived from raw sources through the merge pipeline.
  • Justification Logs: Records the specific survivorship rule or matching algorithm that caused a value to be selected, enabling downstream users to verify the logic.
05

Deduplication via Graph Topology

Beyond attribute matching, the structural relationships of nodes provide powerful signals for merging. Two nodes are likely the same if they share highly similar neighborhoods.

  • Structural Similarity: Algorithms like SimRank compute similarity based on the principle that two objects are similar if they are related to similar objects.
  • Sub-graph Isomorphism: Identifies identical patterns of relationships connecting entities, revealing redundant substructures.
  • Transitive Closure: If Node A matches Node B, and Node B matches Node C, the system infers that A and C are the same entity, collapsing the entire cluster into a single canonical node.
06

Incremental Merging & Change Propagation

The ability to merge updates from source graphs without requiring a full recomputation of the entire canonical graph. This is critical for dynamic, real-time systems.

  • Change Data Capture (CDC): Listens to transaction logs of source databases to detect new, updated, or deleted records.
  • Delta Processing: Only the modified sub-graphs are re-evaluated for entity resolution and conflict resolution.
  • Tombstoning: When an entity is deleted in a source, it is marked as deprecated in the merged graph rather than silently removed, preserving referential integrity for systems that depend on the canonical ID.
GRAPH MERGING

Frequently Asked Questions

Explore the core concepts behind graph merging, the algorithmic process of combining multiple knowledge graphs into a single, authoritative, and non-redundant canonical graph.

Graph merging is the algorithmic process of combining two or more heterogeneous knowledge graphs or datasets into a single, unified, and non-redundant canonical graph. It works by first aligning the different ontologies (the schemas defining classes and properties) to establish a common vocabulary. The core computational challenge is entity resolution, where the system must identify and link disparate nodes that refer to the same real-world entity, such as a person, place, or product. This is achieved through techniques like fuzzy matching on literal values, embedding similarity for semantic closeness, and the application of sameAs linking logic. Once identities are resolved, the final step is the application of survivorship rules to merge conflicting property values into a single, high-quality golden record, resulting in a deduplicated graph that consolidates all authority signals.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.