Loom-Thing [Concept]


Purpose

The Loom-Thing predicate succeeds if its argument is an instance of a Loom-defined class.

Syntax

Loom-Thing object

Arguments

The object argument is any object.

Value

The Loom-Thing predicate returns t if object is a concept, relation, Loom instance, CLOS instance, or knowledge base.

Examples

(ask (Loom-Thing Thing)) ==> T 
(create 'Joe nil) 
(ask (Loom-Thing Joe)) ==> T 
(setq ?ci (create 'Mary (fc Thing) :clos-instance-p t)) 
(ask (Loom-Thing ?ci)) ==> T 
(setq ?kb (find-kb "USER-KB")) 
(ask (Loom-Thing ?kb)) ==> T 
(ask (Loom-Thing 3)) ==> NIL

See Also

Last modified: Jun 1 1995