Proceedings

Enhancing Datalog Reasoning with Hypertree Decompositions

Download BibTeX Cite

Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence. Main Track. Pages 3383-3393.

https://doi.org/10.24963/ijcai.2023/377

Abstract

Datalog reasoning based on the seminaive evaluation strategy evaluates rules using traditional join plans, which often leads to redundancy and inefficiency in practice, especially when the rules are complex. Hypertree decompositions help identify efficient query plans and reduce similar redundancy in query answering. However, it is unclear how this can be applied to materialisation and incremental reasoning with recursive Datalog programs. Moreover, hypertree decompositions require additional data structures and thus introduce nonnegligible overhead in both runtime and memory consumption. In this paper, we provide algorithms that exploit hypertree decompositions for the materialisation and incremental evaluation of Datalog programs. Furthermore, we combine this approach with standard Datalog reasoning algorithms in a modular fashion so that the overhead caused by the decompositions is reduced. Our empirical evaluation shows that, when the program contains complex rules, the combined approach is usually significantly faster than the baseline approach, sometimes by orders of magnitude.

  1. [Aberger et al., 2016] Christopher R Aberger, Susan Tu, Kunle Olukotun, and Christopher Ré. Old techniques for new join algorithms: A case study in rdf processing. In 2016 IEEE 32nd International Conference on Data Engi- neering Workshops (ICDEW), pages 97-102. IEEE, 2016.
  2. [Aberger et al., 2017] Christopher R Aberger, Andrew Lamb, Susan Tu, Andres Nötzli, Kunle Olukotun, and Christopher Ré. Emptyheaded: A relational engine for graph processing. ACM Transactions on Database Systems (TODS), 42(4):1-44, 2017.
  3. [Abiteboul et al., 1995] Serge Abiteboul, Richard Hull, and Victor Vianu. Foundations of databases, volume 8. Addison-Wesley Reading, 1995.
  4. [Alvaro et al., 2010] Peter Alvaro, Tyson Condie, Neil Con- way, Khaled Elmeleegy, Joseph M Hellerstein, and Russell Sears. Boom analytics: exploring data-centric, declarative programming for the cloud. In Proceedings of the 5th Eu- ropean conference on Computer systems, pages 223-236, 2010.
  5. [Aref et al., 2015] Molham Aref, Balder ten Cate, Todd J Green, Benny Kimelfeld, Dan Olteanu, Emir Pasalic, Todd L Veldhuizen, and Geoffrey Washburn. Design and implementation of the logicblox system. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, pages 1371-1382, 2015.
  6. [Bellomarini et al., 2018] Luigi Bellomarini, Georg Gottlob, and Emanuel Sallinger. The vadalog system: Datalog- based reasoning for knowledge graphs. arXiv preprint arXiv:1807.08709, 2018.
  7. [Bernstein and Chiu, 1981] Philip A Bernstein and Dah- Ming W Chiu. Using semi-joins to solve relational queries. Journal of the ACM (JACM), 28(1):25-40, 1981.
  8. [Bichler et al., 2020] Manuel Bichler, Michael Morak, and Stefan Woltran. lpopt: A rule optimization tool for an- swer set programming. Fundamenta Informaticae, 177(3- 4):275-296, 2020.
  9. [Bonifati et al., 2017] Angela Bonifati, Wim Martens, and Thomas Timm. An analytical study of large sparql query logs. arXiv preprint arXiv:1708.00363, 2017.
  10. [Calì et al., 2011] Andrea Calì, Georg Gottlob, Thomas Lukasiewicz, and Andreas Pieris. Datalog+/-: A family of languages for ontology querying. In Datalog Reloaded: First International Workshop, Datalog 2010, Oxford, UK, March 16-19, 2010. Revised Selected Papers, pages 351- 368. Springer, 2011.
  11. [Calimeri et al., 2019] Francesco Calimeri, Simona Perri, and Jessica Zangari. Optimizing answer set computation via heuristic-based decomposition. Theory and Practice of Logic Programming, 19(4):603-628, 2019.
  12. [Carral et al., 2019] David Carral, Irina Dragoste, Larry González, Ceriel Jacobs, Markus Krötzsch, and Jacopo Urbani. Vlog: A rule engine for knowledge graphs. In International Semantic Web Conference, pages 19-35. Springer, 2019.
  13. [Flum et al., 2002] Jörg Flum, Markus Frick, and Martin Grohe. Query evaluation via tree-decompositions. Journal of the ACM (JACM), 49(6):716-752, 2002.
  14. [Garcia-Molina, 2008] Hector Garcia-Molina. Database systems: the complete book. Pearson Education India, 2008.
  15. [Gottlob et al., 2002] Georg Gottlob, Nicola Leone, and Francesco Scarcello. Hypertree decompositions and tractable queries. Journal of Computer and System Sci- ences, 64(3):579-627, 2002.
  16. [Gottlob et al., 2016] Georg Gottlob, Gianluigi Greco, Nicola Leone, and Francesco Scarcello. Hypertree decompositions: Questions and answers. In Proceedings of the 35th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, pages 57-74, 2016.
  17. [Guo et al., 2005] Yuanbo Guo, Zhengxiang Pan, and Jeff Heflin. Lubm: A benchmark for owl knowledge base sys- tems. Journal of Web Semantics, 3(2-3):158-182, 2005.
  18. [Gupta et al., 1993] Ashish Gupta, Inderpal Singh Mumick, and Venkatramanan Siva Subrahmanian. Maintaining views incrementally. ACM SIGMOD Record, 22(2):157- 166, 1993.
  19. [Horrocks et al., 2004] Ian Horrocks, Peter F Patel- Schneider, Harold Boley, Said Tabet, Benjamin Grosof, Mike Dean, et al. Swrl: A semantic web rule language combining owl and ruleml. W3C Member submission, 21(79):1-31, 2004.
  20. [Hu et al., 2018] Pan Hu, Boris Motik, and Ian Horrocks. Optimised maintenance of datalog materialisations. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 32, 2018.
  21. [Hu et al., 2022] Pan Hu, Boris Motik, and Ian Horrocks. Modular materialisation of datalog programs. Artificial In- telligence, 308:103726, 2022.
  22. [Jakl et al., 2009] Michael Jakl, Reinhard Pichler, and Ste- fan Woltran. Answer-set programming with bounded treewidth. In IJCAI, volume 9, pages 816-822, 2009. IJCAI
  23. [Luteberget et al., 2016] Bjørnar Luteberget, Christian Jo- hansen, and Martin Steffen. Rule-based consistency checking of railway infrastructure designs. In Interna- tional Conference on Integrated Formal Methods, pages 491-507. Springer, 2016.
  24. [Motik et al., 2009] Boris Motik, Peter F Patel-Schneider, Bijan Parsia, Conrad Bock, Achille Fokoue, Peter Haase, Rinke Hoekstra, Ian Horrocks, Alan Ruttenberg, Uli Sat- tler, et al. Owl 2 web ontology language: Structural spec- ification and functional-style syntax. W3C recommenda- tion, 27(65):159, 2009.
  25. [Motik et al., 2015] Boris Motik, Yavor Nenov, Robert Piro, and Ian Horrocks. Incremental update of datalog materiali- sation: the backward/forward algorithm. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 29, 2015.
  26. [Motik et al., 2019] Boris Motik, Yavor Nenov, Robert Piro, and Ian Horrocks. Maintenance of datalog materialisations revisited. Artificial Intelligence, 269:76-136, 2019.
  27. [Nenov et al., 2015] Yavor Nenov, Robert Piro, Boris Motik, Ian Horrocks, Zhe Wu, and Jay Banerjee. Rdfox: A highly-scalable rdf store. In International Semantic Web Conference, pages 3-20. Springer, 2015.
  28. [Ngo et al., 2014] Hung Q Ngo, Christopher Ré, and Atri Rudra. Skew strikes back: New developments in the the- ory of join algorithms. ACM SIGMOD Record, 42(4):5- 16, 2014.
  29. [Park et al., 2020] Yeonsu Park, Seongyun Ko, Sourav S Bhowmick, Kyoungmin Kim, Kijae Hong, and Wook-Shin Han. G-care: A framework for performance benchmarking of cardinality estimation techniques for subgraph match- ing. In Proceedings of the 2020 ACM SIGMOD Interna- tional Conference on Management of Data, pages 1099- 1114, 2020.
  30. [Scarcello et al., 2007] Francesco Scarcello, Gianluigi Greco, and Nicola Leone. Weighted hypertree decompo- sitions and optimal query plans. Journal of Computer and System Sciences, 73(3):475-506, 2007.
  31. [Staudt and Jarke, 1995] Martin Staudt and Matthias Jarke. Incremental maintenance of externally materialized views. Citeseer, 1995.
  32. [Stefanoni et al., 2018] Giorgio Stefanoni, Boris Motik, and Egor V Kostylev. Estimating the cardinality of conjunctive queries over rdf data using graph summarisation. In Pro- ceedings of the 2018 World Wide Web Conference, pages 1043-1052, 2018.
  33. [Subercaze et al., 2016] Julien Subercaze, Christophe Gravier, Jules Chevalier, and Frederique Laforest. Infer- ray: fast in-memory rdf inference. In VLDB, volume 9, 2016.
  34. [Suchanek et al., 2008] Fabian M Suchanek, Gjergji Kas- neci, and Gerhard Weikum. Yago: A large ontology from wikipedia and wordnet. Journal of Web Semantics, 6(3):203-217, 2008.
  35. [Tu and Ré, 2015] Susan Tu and Christopher Ré. Duncecap: Query plans using generalized hypertree decompositions. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, pages 2077-2078, 2015.
  36. [Walega et al., 2019] Przemyslaw Andrzej Walega, B Cuenca Grau, Mark Kaminski, and Egor V Kostylev. Datalogmtl: Computational complexity and expressive power. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, 1886-92. International Joint Conferences on Artificial Intelligence, 2019. IJCAI
  37. [Wu et al., 2008] Zhe Wu, George Eadon, Souripriya Das, Eugene Inseok Chong, Vladimir Kolovski, Melliyal An- namalai, and Jagannathan Srinivasan. Implementing an inference engine for rdfs/owl constructs and user-defined rules in oracle. In 2008 IEEE 24th International Confer- ence on Data Engineering, pages 1239-1248. IEEE, 2008.
  38. [Yannakakis, 1981] Mihalis Yannakakis. Algorithms for acyclic database schemes. In VLDB, volume 81, pages 82-94, 1981.
  39. [Zhang et al., 2023] Xinyue Zhang, Pan Hu, Yavor Nenov, and Ian Horrocks. Enhancing datalog reasoning with hy- pertree decompositions. CoRR, abs/2305.06854, 2023.
  40. [Zhou et al., 2013] Yujiao Zhou, Bernardo Cuenca Grau, Ian Horrocks, Zhe Wu, and Jay Banerjee. Making the most of your triple store: query answering in owl 2 using an rl rea- soner. In Proceedings of the 22nd international conference on World Wide Web, pages 1569-1580, 2013.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards