Skip to main content

Memory-Saving Evaluation Plans for Datalog

  • Conference paper
  • First Online:
Logics in Artificial Intelligence (JELIA 2019)

Abstract

Ontology-based query answering (OBQA), without any doubt, represents one of the fundamental reasoning services in Semantic Web applications. Specifically, OBQA is the task of evaluating a (conjunctive) query over a knowledge base (KB) consisting of an extensional dataset paired with an ontology. A number of effective practical approaches proposed in the literature rewrite the query and the ontology into an equivalent Datalog program. In case of very large datasets, however, classical approaches for evaluating such programs tend to be memory consuming, and may even slow down the computation. In this paper, we explain how to compute a memory-saving evaluation plan consisting of an optimal indexing schema for the dataset together with a suitable body-ordering for each Datalog rule. To evaluate the quality of our approach, we compare our plans with the classical approach used by DLV over widely used ontological benchmarks. The results confirm the memory usage can be significantly reduced without paying any cost in efficiency.

This work has been partially supported by Samsung under project “Enhancing the DLV system for large-scale ontology reasoning”, by MISE under project “S2BDW” (F/050389/01-03/X32)-“Horizon2020” PON I&C2014-20, by Regione Calabria under project “DLV LargeScale” (CUP J28C17000220006) - POR Calabria 2014-20, and by the European Union’s Horizon 2020 research and innovation programme under the Marie Skodowska-Curie grant agreement No. 690974 for the project “MIREL: MIning and REasoning with Legal texts”.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Adrian, W.T., Manna, M., Leone, N., Amendola, G., Adrian, M.: Entity set expansion from the web via ASP. In: ICLP (Technical Communications). OASICS, vol. 58, pp. 1:1–1:5. Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik (2017)

    Google Scholar 

  2. Amendola, G.: Preliminary results on modeling interdependent scheduling games via answer set programming. In: Proceedings of RCRA. CEUR-WS.org (2018, to appear)

    Google Scholar 

  3. Amendola, G.: Solving the stable roommates problem using incoherent answer set programs. In: Proceedings of RCRA. CEUR-WS.org (2018, to appear)

    Google Scholar 

  4. Amendola, G., Dodaro, C., Leone, N., Ricca, F.: On the application of answer set programming to the conference paper assignment problem. In: Adorni, G., Cagnoni, S., Gori, M., Maratea, M. (eds.) AI*IA 2016. LNCS (LNAI), vol. 10037, pp. 164–178. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-49130-1_13

    Chapter  Google Scholar 

  5. Amendola, G., Greco, G., Leone, N., Veltri, P.: Modeling and reasoning about NTU games via answer set programming. In: IJCAI, pp. 38–45 (2016)

    Google Scholar 

  6. Amendola, G., Leone, N., Manna, M.: Finite model reasoning over existential rules. TPLP 17(5–6), 726–743 (2017)

    MathSciNet  MATH  Google Scholar 

  7. Amendola, G., Leone, N., Manna, M.: Finite controllability of conjunctive query answering with existential : Two steps forward. In: IJCAI, pp. 5189–5193 (2018)

    Google Scholar 

  8. Amendola, G., Leone, N., Manna, M., Veltri, P.: Enhancing existential rules by closed-world variables. In: IJCAI, pp. 1676–1682 (2018)

    Google Scholar 

  9. Brewka, G., Eiter, T., Truszczynski, M.: Answer set programming at a glance. Commun. ACM 54(12), 92–103 (2011)

    Article  Google Scholar 

  10. Calì, A., Gottlob, G., Lukasiewicz, T.: Tractable query answering over ontologies with datalog+/-. In: Proceedings of DL 2009 (2009)

    Google Scholar 

  11. Calimeri, F., et al.: ASP-core-2: Input language format (2012). https://www.mat.unical.it/aspcomp2013/files/ASP-CORE-2.03b.pdf

  12. Calimeri, F., Fuscà, D., Perri, S., Zangari, J.: I-DLV: the new intelligent grounder of DLV. Intelligenza Artificiale 11(1), 5–20 (2017)

    Article  Google Scholar 

  13. Calimeri, F., Perri, S., Zangari, J.: Optimizing answer set computation via heuristic-based decomposition. In: TPLP, pp. 1–26 (2019)

    Google Scholar 

  14. Eiter, T., Faber, W., Leone, N., Pfeifer, G.: Declarative problem-solving using the DLV system. In: Minker, J. (ed.) Logic-Based Artificial Intelligence. SECS, vol. 597, pp. 79–103. Springer, Boston (2000). https://doi.org/10.1007/978-1-4615-1567-8_4

    Chapter  Google Scholar 

  15. Eiter, T., Ianni, G., Krennwallner, T.: Answer set programming: a primer. In: Tessaris, S., et al. (eds.) Reasoning Web 2009. LNCS, vol. 5689, pp. 40–110. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-03754-2_2

    Chapter  Google Scholar 

  16. Eiter, T., Ortiz, M., Simkus, M., Tran, T., Xiao, G.: Query rewriting for Horn-SHIQ plus rules. In: Proceedings of AAAI (2012)

    Google Scholar 

  17. Gelfond, M., Lifschitz, V.: Classical negation in logic programs and disjunctive databases. New Gener. Comput. 9(3/4), 365–385 (1991)

    Article  Google Scholar 

  18. Grau, B.C., Motik, B., Stoilos, G., Horrocks, I.: Completeness guarantees for incomplete ontology reasoners: theory and practice. J. Artif. Intell. Res. 43, 419–476 (2012)

    Article  MathSciNet  Google Scholar 

  19. Leone, N., et al.: The DLV system for knowledge representation and reasoning. ACM Trans. Comput. Logic 7(3), 499–562 (2006)

    Article  MathSciNet  Google Scholar 

  20. Manna, M., Ricca, F., Terracina, G.: Consistent query answering via ASP from different perspectives: theory and practice. TPLP 13(2), 227–252 (2013)

    MathSciNet  MATH  Google Scholar 

  21. Manna, M., Ricca, F., Terracina, G.: Taming primary key violations to query large inconsistent data via ASP. TPLP 15(4–5), 696–710 (2015)

    MathSciNet  MATH  Google Scholar 

  22. Marek, V.W., Truszczyński, M.: Stable models and an alternative logic programming paradigm. In: Apt, K.R., Marek, V.W., Truszczyński, M., Warren, D.S. (eds.) The Logic Programming Paradigm - A 25-Year Perspective. AI, pp. 375–398. Springer, Heidelberg (1999). https://doi.org/10.1007/978-3-642-60085-2_17

    Chapter  MATH  Google Scholar 

  23. Mora, J., Corcho, O.: Towards a systematic benchmarking of ontology-based query rewriting systems. In: Alani, H., et al. (eds.) ISWC 2013. LNCS, vol. 8219, pp. 376–391. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-41338-4_24

    Chapter  Google Scholar 

  24. Niemelä, I.: Logic programming with stable model semantics as constraint programming paradigm. Ann. Math. Artif. Intell. 25(3–4), 241–273 (1999)

    Article  MathSciNet  Google Scholar 

  25. Ortiz, M.: Ontology based query answering: the story so far. In: AMW. CEUR Workshop Proceedings, vol. 1087. CEUR-WS.org (2013)

    Google Scholar 

  26. Ricca, F., et al.: A logic-based system for e-tourism. Fundam. Inform. 105(1–2), 35–55 (2010)

    MathSciNet  Google Scholar 

  27. Ricca, F., et al.: Team-building with answer set programming in the Gioia-Tauro seaport. TPLP 12(3), 361–381 (2012)

    MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jessica Zangari .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Allocca, C., Costabile, R., Fiorentino, A., Perri, S., Zangari, J. (2019). Memory-Saving Evaluation Plans for Datalog. In: Calimeri, F., Leone, N., Manna, M. (eds) Logics in Artificial Intelligence. JELIA 2019. Lecture Notes in Computer Science(), vol 11468. Springer, Cham. https://doi.org/10.1007/978-3-030-19570-0_29

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-19570-0_29

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-19569-4

  • Online ISBN: 978-3-030-19570-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics