JOURNAL ARTICLE

Query Answering for Existential Rules via Efficient Datalog Rewriting

Abstract

Existential rules are an expressive ontology formalism for ontology-mediated query answering and thus query answering is of high complexity, while several tractable fragments have been identified. Existing systems based on first-order rewriting methods can lead to queries too large for DBMS to handle. It is shown that datalog rewriting can result in more compact queries, yet previously proposed datalog rewriting methods are mostly inefficient for implementation. In this paper, we fill the gap by proposing an efficient datalog rewriting approach for answering conjunctive queries over existential rules, and identify and combine existing fragments of existential rules for which our rewriting method terminates. We implemented a prototype system Drewer, and experiments show that it is able to handle a wide range of benchmarks in the literature. Moreover, Drewer shows superior or comparable performance over state-of-the-art systems on both the compactness of rewriting and the efficiency of query answering.

Keywords:
Datalog Rewriting Computer science Conjunctive query Ontology Existentialism Programming language Theoretical computer science Information retrieval Relational database

Metrics

4
Cited By
0.44
FWCI (Field Weighted Citation Impact)
27
Refs
0.68
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Semantic Web and Ontologies
Physical Sciences →  Computer Science →  Artificial Intelligence
Advanced Database Systems and Queries
Physical Sciences →  Computer Science →  Computer Networks and Communications
Service-Oriented Architecture and Web Services
Physical Sciences →  Computer Science →  Information Systems

Related Documents

JOURNAL ARTICLE

Efficient Datalog Rewriting for Query Answering in TGD Ontologies

Zhe WangPeng XiaoKewen WangZhiqiang ZhuangHai Wan

Journal:   IEEE Transactions on Knowledge and Data Engineering Year: 2021 Pages: 1-1
JOURNAL ARTICLE

Rewriting Guarded Existential Rules into Small Datalog Programs

Shqiponja AhmetajMagdalena OrtizMantas Šimkus

Journal:   Leibniz-Zentrum für Informatik (Schloss Dagstuhl) Year: 2018 Vol: 98
BOOK-CHAPTER

Ontological Query Answering with Existential Rules

Marie-Laure Mugnier

Lecture notes in computer science Year: 2011 Pages: 2-23
JOURNAL ARTICLE

Fast Query Answering over Existential Rules

Nicola LeoneMarco MannaGiorgio TerracinaPierfrancesco Veltri

Journal:   ACM Transactions on Computational Logic Year: 2019 Vol: 20 (2)Pages: 1-48
BOOK-CHAPTER

Query Answering under Non-guarded Rules in Datalog+/-

Andrea Calı̀Georg GottlobAndréas Pieris

Lecture notes in computer science Year: 2010 Pages: 1-17
© 2026 ScienceGate Book Chapters — All rights reserved.