skip to main content
10.1145/3551357.3551371acmotherconferencesArticle/Chapter ViewAbstractPublication PagesppdpConference Proceedingsconference-collections
research-article
Open access

ASP-based Multi-shot Reasoning via DLV2 with Incremental Grounding

Published: 20 September 2022 Publication History

Abstract

DLV2 is an AI tool for Knowledge Representation and Reasoning which supports Answer Set Programming (ASP) – a logic-based declarative formalism, successfully used in both academic and industrial applications. Given a logic program modelling a computational problem, an execution of DLV2 produces the so-called answer sets that correspond one-to-one to the solutions. The computational process relies on the typical Ground&Solve approach where the grounding step transforms the input program into a new, equivalent ground program, and the subsequent solving step applies propositional algorithms to search for the answer sets. Recently, emerging applications in contexts such as stream reasoning and event processing demand for multi-shot reasoning: here, the system is expected to be reactive while repeatedly executed over rapidly changing data. In this work, we present a new incremental reasoner obtained from the evolution of DLV2 towards multi-shot reasoning. Rather than restarting the computation from scratch, the system remains alive and incrementally handles the internal grounding process: in a completely transparent fashion for the user, at each shot, it reuses previous computations for building and maintaining a large, more general ground program, from which a smaller yet equivalent portion is determined and used for computing answer sets. We describe the system, its usage, its applicability and performance in some practically relevant domains.

References

