Hostname: page-component-77f85d65b8-hzqq2 Total loading time: 0 Render date: 2026-03-29T09:28:44.911Z Has data issue: false hasContentIssue false

ASP Chef Grows Mustache to Look Better

Published online by Cambridge University Press:  28 August 2025

MARIO ALVIANO
Affiliation:
University of Calabria, Rende, Italy (e-mails: mario.alviano@unical.it, luis.reiners@unical.it)
LUIS ANGEL RODRIGUEZ REINERS
Affiliation:
University of Calabria, Rende, Italy (e-mails: mario.alviano@unical.it, luis.reiners@unical.it)
WOLFGANG FABER
Affiliation:
University of Klagenfurt, Klagenfurt, Austria (e-mail: wolfgang.faber@aau.at)
Rights & Permissions [Opens in a new window]

Abstract

We present ASP Chef Mustache, an extension of ASP Chef that enhances template-based rendering of answer set programming (ASP) solutions using a logic-less templating system inspired by Mustache. Our approach integrates data visualization frameworks such as Tabulator, Chart.js, and vis.js, enabling interactive representations of ASP interpretations as tables, charts, and graphs. Mustache queries in templates support advanced constructs for formatting, sorting, and multi-stage expansion, facilitating the generation of rich, structured outputs. We demonstrate the power of this framework through a series of use cases, including data analysis for the Italian VQR, visualization of blocking sets in graphs, and scheduling problems. The result is a versatile tool for bridging declarative problem solving and modern web-based visual analytics.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig. 1. Side outputs associated with data from Example6: graph with highlighted clique obtained with the @vis.js/Network operation; table showing node costs and computed clique obtained with the tabulator operation; chart reporting statistics obtained with the Chart.js operation. A recipe showcasing these examples is available at https://asp-chef.alviano.net/s/ICLP2025/running-example.

Figure 1

Fig. 2. VQR data analysis with Chart.js and ApexChart.

Figure 2

Fig. 3. Blocking sets and authorship graphs obtained with @vis.js/Network.

Figure 3

Fig. 4. Computed scheduling and job dependencies shown with @vis.js/Timeline and @vis.js/Network.

Figure 4

Fig. 5. Skyscrapers solution shown using Fabric.js and @vis.js/Graph3d (from different angles).