Querying over disjunctive ASP with functions is a highly undecidable task in general. In this paper we focus on disjunctive logic programs with stratified negation and functions under the stable model semantics (ASP(fs)). We show that query answering in this setting is decidable, if the query is finitely recursive (ASP(fr)(fs)). Our proof yields also an effective method for query evaluation. It is done by extending the magic set technique to ASP(fr)(fs). We show that the magic-set rewritten program is query equivalent to the original one (under both brave and cautious reasoning). Moreover, we prove that the rewritten program is also finitely ground, implying that it is decidable. Importantly, finitely ground programs are evaluable using existing ASP solvers, making the class of ASP(fr)(fs) queries usable in practice.

Disjunctive ASP with Functions: Decidable Queries and Effective Computation

ALVIANO, Mario;FABER, WOLFGANG;LEONE, Nicola
2010-01-01

Abstract

Querying over disjunctive ASP with functions is a highly undecidable task in general. In this paper we focus on disjunctive logic programs with stratified negation and functions under the stable model semantics (ASP(fs)). We show that query answering in this setting is decidable, if the query is finitely recursive (ASP(fr)(fs)). Our proof yields also an effective method for query evaluation. It is done by extending the magic set technique to ASP(fr)(fs). We show that the magic-set rewritten program is query equivalent to the original one (under both brave and cautious reasoning). Moreover, we prove that the rewritten program is also finitely ground, implying that it is decidable. Importantly, finitely ground programs are evaluable using existing ASP solvers, making the class of ASP(fr)(fs) queries usable in practice.
2010
answer set programming ; magic sets; disjunctive logic programs; decidability
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.11770/143958
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 33
  • ???jsp.display-item.citation.isi??? 15
social impact