[1]
Puput Dani Prasetyo Adi, Volvo Sihombing, Victor Marudut Mulia Siregar, Gomal Juni Yanris, Fricles Ariwisanto Sianturi, Windania Purba, Saut Parsaoran Tamba, Julianto Simatupang, Rahman Arifuddin, Subairi, and Dwi Arman Prasetya. 2021. A Performance Evaluation of ZigBee Mesh Communication on the Internet of Things (IoT). In 2021 3rd East Indonesia Conference on Computer and Information Technology (EIConCIT). 7–13. https://doi.org/10.1109/EIConCIT50028.2021.9431875
[2]
Mario Alviano, Francesco Calimeri, Carmine Dodaro, Davide Fuscà, Nicola Leone, Simona Perri, Francesco Ricca, Pierfrancesco Veltri, and Jessica Zangari. 2017. The ASP System DLV2. In LPNMR(Lecture Notes in Computer Science, Vol. 10377). Springer, 215–221.
[3]
Harald Beck, Bruno Bierbaumer, Minh Dao-Tran, Thomas Eiter, Hermann Hellwagner, and Konstantin Schekotihin. 2017. Stream reasoning-based control of caching strategies in CCN routers. In IEEE International Conference on Communications, ICC 2017, Paris, France, May 21-25, 2017. IEEE, 1–6. https://doi.org/10.1109/ICC.2017.7996762
[4]
Harald Beck, Minh Dao-Tran, and Thomas Eiter. 2018. LARS: A Logic-based framework for Analytic Reasoning over Streams. Artif. Intell. 261(2018), 16–70. https://doi.org/10.1016/j.artint.2018.04.003
[5]
Harald Beck, Thomas Eiter, and Christian Folie. 2017. Ticker: A system for incremental ASP-based stream reasoning. TPLP 17, 5-6 (2017), 744–763. https://doi.org/10.1017/S1471068417000370
[6]
Jori Bomanson, Tomi Janhunen, and Antonius Weinzierl. 2019. Enhancing Lazy Grounding with Lazy Normalization in Answer-Set Programming. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019. AAAI Press, 2694–2702. https://doi.org/10.1609/aaai.v33i01.33012694
[7]
Gerhard Brewka, Thomas Eiter, and Miroslaw Truszczynski. 2011. Answer set programming at a glance. Commun. ACM 54, 12 (2011), 92–103. https://doi.org/10.1145/2043174.2043195
[8]
Francesco Calimeri, Wolfgang Faber, Martin Gebser, Giovambattista Ianni, Roland Kaminski, Thomas Krennwallner, Nicola Leone, Marco Maratea, Francesco Ricca, and Torsten Schaub. 2020. ASP-Core-2 Input Language Format. Theory Pract. Log. Program. 20, 2 (2020), 294–309. https://doi.org/10.1017/S1471068419000450
[9]
Francesco Calimeri, Stefano Germano, Giovambattista Ianni, Francesco Pacenza, Simona Perri, and Jessica Zangari. 2018. Integrating Rule-Based AI Tools into Mainstream Game Development. In RuleML+RR 2018(LNCS, Vol. 11092). 310–317. https://doi.org/10.1007/978-3-319-99906-7_23
[10]
Francesco Calimeri, Giovambattista Ianni, Francesco Pacenza, Simona Perri, and Jessica Zangari. 2019. Incremental Answer Set Programming with Overgrounding. TPLP 19, 5-6 (2019), 957–973.
[11]
Francesco Calimeri, Giovambattista Ianni, Francesco Pacenza, Simona Perri, and Jessica Zangari. 2021. Stream Reasoning with Incremental Grounding. In 5th Stream Reasoning Workshop.
[12]
Francesco Calimeri, Marco Manna, Elena Mastria, Maria Concetta Morelli, Simona Perri, and Jessica Zangari. 2021. I-DLV-sr: A Stream Reasoning System based on I-DLV. Theory Pract. Log. Program. 21, 5 (2021), 610–628. https://doi.org/10.1017/S147106842100034X
[13]
Alessandro Dal Palù, Agostino Dovier, Enrico Pontelli, and Gianfranco Rossi. 2009. GASP: Answer Set Programming with Lazy Grounding. Fundam. Inform. 96, 3 (2009), 297–322.
[14]
Daniele Dell’Aglio, Emanuele Della Valle, Frank van Harmelen, and Abraham Bernstein. 2017. Stream reasoning: A survey and outlook. Data Sci. 1, 1-2 (2017), 59–83.
[15]
Camil Demetrescu, Irene Finocchi, and Giuseppe F. Italiano. 2004. Dynamic Graphs. In Handbook of Data Structures and Applications, D. P. Mehta and S. Sahni (Eds.). Chapman and Hall/CRC. https://doi.org/10.1201/9781420035179.ch36
[16]
Carmine Dodaro, Thomas Eiter, Paul Ogris, and Konstantin Schekotihin. 2020. Managing caching strategies for stream reasoning with reinforcement learning. Theory Pract. Log. Program. 20, 5 (2020), 625–640. https://doi.org/10.1017/S147106842000037X
[17]
Thomas Eiter, Giovambattista Ianni, and Thomas Krennwallner. 2009. Answer Set Programming: A Primer. In Reasoning Web. Semantic Technologies for Information Systems, 5th International Summer School 2009, Brixen-Bressanone, Italy, August 30 - September 4, 2009, Tutorial Lectures(Lecture Notes in Computer Science, Vol. 5689), Sergio Tessaris, Enrico Franconi, Thomas Eiter, Claudio Gutiérrez, Siegfried Handschuh, Marie-Christine Rousset, and Renate A. Schmidt (Eds.). Springer, 40–110. https://doi.org/10.1007/978-3-642-03754-2_2
[18]
Wolfgang Faber, Nicola Leone, and Simona Perri. 2012. The Intelligent Grounder of DLV. In Correct Reasoning - Essays on Logic-Based AI in Honour of Vladimir Lifschitz(Lecture Notes in Computer Science, Vol. 7265). 247–264. https://doi.org/10.1007/978-3-642-30743-0_17
[19]
Martin Gebser, Roland Kaminski, Benjamin Kaufmann, and Torsten Schaub. 2019. Multi-shot ASP solving with clingo. TPLP 19, 1 (2019), 27–82.
[20]
Martin Gebser, Nicola Leone, Marco Maratea, Simona Perri, Francesco Ricca, and Torsten Schaub. 2018. Evaluation Techniques and Systems for Answer Set Programming: a Survey. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI 2018, July 13-19, 2018, Stockholm, Sweden, Jérôme Lang (Ed.). ijcai.org, 5450–5456. https://doi.org/10.24963/ijcai.2018/769
[21]
Michael Gelfond and Vladimir Lifschitz. 1991. Classical Negation in Logic Programs and Disjunctive Databases. New Generation Computing 9, 3/4 (1991), 365–386. https://doi.org/10.1007/BF03037169
[22]
Meng He, Ganggui Tang, and Norbert Zeh. 2014. Orienting Dynamic Graphs, with Applications to Maximal Matchings and Adjacency Queries. In Algorithms and Computation - 25th International Symposium, ISAAC 2014, Jeonju, Korea, December 15-17, 2014, Proceedings(Lecture Notes in Computer Science, Vol. 8889), Hee-Kap Ahn and Chan-Su Shin (Eds.). Springer, 128–140. https://doi.org/10.1007/978-3-319-13075-0_11
[23]
Giovambattista Ianni, Francesco Pacenza, and Jessica Zangari. 2020. Incremental maintenance of overgrounded logic programs with tailored simplifications. TPLP 20, 5 (2020), 719–734.
[24]
Eugene L. Lawler. 1976. A Note on the Complexity of the Chromatic Number Problem. Inf. Process. Lett. 5(1976), 66–67.
[25]
Claire Lefèvre, Christopher Béatrix, Igor Stéphan, and Laurent Garcia. 2017. ASPeRiX, a first-order forward chaining approach for answer set computing. TPLP 17, 3 (2017), 266–310.
[26]
Nicola Leone, Gerald Pfeifer, Wolfgang Faber, Thomas Eiter, Georg Gottlob, Simona Perri, and Francesco Scarcello. 2006. The DLV system for knowledge representation and reasoning. ACM Trans. Comput. Log. 7, 3 (2006), 499–562. https://doi.org/10.1145/1149114.1149117
[27]
Alessandra Mileo, Ahmed Abdelrahman, Sean Policarpio, and Manfred Hauswirth. 2013. StreamRule: A Nonmonotonic Stream Reasoning System for the Semantic Web. In Web Reasoning and Rule Systems - 7th International Conference, RR 2013, Mannheim, Germany, July 27-29, 2013. Proceedings(Lecture Notes in Computer Science, Vol. 7994), Wolfgang Faber and Domenico Lembo (Eds.). Springer, 247–252. https://doi.org/10.1007/978-3-642-39666-3_23
[28]
Boris Motik, Yavor Nenov, Robert Piro, and Ian Horrocks. 2019. Maintenance of datalog materialisations revisited. Artificial Intelligence 269 (2019), 76–136. https://doi.org/10.1016/j.artint.2018.12.004
[29]
Zeynep Gözen Saribatur, Volkan Patoglu, and Esra Erdem. 2019. Finding optimal feasible global plans for multiple teams of heterogeneous robots using hybrid reasoning: an application to cognitive factories. Auton. Robots 43, 1 (2019), 213–238. https://doi.org/10.1007/s10514-018-9721-x
[30]
Jakob Suchan, Mehul Bhatt, Przemyslaw Andrzej Walega, and Carl P. L. Schultz. 2018. Visual Explanation by High-Level Abduction: On Answer-Set Programming Driven Reasoning About Moving Objects. In AAAI. 1965–1972. https://www.aaai.org/ocs/index.php/AAAI/AAAI18/paper/view/17303
[31]
Jeffrey D. Ullman. 1988. Principles of Database and Knowledge-Base Systems, Volume I. Principles of computer science series, Vol. 14. Computer Science Press. http://www.worldcat.org/oclc/310956623
[32]
Emanuele Della Valle, Stefano Ceri, Davide Francesco Barbieri, Daniele Braga, and Alessandro Campi. 2008. A First Step Towards Stream Reasoning. In Future Internet - FIS 2008, First Future Internet Symposium, FIS 2008, Vienna, Austria, September 29-30, 2008, Revised Selected Papers(Lecture Notes in Computer Science, Vol. 5468), John Domingue, Dieter Fensel, and Paolo Traverso (Eds.). Springer, 72–81. https://doi.org/10.1007/978-3-642-00985-3_6
[33]
Yishu Wang, Ye Yuan, Yuliang Ma, and Guoren Wang. 2019. Time-Dependent Graphs: Definitions, Applications, and Algorithms. Data Sci. Eng. 4, 4 (2019), 352–366. https://doi.org/10.1007/s41019-019-00105-0

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
PPDP '22: Proceedings of the 24th International Symposium on Principles and Practice of Declarative Programming
September 2022
187 pages
ISBN:9781450397032
DOI:10.1145/3551357
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 20 September 2022

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Answer Set Programming
  2. Grounding
  3. Knowledge Representation and Reasoning
  4. Logic Programming
  5. Nonmonotonic reasoning
  6. Stream Reasoning

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Conference

PPDP 2022

Acceptance Rates

Overall Acceptance Rate 230 of 486 submissions, 47%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)168
  • Downloads (Last 6 weeks)14
Reflects downloads up to 31 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Login options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media