list-depend-ons [Function]
Purpose
The list-depend-ons function lists all concepts that are directly or indirectly referenced by the definition of a given concept.
Syntax
list-depend-ons concept &key all-p
Arguments
The concept argument is the concept or relation from which a chain of dependencies is to be computed.
If the all-p argument is t, then dependencies are followed through implications and defaults, as well as through definitions.
Value
The list-depend-ons function returns a list of the concepts and relations on which concept directly or indirectly depends.
Examples
(defconcept A :is (:all r B))
(defconcept B :implies (:at-least 1 s))
(defrelation r :range C)
(list-depend-ons (fc A)) ==> (|C|B |R|R)
(list-depend-ons (fc A) :all-p t) ==> (|C|B |C|C |R|R |R|S)
See Also
Last modified: Jun 1 1995