|Did you know ...||Search Documentation:|
:- use_module(library(pengines)).(can be autoloaded)
Options is a list of options:
Name = Varterms, providing access to the actual variable names.
Any remaining options are passed to pengine_send/3.
Note that the predicate pengine_ask/3 is deterministic, even for queries that have more than one solution. Also, the variables in Query will not be bound. Instead, results will be returned in the form of event terms.
false, indicating whether we can expect the pengine to be able to return more solutions or not, would we call pengine_next/2.
Defined in terms of pengine_send/3, like so:
pengine_ask(ID, Query, Options) :- partition(pengine_ask_option, Options, AskOptions, SendOptions), pengine_send(ID, ask(Query, AskOptions), SendOptions).