TY - GEN
T1 - Towards answer set programming with sorts
AU - Balai, Evgenii
AU - Gelfond, Michael
AU - Zhang, Yuanlin
PY - 2013
Y1 - 2013
N2 - Existing ASP languages lack support for conveniently specifying objects, their sorts and the sorts of the parameters of relations in an application domain. However, such support may allow a programmer to better structure the program, to automatically determine some syntax and semantic errors and to avoid thinking about safety of ASP rules - non-declarative conditions on rules required by existing ASP systems. In this paper, we define the syntax and semantics of a knowledge representation language SPARC which offers explicit constructs to specify objects, relations, and their sorts. The language expands CR-Prolog - an extension of ASP by consistency restoring rules. We introduce an implementation of SPARC based on its translation to DLV with weak constraints. A syntax checking algorithm helps to avoid errors related to misspellings as well as simple type errors. Another type checking algorithm flags program rules which, due to type conflicts, have no ground instantiations.
AB - Existing ASP languages lack support for conveniently specifying objects, their sorts and the sorts of the parameters of relations in an application domain. However, such support may allow a programmer to better structure the program, to automatically determine some syntax and semantic errors and to avoid thinking about safety of ASP rules - non-declarative conditions on rules required by existing ASP systems. In this paper, we define the syntax and semantics of a knowledge representation language SPARC which offers explicit constructs to specify objects, relations, and their sorts. The language expands CR-Prolog - an extension of ASP by consistency restoring rules. We introduce an implementation of SPARC based on its translation to DLV with weak constraints. A syntax checking algorithm helps to avoid errors related to misspellings as well as simple type errors. Another type checking algorithm flags program rules which, due to type conflicts, have no ground instantiations.
UR - http://www.scopus.com/inward/record.url?scp=84885727271&partnerID=8YFLogxK
U2 - 10.1007/978-3-642-40564-8_14
DO - 10.1007/978-3-642-40564-8_14
M3 - Conference contribution
AN - SCOPUS:84885727271
SN - 9783642405631
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 135
EP - 147
BT - Logic Programming and Nonmonotonic Reasoning - 12th International Conference, LPNMR 2013, Proceedings
T2 - 12th International Conference on Logic Programming and Nonmonotonic Reasoning, LPNMR 2013
Y2 - 15 September 2013 through 19 September 2013
ER -