BindLink

From OpenCog
(Redirected from Bind)
Jump to: navigation, search

The BindLink is an older and discouraged version of QueryLink. It performs exactly the same search as QueryLink, except that it returns all of its results in a SetLink instead of a QueueValue.

The BindLink is discouraged because it has proven problematic: when it returns search results in a SetLink, those SetLinks pollute the AtomSpace, and usually they have to be manually deleted after performing the search. The QueryLink avoids this problem. What's more, the QueryLink returns a QueueValue, which is a thread-safe FIFO; thus, it allows one thread to read and process search results, even as other threads are still generating new ones.

See SatisfactionLink and QueryLink for details.