Abstract
Data abstraction and inheritance, some of the most important features in constructing a large, clean software system, in a logic programming language Prolog/KR, an expansion of Prolog, are described. First two kinds of processes are added; one is called NPO, which is mainly used to implement a generator, the other is called CPO, which is mainly used to implement an abstract data object. Then synchronization features are added to implement abstract data types that can be used concurrently. Using this feature it is possible to employ pipes for communications among processes. Finally, inheritance mechanism is added to define hierarchies among objects.
Similar content being viewed by others
References
Clark, D. W., Lampson, B. W., and Pier, K. A.: The Memory System of a High-Performance Personal Computer,CSL-81-1 (Xerox Palo Alto Research Center, Palo Alto CA, 1981) 51.
Clark, K., and Tarnlund, S. A.: A First Order Theory of Data and Programs, Proc. IFIP (1977) 939.
Goldberg, A.: Introducing the Smalltalk-80 System, BYTE,6 (1981) 14.
Guttag, J. H., Horowitz, E., and Musser, D. R.: Abstract Data Types and Software Validation, CACM,21, No. 12 (1978) 1048.
Liskov, B., and Zilles, S.: Programming with Abstract Data Types, SIGPLAN Notices,9, No. 4 (1974) 50.
Nakashima H.: Prolog/KR User’s Manual,METR 82-4 (University of Tokyo, Tokyo, 1982).
Nakashima H.: Prolog/KR—Language Features, Proc. of the First Int. Logic Programming Conf. (ADDP, Marseille, 1982) 65.
Nakashima H.: A Knowledge Representation System: Prolog/KR,METR 83-5 (University of Tokyo, Tokyo, 1983).
Shapiro, E.: A Subset of Concurrent Prolog and Its Interpreter, ICOT Technical Report,TR-003 (ICOT, Tokyo, 1983).
Suzuki, N.: Experience with Specification and Verification of Hardware Using PROLOG, Proc. of Working Conf. on VLSI Eng. (IBM Japan, Tokyo, 1982) 105.
Author information
Authors and Affiliations
About this article
Cite this article
Nakashima, H., Suzuki, N. Data abstraction in Prolog/KR. NGCO 1, 49–62 (1983). https://doi.org/10.1007/BF03037021
Issue Date:
DOI: https://doi.org/10.1007/BF03037021