The partitions argument is a keyword or list of keywords specifying the types of objects to be saved. Available partitions are :concepts, :relations, :instances, and :behaviors. If this argument is not supplied, all partitions are saved.
The path-name argument is a string that specifies the file to be used for saving knowledgeBase. This defaults to the file that was associated with knowledgeBase when that knowledge base was defined. If no file was associated with knowledgeBase, a warning is issued.
Unless the :suppress-diehard-output feature is set, save-kb prints the name of each saved object on standard output.
(defkb test-kb nil :path-name "test-kb.lisp") (save-kb) ==> "test-kb.lisp" (save-kb "TEST-KB" :path-name "dump.lisp") ==> "dump.lisp" (save-kb :partitions '(:concepts :relations)) ==> "test-kb.lisp"