Start watching possible instantiations of variables in Goal.
Goal must be a KnowRob language term.
Callback is called whenever the set of possible instantiations changes,
and it is provided with information about the change.
The change information is encoded in a term that is appended to
already existing arguments of Callback, if any.
Note that callback is currently not called when documents are removed!
This might change in the future.
Also note that currently Goal must be a term triple/3.
The scope of triples is ignored.
No other predicates are supported yet.
This might also change in the future.
- Arguments:
-
Goal | - a KnowRob language term with free variables. |
Callback | - a predicate called for each change event. |
WatcherID | - a unique identifier of the watching operation. |