-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeta-aqua-interface.lisp
116 lines (103 loc) · 3.35 KB
/
meta-aqua-interface.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
;;; -*- Mode: LISP; Syntax: Common-lisp; Package: Meta-aqua; Base: 10 -*-
(defpackage Meta-AQUA
(:nicknames MetaAQUA)
(:use cl
Misc Frames Representations
;; Nonlin
)
)
(in-package :metaaqua)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;
;;;; The Meta-AQUA Introspective Multistrategy Learning System
;;;; Version 6
;;;;
;;;; Copyright (C) 1996 Michael T. Cox (mcox25@covad.net)
;;;;
;;;;
;;;; File: meta-aqua-interface.lisp
;;;;
;;;;
;;;; *******************************************************
;;;
;;; This program is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by the Free
;;; Software Foundation; either version 1, or (at your option) any later
;;; version.
;;;
;;; This program is distributed in the hope that it will be useful, but WITHOUT
;;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
;;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
;;; more details.
;;;
;;; You should have received a copy of the GNU General Public License along
;;; with this program; if not, write to the Free Software Foundation, Inc., 675
;;; Mass Ave, Cambridge, MA 02139, USA. In emacs type C-h C-w to view license.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Explicitly import constants from package Framesystem
;;; in order that they be internal symbols of this package,
;;; not just accessible.
;;;
(import (list
frames::*entity*
frames::*literal*
;; |||||| Are the following three necessary?
;;; 'frames::attribute-value
;;; 'frames::status-value
;;; 'frames::truth-value
frames::*predefined-instance*
frames::*status-slot*
frames::*truth-slot*
frames::*co-domain-slot*
frames::*domain-slot*
frames::*relation-facet*
frames::*value-facet*
frames::*var-type*
frames::*Back-Ptrs*
frames::*instance-prop*
frames::*attribute-value-prop*
frames::*slot-prop*
frames::*nil*
frames::*in*
frames::*out*
frames::*isa-property*
frames::*dummy*
frames::*self*
))
;;;
;;; Export *question* so Tale-Spin will see it.
;;;
(export '(*question*
*story-instance*)
)
;;;
;;; Function import-slot-names is used to make the symbols standing for
;;; the slot names (roles) defined in another package also accessable
;;; in the current package. The parameter f-list is the list of frames
;;; to be imported into the current package.
;;;
(defun import-slot-names (f-list)
(let ((slot-list nil))
(dolist (each-frame f-list)
(dolist (each-slot
(frame->slots
(symbol-value
each-frame)))
(pushnew (slot->role each-slot)
slot-list)))
(import slot-list)))
;(trace import-slot-names)
;;;
;;; The following makes internalizes the definitions
;;; of Representations module. If one does not
;;; want the knowledge base included in the
;;; application, then comment out this line and the next
;;; non-comment line.
;;;
(import REPS::*extant-frames*)
;;;
;;; Use the following if one wishes to build their conceptual memory on top
;;; of the knowledge in Representations Package.
;;;
(import-slot-names REPS::*extant-frames*)