The Virtual Knowledge Graph (VKG) paradigm enables querying heterogeneous relational databases through a unified semantic layer comprising an ontology and declarative mappings (typically in R2RML). While querying is well-supported, propagating updates from the virtual RDF graph (ABox) back to the source databases remains a challenge. This paper addresses the problem of translating updates (expressed in SPARQL Update) applied over the ABox into equivalent SQL updates over the underlying databases, specifically within the Ontop VKG system. Key difficulties arise from the non-injectivity inherent in R2RML mappings, where a single ABox update can correspond to multiple source update possibilities, and the potential for these source updates to cause unintended side effects—additional insertions or deletions in the ABox beyond the user’s original intent. While relying on Ontop’s query rewriting engine, our method employs lineage computation to identify source tuples for deletion and a strategy for handling existential variables during insertion. It generates candidate SQL translations, analyzes their potential side effects on the virtual ABox, and selects the ones that minimize these unintended consequences. This work represents a step toward closing the Linked Data Life Cycle loop, allowing changes in the knowledge graph to be reflected in the corresponding source.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Realizing Bidirectional Virtual Knowledge Graphs Using Ontop

  • Romuald Esdras Wandji,
  • Diego Calvanese

摘要

The Virtual Knowledge Graph (VKG) paradigm enables querying heterogeneous relational databases through a unified semantic layer comprising an ontology and declarative mappings (typically in R2RML). While querying is well-supported, propagating updates from the virtual RDF graph (ABox) back to the source databases remains a challenge. This paper addresses the problem of translating updates (expressed in SPARQL Update) applied over the ABox into equivalent SQL updates over the underlying databases, specifically within the Ontop VKG system. Key difficulties arise from the non-injectivity inherent in R2RML mappings, where a single ABox update can correspond to multiple source update possibilities, and the potential for these source updates to cause unintended side effects—additional insertions or deletions in the ABox beyond the user’s original intent. While relying on Ontop’s query rewriting engine, our method employs lineage computation to identify source tuples for deletion and a strategy for handling existential variables during insertion. It generates candidate SQL translations, analyzes their potential side effects on the virtual ABox, and selects the ones that minimize these unintended consequences. This work represents a step toward closing the Linked Data Life Cycle loop, allowing changes in the knowledge graph to be reflected in the corresponding source.