Proceedings

Combining Rewriting and Incremental Materialisation Maintenance for Datalog Programs with Equality

Download BibTeX Cite

Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence. Special Track on Knowledge Representation and Reasoning. Pages 3127-3132.

Abstract

Materialisation precomputes all consequences of a set of facts and a datalog program so that queries can be evaluated directly (i.e., independently from the program). Rewriting optimises materialisation for datalog programs with equality by replacing all equal constants with a single representative; and incremental maintenance algorithms can efficiently update a materialisation for small changes in the input facts. Both techniques are critical to practical applicability of datalog systems; however, we are unaware of an approach that combines rewriting and incremental maintenance. In this paper we present the first such combination, and we show empirically that it can speed up updates by several orders of magnitude compared to using either rewriting or incremental maintenance in isolation.

  1. 51: c • • = min{a, b} d • • = max{a, b} 52: γ.mergeInto(, P \ P with d ∈ voc(F ) do 54: P .add(F ) and P.add(γ(F )) 55: for each r ∈ Γ with r = γ(r) do 56: replace r in Γ with r • • = γ(r) 57: for each τ ∈ [V \ P ].eval(b(r ), ∅, ∅) do 58: prove(h(r )τ ) Algorithm 7 prove(F ) 59: if π(F ) ∈ C then P.add(F ) else Y.add(F ) Theorem 1. Let (π, I) be the r-materialisation of a dataset E w.r.t. a program Π, and let E -be a dataset.
  2. Algorithm 1 terminates, at which point (π, I) contains the r-materialisation of E \ E -w.r.t. Π.
  3. Each combination of a rule r and a substitution τ is considered at most once in line 50 or line 58, but not both.
  4. Each combination of a rule r and a substitution τ is considered at most once in line 15.
  5. [Abiteboul et al., 1995] S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases. Addison Wesley, 1995.
  6. [Aref, 2010] Molham Aref. Datalog for Enterprise Software: from Industrial Applications to Research (Invited Talk). In Tech. Comm. ICLP, volume 7, page 1, 2010.
  7. [Baader and Nipkow, 1998] F. Baader and T. Nipkow. Term Rewriting and All That. CUP, 1998.
  8. [Bishop et al., 2011] Barry Bishop, Atanas Kiryakov, Damyan Ognyanoff, Ivan Peikov, Zdravko Tashev, and Ruslan Velkov. OWLIM: A family of scalable semantic repositories. Semantic Web, 2(1):33-42, 2011.
  9. [de Kleer, 1986] Johan de Kleer. An Assumption-Based TMS. Artificial Intelligence, 28(2):127-162, 1986.
  10. [Dewan et al., 1992] H. M. Dewan, D. Ohsie, S. J. Stolfo, O. Wolfson, and S. Da Silva. Incremental Database Rule Processing In PARADISER. Journal of Intelligent Infor- mation Systems, 1(2):177-209, 1992.
  11. [Doyle, 1979] Jon Doyle. A Truth Maintenance System. Ar- tificial Intelligence, 12(3):231-272, 1979.
  12. [Goasdoué et al., 2013] Franc ¸ois Goasdoué, Ioana Manolescu, and Alexandra Roatis. Efficient query answering against dynamic RDF databases. In Proc. EDBT, pages 299-310. ACM, 2013.
  13. [Grosof et al., 2003] B. N. Grosof, I. Horrocks, R. Volz, and S. Decker. Description Logic Programs: Combining Logic Programs with Description Logic. In Proc. WWW, pages 48-57, 2003.
  14. [Guo et al., 2005] Y. Guo, Z. Pan, and J. Heflin. LUBM: A benchmark for OWL knowledge base systems. Journal of Web Semantics, 3(2-3):158-182, 2005.
  15. [Gupta et al., 1993] A. Gupta, I. S. Mumick, and V. S. Sub- rahmanian. Maintaining Views Incrementally. In Proc. SIGMOD, pages 157-166. ACM, 1993.
  16. [Horrocks et al., 2004] I.
  17. Horrocks, P. F. Patel-Schneider, H. Boley, S. Tabet, B. Grosof, and M. Dean. SWRL: A Semantic Web Rule Language Combining OWL and RuleML, W3C Member Submission, 2004.
  18. [Ma et al., 2006] L. Ma, Y. Yang, Z. Qiu, G. T. Xie, Y. Pan, and S. Liu. Towards a Complete OWL Ontology Bench- mark. In Proc. ESWC, pages 125-139, 2006.
  19. [Motik et al., 2009] B. Motik, B. Cuenca Grau, I. Horrocks, Z. Wu, A. Fokoue, and C. Lutz. OWL 2 Web Ontology Language: Profiles, W3C Recommendation, October 27 2009.
  20. [Motik et al., 2014] Boris Motik, Yavor Nenov, Robert Piro, Ian Horrocks, and Dan Olteanu. Parallel Materialisation of Datalog Programs in Centralised, Main-Memory RDF Systems. In Proc. AAAI, 2014.
  21. [Motik et al., 2015a] Boris Motik, Yavor Nenov, Robert Piro, and Ian Horrocks. Combining rewriting and incre- mental materialisation maintenance for datalog programs with equality. CoRR, 2015.
  22. [Motik et al., 2015b] Boris Motik, Yavor Nenov, Robert Piro, and Ian Horrocks. Handling owl:sameAs via Rewrit- ing. In Proc. AAAI, 2015.
  23. [Motik et al., 2015c] Boris Motik, Yavor Nenov, Robert Piro, and Ian Horrocks. Incremental Update of Data- log Materialisation: the Backward/Forward Algorithm. In Proc. AAAI, 2015.
  24. [Nicolas and Yazdanian, 1983] J.-M. Nicolas and K. Yazda- nian. An Outline of BDGEN: A Deductive DBMS. In Proc. IFIP, pages 711-717, 1983.
  25. [Nieuwenhuis and Rubio, 2001] R. Nieuwenhuis and A. Ru- bio. Paramodulation-Based Theorem Proving. In A. Robinson and A. Voronkov, editors, Handbook of Au- tomated Reasoning, volume I, chapter 7, pages 371-443. Elsevier Science, 2001.
  26. [Stocker and Smith, 2008] Markus Stocker and Michael Smith. Owlgres: A Scalable OWL Reasoner. In Proc. OWLED, 2008.
  27. [Urbani et al., 2012] J. Urbani, S. Kotoulas, J. Maassen, F. van Harmelen, and H. E. Bal. WebPIE: A Web-scale Parallel Inference Engine using MapReduce. Journal of Web Semantics, 10:59-75, 2012.
  28. [Urbani et al., 2013] J. Urbani, A. Margara, C. J. H. Jacobs, F. van Harmelen, and H. E. Bal. DynamiTE: Parallel Mate- rialization of Dynamic RDF Data. In Proc. ISWC, volume 8218, pages 657-672. Springer, 2013.
  29. [Wu et al., 2008] Z. Wu, G. Eadon, S. Das, E. I. Chong, V. Kolovski, M. Annamalai, and J. Srinivasan. Imple- menting an Inference Engine for RDFS/OWL Constructs and User-Defined Rules in Oracle. In Proc. ICDE, pages 1239-1248. IEEE, 2008.
  30. [Zhou et al., 2013] Y. Zhou, B. Cuenca Grau, I. Horrocks, Z. Wu, and J. Banerjee. Making the most of your triple store: query answering in OWL 2 using an RL reasoner. In Proc. WWW, 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