get-concept [Function]
Purpose
The get-concept function returns the concept having a specified name.
Syntax
get-concept concept &key no-error-p context
Arguments
The concept argument is a concept, or a symbol which names a concept. If it is a symbol, it may be an extended identifier having the form context\^{\space}name, where context is the context from which the search is to proceed.
If the no-error-p argument is t, then no error is generated if Loom cannot find a concept having the specified name.
The context argument is the context, or the name of the context, from which the lookup is to be performed. The concept will be found if it is interned in context or any context above context. This argument defaults to the current context.
Value
The get-concept function returns the concept with the specified name. If there is none, nil is returned if no-error-p is set, and otherwise a continuable error is generated.
Remarks
The get- functions are faster and do less error-checking than the find- functions (such as find-concept). Applications should use the get- functions for best performance.
Examples
(get-concept 'Thing) ==> |C|THING
(get-concept 'cluser-theory\^{\space}Person :no-error-p t) ==> |C|PERSON
(get-concept 'Computer :context 'bottom-theory) ==> |C|COMPUTER
See Also
Last modified: Jun 1 1995