Optimised Storage for Datalog Reasoning

Abstract

Materialisation facilitates Datalog reasoning by precomputing all consequences of the facts and the rules so that queries can be directly answered over the materialised facts. However, storing all materialised facts may be infeasible in practice, especially when the rules are complex and the given set of facts is large. We observe that for certain combinations of rules, there exist data structures that compactly represent the reasoning result and can be efficiently queried when necessary. In this paper, we present a general framework that allows for the integration of such optimised storage schemes with standard materialisation algorithms. Moreover, we devise optimised storage schemes targeting at transitive rules and union rules, two types of (combination of) rules that commonly occur in practice. Our experimental evaluation shows that our approach significantly improves memory consumption, sometimes by orders of magnitude, while remaining competitive in terms of query answering time.

Cite

Text

Zhang et al. "Optimised Storage for Datalog Reasoning." AAAI Conference on Artificial Intelligence, 2024. doi:10.1609/AAAI.V38I9.28947

Markdown

[Zhang et al. "Optimised Storage for Datalog Reasoning." AAAI Conference on Artificial Intelligence, 2024.](https://mlanthology.org/aaai/2024/zhang2024aaai-optimised/) doi:10.1609/AAAI.V38I9.28947

BibTeX

@inproceedings{zhang2024aaai-optimised,
  title     = {{Optimised Storage for Datalog Reasoning}},
  author    = {Zhang, Xinyue and Hu, Pan and Nenov, Yavor and Horrocks, Ian},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2024},
  pages     = {10748-10755},
  doi       = {10.1609/AAAI.V38I9.28947},
  url       = {https://mlanthology.org/aaai/2024/zhang2024aaai-optimised/}
}