:SEARCH

Purpose

Searches the KB for frames whose slot values match the given string, or verifies that one given frame has a slot value that matches the given frame.

Parameters

class
A class name.
string-to-match
A string - not a regular expression.
string-to-match
Either a frame to be tested or a variable to be bound.

Examples

  (:SEARCH Physical_Objects "able" ?obj)
  (:SEARCH Mammals "allab" Wallaby)

Success criteria

If any frame matches, the clause succeeds.

Failure criteria

Fails if no frames match the clause.

Notes

None.

Related commands


Back to...

Algernon commands
Algernon Documentation Central
Algernon home page