Shape-Aware Three-Way Merge for RDF Knowledge Graphs: The schema defines the conflict: an implementation and evaluation
Abstract
Merging RDF serializations creates ordering conflicts and misses semantic ones. We describe and evaluate a three-way merge in which the schema defines a conflict: set algebra combines canonical triples, and a slot is contended only where a SHACL shape bounds its cardinality and both sides' changes cannot stand within that bound. Unbounded predicates union; contended slots go to a person. The same shapes graph validates the result. We do not claim the first three-way merge for RDF. Our contribution is an implementation in a production multi-agent store and an evaluation against a reimplementation of Quit Store's Context Merge overlap rule, which it extends rather than replaces, and six other strategies. Across five synthetic seeds, the shape-aware operator raised 33 conflicts, all true positives as judged by the same shapes that define them, with no triples lost or fabricated and no SHACL violations admitted. The context-overlap baseline, counted per slot, detected the same 33 conflicts but asked 845 questions. A replay built from recorded production incidents covers 105 human alias repairs (93 after excluding 12 chained pairs) and 939 duplicate-value incidents. It reproduces a triple-level limit: different names for one entity remain invisible (0 of 93 alias repairs detected, matching 0 of 21 synthetic cases). In a study of evolving shape contracts, merging shape declarations first handles the tested cardinality changes, while datatype evolution exposes a detector blind spot caught by post-merge validation. An oracle that reads no shapes agrees with the shipped operator on the facts and history of all 23 reachable single-slot cases. Under wrong shapes, a missing bound loses data silently and a spurious one only adds questions. The supported claim is fewer human decisions with nothing silently lost, for cardinality conflicts in one deployment, not general merge correctness.
Create a lesson
Metadata
- Categories
- cs.DB, cs.AI, cs.SE
- Comments
- 19 pages. Artifact, benchmark and replay corpus at https://github.com/intigraph/quipu ; every table names the command that regenerates it
Related papers
Shoonya: Zero-Socket In-Process Small Language Models for Graph Databases with Schema-Epoch KV Caching, Live Catalog Logit Masking, and Verifier-Advantage Distillation
Shared title terminologycs.DBMadhulatha Mandarapu, Sandeep Kunkunuru
GenSPARQL: A Generative Extension of SPARQL for Incomplete Knowledge Graphs
Shared title terminologycs.DBJingcheng Wu, Yi Wang, Hongkuan Zhou et al.
Adaptive-Elbow Graph Traversal for Schema Retrieval in Text-to-SQL
Shared title terminologycs.DBFabio Picariello, Salvatore Cipolla, Susanna Bonura et al.
Omakase: Execution Congestion Control through Conflict-Graph Integration in Multi-Proposer Blockchain
Shared title terminologycs.DBDakai Kang, Ray Neiheiser, Alberto Sonnino et al.
Selective Retrieval Routing for Multi-Violation Knowledge Graph Repair
Shared title terminologycs.DBTung-Wei Lin, Gabe Fierro, Han Li et al.
Knowledge Graph Lakehouse: A Cloud-Native Architecture for Managing Enterprise Knowledge Graphs at Scale
Shared title terminologycs.DBBashar Ahmad, Christoph G. Schuetz, Loris Bozzato