Table of Contents
Fetching ...

ASP-driven User-interaction with Clinguin

Alexander Beiser, Susana Hahn, Torsten Schaub

TL;DR

Clinguin addresses the challenge of building user interfaces for ASP applications by allowing UI specification directly in ASP and handling user-triggered events through a small set of dedicated predicates. It uses a client-server architecture with RESTful communication and a ui-state defined by elem/3, attr/3, and when/4, enabling interactive workflows integrated with clingo's multi-shot solving. The approach supports extensibility via modular backends and pluggable frontends, including an ExplanationBackend that delivers minimal unsatisfiable sets and natural-language explanations. The work demonstrates practical ASP-driven UI prototyping and provides open-source tooling to accelerate developer iteration and deployment.

Abstract

We present clinguin, a system for ASP-driven user interface design. Clinguin streamlines the development of user interfaces for ASP developers by letting them build interactive prototypes directly in ASP, eliminating the need for separate frontend languages. To this end, clinguin uses a few dedicated predicates to define user interfaces and the treatment of user-triggered events. This simple design greatly facilitates the specification of user interactions with an ASP system, in our case clingo.

ASP-driven User-interaction with Clinguin

TL;DR

Clinguin addresses the challenge of building user interfaces for ASP applications by allowing UI specification directly in ASP and handling user-triggered events through a small set of dedicated predicates. It uses a client-server architecture with RESTful communication and a ui-state defined by elem/3, attr/3, and when/4, enabling interactive workflows integrated with clingo's multi-shot solving. The approach supports extensibility via modular backends and pluggable frontends, including an ExplanationBackend that delivers minimal unsatisfiable sets and natural-language explanations. The work demonstrates practical ASP-driven UI prototyping and provides open-source tooling to accelerate developer iteration and deployment.

Abstract

We present clinguin, a system for ASP-driven user interface design. Clinguin streamlines the development of user interfaces for ASP developers by letting them build interactive prototypes directly in ASP, eliminating the need for separate frontend languages. To this end, clinguin uses a few dedicated predicates to define user interfaces and the treatment of user-triggered events. This simple design greatly facilitates the specification of user interactions with an ASP system, in our case clingo.

Paper Structure

This paper contains 6 sections, 5 figures.

Figures (5)

  • Figure 1: Architecture and Workflow of clinguin
  • Figure 2: User interaction via mouse actions using ui-file ui-tables.lp.
  • Figure 3: User interaction via mouse actions using UI files ui-tables.lp and ui-menu.lp.
  • Figure 4: User interaction via mouse actions using ui-tables.lp, ui-menu.lp, ui-people.lp.
  • Figure 5: Example user interaction with the explanation extension.