get-subconcepts [Function]


Purpose

The get-subconcepts function finds all subconcepts, or only the direct subconcepts, of a given concept.

Syntax

get-subconcepts concept &key direct-p

Arguments

The concept argument is the concept, or the name of the concept, whose subconcepts are to be found.

If the direct-p argument is t, only the most general subconcepts are returned. Otherwise, all subconcepts, including concept itself, are returned.

Value

This function returns a list of concepts.

Examples

(defconcept Animal)
(defconcept Person :is-primitive Animal) 
(defconcept Man :is-primitive Person) 
(get-subconcepts 'Animal) ==> (|C|ANIMAL |C|PERSON |C|MAN) 
(get-subconcepts (fc Animal) :direct-p t) ==> (|C|PERSON)

See Also

Last modified: Jun 1 1995