Thesis icon

Thesis

Optimising datalog materialisations

Abstract:
Datalog is a prominent knowledge representation language widely used for declarative reasoning, primarily due to its ability to express recursive definitions. Many Datalog-based reasoning systems employ materialisation techniques to precompute all consequences of a given program and dataset, enabling efficient query answering. However, materialisation-based reasoning faces several challenges concerning computational efficiency and storage management for both the initial computation and incremental maintenance of materialisations. Most existing approaches default to general-purpose update strategies without considering optimisations for specific rule structures. From a computational perspective, standard materialisation techniques rely on traditional join plans for rule evaluation, which can be suboptimal for cyclic rules. The redundancy introduced by these plans leads to inefficiencies, especially in recursive reasoning. To address this, we explore the use of hypertree decomposition (HD)-based evaluation techniques to optimise the reasoning process for cyclic rules, including both the initial computation and incremental maintenance. We develop specialised addition, deletion, and rederivation procedures using hypertree decomposition techniques for cyclic rules, which support efficient incremental evaluation and are suitable for integration into the recursive reasoning scenario and incremental maintenance processes. Storage management is another critical challenge, as Datalog rules can significantly expand datasets, making it impractical to store all derived facts explicitly. To mitigate this, we propose a multi-scheme storage framework that integrates customised storage techniques tailored to particular rule derivations into the initial computation and incremental maintenance processes. Specifically, we introduce specialised storage schemes for transitive closure and union rules, allowing compact representation and efficient retrieval while preserving the correctness of reasoning. Our experimental results demonstrate that the proposed optimisations significantly enhance both computational and storage efficiency. The hypertree decomposition-based reasoning method achieves substantial speedups for cyclic rules, while the multi-scheme storage framework effectively reduces space requirements and improves incremental update performance. These contributions provide a scalable and adaptable approach to materialisation-based reasoning, making it more suitable for large-scale and dynamic knowledge-based systems.

Actions

Access Document

Files:

Authors

More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Oxford college:
Keble College
Role:
Author

Contributors

Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Supervisor
ORCID:
0000-0002-2685-7462
Institution:
Shanghai Jiao Tong University
Role:
Supervisor
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Examiner
ORCID:
0000-0003-2964-0880
Institution:
Vienna University of Technology
Role:
Examiner


DOI:
Type of award:
DPhil
Level of award:
Doctoral
Awarding institution:
University of Oxford


Language:
English
Keywords:
Deposit date:
2025-07-26
ARK identifier:

Terms of use


Views and Downloads

Views and downloads will return soon






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP