Tuesday 22 July 2008

PrologBeans - note to self 2

If I bind the atom "ag1" to the variable "Agent" using some Bindings instance ('b') and execute the query "has(Agent,Resource)" whilst providing 'b', then, as expected, if the query succeeds, a value is bound to the variable "Resource" in the returned QueryAnswer instance ('answer').

In addition, in 'answer', a value "ag1" is also bound to "Agent".

So, it seems 'answer' contains value bindings for output variables as well as input variables.

No comments: