delete-concept [Function]


Purpose

The delete-concept function deletes a concept or relation.

Syntax

delete-concept concept &key type delete-merged-concepts-p

Arguments

The concept argument is a concept or relation, or the name of a concept or relation.

The type argument is the keyword :concept or :relation. It is needed when concept is a symbol that names both a concept and relation.

If concept has merged into some other concept, then if the delete-merged-concepts-p argument is t, both concepts will be deleted. Otherwise, the concepts will be unmerged and only concept will be deleted.

Value

The delete-concept function normally returns concept. If merged concepts were deleted, then a list of these concepts is returned.

Remarks

For each dependent of concept---that is, each concept whose definition directly or indirectly references concept---delete-concept asks if that dependent may be deleted. The concept itself is only deleted after the user has approved deletion of all dependents.

Examples

(delete-concept 'A) ==> |C|A 
(delete-concept 'r :type :relation) ==> |R|R 
(defconcept C :is B) 
(delete-concept (fc C) :delete-merged-concepts-p t) ==> (|C|B |C|C)

See Also

Last modified: Jun 1 1995