Abstract
We present the ASP-based visualization tool clingraph, which aims at visualizing ASP by means of ASP itself. This idea traces back to the aspviz tool and clingraph redevelops and extends it in the context of modern ASP systems. More precisely, clingraph takes graph specifications in terms of ASP facts and hands them over to the graph visualization system graphviz. The use of ASP provides a great interface between logic programs and/or answer sets and their visualization. Also, clingraph offers a Python API that extends this ease of interfacing to clingo’s API, and in turn to connect and monitor various aspects of the solving process.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
- 2.
- 3.
- 4.
Subgraphs correspond to clusters in graphviz.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
Strictly speaking, the definition of predicate cell/2 belongs to the visualization encoding. Nonetheless, we add it to the problem encoding since the dimension of the board, viz. n, is unavailable in the visualization encoding. This is a drawback of the sequential approach: information must be shared via the stable models.
- 12.
- 13.
We refrain from visualizing pickup and putdown actions, and rather represent them implicitly.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
References
Bösel, A., Linke, T., Schaub, T.: Profiling answer set programming: the visualization component of the noMoRe system. In: Proceedings of the JELIA 2004, pp. 702–705. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-30227-8_61
Calimeri, F., Leone, N., Ricca, F., Veltri, P.: A visual tracer for DLV. In: Proceedings of the SEA 2009, pp. 79–93. CEUR (2009)
Cliffe, O., De Vos, M., Brain, M., Padget, J.: ASPVIZ: declarative visualisation and animation using answer set programming. In: Garcia de la Banda, M., Pontelli, E. (eds.) ICLP 2008. LNCS, vol. 5366, pp. 724–728. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-89982-2_65
Gebser, M., et al.: Experimenting with robotic intra-logistics domains. TPLP 18(3–4), 502–519 (2018)
Kloimüllner, C., Oetsch, J., Pührer, J., Tompits, H.: Kara: a system for visualising and visual editing of interpretations for answer-set programs. In: Proceedings of the INAP 2011, pp. 325–344 (2011)
König, A., Schaub, T.: Monitoring and visualizing answer set solving. TPLP Suppl. 13, 4–5 (2013)
Lifschitz, V.: Answer Set Programming. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-24658-7
Perri, S., Ricca, F., Terracina, G., Cianni, D., Veltri, P.: An integrated graphic tool for developing and testing dlv programs. In: Proceedings of the SEA 2007, pp. 86–100. CEUR (2007)
Acknowledgments
This work was supported by DFG grants SCHA 550/11 and 15.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Hahn, S., Sabuncu, O., Schaub, T., Stolzmann, T. (2022). Clingraph: ASP-Based Visualization. In: Gottlob, G., Inclezan, D., Maratea, M. (eds) Logic Programming and Nonmonotonic Reasoning. LPNMR 2022. Lecture Notes in Computer Science(), vol 13416. Springer, Cham. https://doi.org/10.1007/978-3-031-15707-3_31
Download citation
DOI: https://doi.org/10.1007/978-3-031-15707-3_31
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-15706-6
Online ISBN: 978-3-031-15707-3
eBook Packages: Computer ScienceComputer Science (R0)