pc [Macro]


Purpose

The pc macro prints the definition of a given concept. It should be used interactively rather than in application code.

Syntax

pc datum

Arguments

The datum argument is a Lisp form. It may be an extended identifier having the form kb\^{\space}name, where kb is the knowledge base from which the search starts. It may also be an identifier beginning and/or ending with the wildcard character *, in which case the search proceeds until the first matching object is found. It is not necessary to specify the package in which datum resides since the search is package-independent. If datum is a symbol, Loom first tries to locate the object named by that symbol. If this fails, or if datum is a list, Loom evaluates datum and searches for the object corresponding to the resulting value.

Value

The return value is nil.

Remarks

The definitions printed by pc reflect inferences made by Loom during classification and matching. Unlike the output of save-kb, these definitions may differ considerably from the original source definitions supplied by the user.

Loom provides the pc macro as a development tool. Because datum may be evaluated at compile time, pc cannot be reliably used in application code.

Examples

(pc Thing) --> 
    (DEFCONCEPT THING 
        :CHARACTERISTICS :CLOS-CLASS 
        :KB UPPER-STRUCTURE-KB) 
(pc *cycle) --> 
    (DEFCONCEPT UNICYCLE :IS (:AND CYCLE (:EXACTLY 1 HAS-WHEEL))) 
(pc (first concepts)) --> 
    (DEFCONCEPT PERSON :IS-PRIMITIVE ANIMAL)

See Also

Last modified: Jun 1 1995