The get-keys function returns the keys attached to a given concept. Each set of key/value pairs must be unique for each instance of the concept. If the keys are indexed, then Loom will flag occurrences of duplicate keys.
get-keys concept &key direct-p
The concept argument is concept, or the name of a concept.
If the direct-p argument is t, only keys directly defined on concept are returned. Otherwise, inherited keys are also returned.
The get-keys function returns a list of keys, where each key is identified by either a role name or a list of role names.
(defconcept A :indices (r) :keys (r))
(defconcept B :is-primitive A :indices ((s1 s2)) :keys ((s1 s2)))
(get-keys 'A) ==> ((|R|R))
(get-keys 'B) ==> ((|R|R) (|R|S1 |R|S2))
(get-keys (fc B) :direct-p t) ==> ((|R|S1 |R|S2))
Last modified: Jun 1 1995