You can save your object base of animals by entering
into the Listener. In the file of rules
look at the function
which does this. Note how the Lisp code directly uses the same objects as the rules. If we used the Lisp code to modify the slots of the objects the KnowledgeWorks rule interpreter would keep track.
Note: KnowledgeWorks CLOS objects are ordinary CLOS objects and can be used outside KnowledgeWorks rules.
KnowledgeWorks and Prolog User Guide (Unix version) - 6 Dec 2011