Abstract
The main goal of this paper is to illustrate applications of some recent developments in the theory of logic programming to knowledge representation and reasoning in common sense domains. We are especially interested in better understanding the process of development of such representations together with their specifications. We build on the previous work of Gelfond and Przymusinska in which the authors suggest that, at least in some cases, a formal specification of the domain can be obtained from specifications of its parts by applying certain operators on specifications called specification constructors and that a better understanding of these operators can substantially facilitate the programming process by providing the programmer with a useful heuristic guidance. We discuss some of these specification constructors and their realization theorems which allow us to transform specifications built by applying these constructors to declarative logic programs. Proofs of two such theorems, previously announced in a paper by Gelfond and Gabaldon, appear here for the first time. The method of specifying knowledge representation problems via specification constructors and of using these specifications for the development of their logic programming representations is illustrated by design of a simple, but fairly powerful program representing simple hierarchical domains.
Similar content being viewed by others
References
J.J. Alferes and L.M. Pereira, Reasoning with Logic Programming, Lecture Notes in Artificial Intelligence (Springer, Berlin, 1996).
K. Apt, H. Blair and A. Walker, Towards a theory of declarative knowledge, in: Foundations of Deductive Databases and Logic Programming, ed. J. Minker (Morgan Kaufmann, San Mateo, CA, 1988) pp. 89-148.
K. Apt and D. Pedreschi, Proving termination in general Prolog programs, in: Proc. of the International Conference on Theoretical Aspects of Computer Software, Lecture Notes in Computer Science, Vol. 526 (Springer, Berlin, 1991) pp. 265-289.
K. Apt and A. Pellegrini, On the occur-check free logic programs, ACM Trans. Programming Languages and Systems 16(3) (1994) 687-726.
C. Baral and M. Gelfond, Logic programming and knowledge representation, J. Logic Programming 12 (1994) 1-80.
C. Baral, M. Gelfond and O. Kosheleva, Expanding queries to incomplete databases by interpolating general logic programs, J. Logic Programming 35 (1998) 195-230.
N. Bidoit and C. Froidevaux, Minimalism subsumes default logic and circumscription, in: Proc. of LICS-87 (1987) pp. 89-97.
D. Chan, Constructive negation based on the completed databases, in: Proc. 5th International Conference and Symposium on Logic Programming (1988) pp. 111-125.
W. Chen, Extending Prolog with nonmonotonic reasoning, J. Logic Programming 27(2) (1996) 169-183.
W. Chen, T. Swift and D. Warren, Efficient top-down computation of queries under the well-founded semantics, J. Logic Programming 24(3) (1995) 161-201.
P. Cholewinski, W. Marek and M. Truszczynski, Default reasoning system DeReS, in: Proc. of KR-96 (1996) pp. 518-528.
K. Clark, Negation as failure, in: Logic and Data Bases, eds. H. Gallaire and J. Minker (Plenum Press, NY, 1978) pp. 293-322.
P. Dembinski and J. Maluszynski, AND-parallelism with intelligent backtracking for annotated logic programs, in: Logic Programming: Proc. of the International Symposium on Logic Programming, eds. V. Saraswat and K. Ueda (1985) pp. 25-38.
Y. Deville, Logic Programming: Systematic Program Development (Addison-Wesley, Reading, MA, 1990).
P.M. Dung and T.C. Son, Nonmonotonic inheritance, argumentation, and logic programming, in: Proceedings of LPNMR (1995) pp. 316-329.
P.M. Dung and T.C. Son, An argumentation-theoretic approach to reasoning with specificity, in: Proceedings of KR '96 (1996) pp. 407-18.
T. Eiter, N. Leone, C. Mateis, G. Pfeifer and F. Scarcello, A deductive system for non-monotonic reasoning, in: Proc. 4th LPNMR, Lecture Notes in Computer Science, Vol. 1265 (Springer, Berlin, 1997) pp. 363-374.
D. Etherington and R. Reiter, On inheritance hierarchies with exceptions, in: Proceedings of AAAI-83 (1983) pp. 104-108.
F. Pages, Consistency of Clark's completion and existence of stable models, J. Methods Logic Comput. Sci. 1(1) (1994) 51-60.
M. Gelfond and A. Gabaldon, From functional specifications to logic programs, in: Logic Programming: Proc. of the 1997 International Symposium, ed. J. Maluszynski (1997) pp. 355-371.
M. Gelfond and V. Lifschitz, The stable model semantics for logic programming, in: Logic Programming: Proc. of the 5th International Conference and Symposium, eds. R. Kowalski and K. Bowen (1988) pp. 1070-1080.
M. Gelfond and V. Lifschitz, Logic programs with classical negation, in: Logic Programming: Proc. of the 7th International Conference, eds. D. Warren and P. Szeredi (1990) pp. 579-597.
M. Gelfond and V. Lifschitz, Classical negation in logic programs and disjunctive databases, New Generation Computing 9 (1991) 365-385.
M. Gelfond and H. Przymusinska, Formalization of inheritance reasoning in autoepistemic logic, Fund. Inform. 13 (1990) 403-45.
M. Gelfond and H. Przymusinska, On consistency and completeness of autoepistemic theories, Fund. Inform. 16(1) (1992) 59-92.
M. Gelfond and H. Przymusinska, Towards a theory of elaboration tolerance: logic programming approach, J. Software Eng. Knowledge Eng. 6(1) (1996) 89-112.
J.F. Horty, Some direct theories of non-monotonic inheritance, in: Handbook of Logic in Artificial Intelligence and Logic Programming, eds. D. Gabbay, C. Hogger and J.A. Robinson (1994).
J.F. Horty, R.H. Thomason and D.S. Touretzky, A skeptical theory of inheritance in nonmonotonic semantic networks, Artificial Intelligence 42(2–3) (1990) 311-348.
K. Kunen, Signed data dependencies in logic programs, J. Logic Programming 7(3) (1989) 231-245.
V. Lifschitz, Restricted monotonicity, in: Proc. of AAAI-93 (1993) pp. 432-37.
V. Lifschitz, Foundations of logic programming, in: Principles of Knowledge Representation, ed. G. Brewka (CSLI Publications, 1996) pp. 69-128.
V. Lifschitz and H. Turner, Splitting a logic program, in: Proc. 11th ICLP, ed. P. Van Hentenryck (1994) pp. 23-38.
F. Lin, A study of nonmonotonic reasoning, Ph.D. thesis, Stanford University (1991).
W. Marek and V.S. Subrahmanian, The relationship between logic program semantics and non-monotonic reasoning, in: Proc. of the 6th International Conference on Logic Programming, eds. G. Levi and M. Martelli (1989) pp. 600-617.
N. McCain and H. Turner, Language independence and language tolerance in logic programs, in: Proc. of the 11th International Conference on Logic Programming (1994) pp. 38-57.
L. Niemela and P. Simons, Efficient implementation of the well-founded and stable model semantics, in: Proc. of JICSLP-96 (MIT Press, Cambridge, MA, 1996).
L. Pereira and J. Alferes, Well-founded semantics for logic programs with explicit negation, in: Proc. of the 10th European Conference on Artificial Intelligence (1992) pp. 102-106.
T. Przymusinki, On constructive negation in logic programming, in: Proc. of the North American Conference of Logic Programming (1989) pp. 16-20.
R. Reiter, On closed world data bases, in: Logic and Data Bases, eds. H. Gallaire and J. Minker (Plenum Press, New York, 1978) pp. 119-140.
R. Reiter, A logic for default reasoning, Artificial Intelligence 13(1–2) 81-132.
L.A. Stein, Resolving ambiguity in non-monotonic inheritance hierarchies, Artificial Intelligence 55(2–3) (1992) 259-310.
K. Stroetmann, A completeness result for SLDNF-resolution, J. Logic Programming 15(4) (1993) 337-355.
D. Touretzky, The Mathematics of Inheritance Systems (Morgan Kaufmann, Los Altos, CA, 1986).
H. Turner, A monotonicity theorem for extended logic programs, in: Proc. 10th ICLP, ed. D.S. Warren (1993) pp. 567-585.
H. Turner, Signed logic programs, in: Proc. of ILPS, ed. M. Bruynooghe (1994) pp. 61-75.
A. Van Gelder, K. Ross and J. Schlipf, The well-founded semantics for general logic programs, Journal of the ACM 38(3) (1991) 620-650.
X. Wang, J.H. You and L.Y. Yuan, A default interpretation of defeasible network, in: Proceedings of the 15th International Joint Conference on Artificial Intelligence (IJCAI-97) (1997) pp. 156-161.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Gelfond, M., Gabaldon, A. Building a knowledge base: an example. Annals of Mathematics and Artificial Intelligence 25, 165–199 (1999). https://doi.org/10.1023/A:1018938324292
Issue Date:
DOI: https://doi.org/10.1023/A:1018938324292