Hi Barry,
Yes, the builtins on the LHS of a forward rule will not run until the
triple patterns match. It's only when there's a binding vector from the
tree of patterns that it gets submitted to the builtins. Which makes
sense if you think of LHS builtins as normally being guards.
Dvae
On 13/04/2021 12:00, Nouwt, B. (Barry) wrote:
Hi all, I am working with forward rules for a project and I noticed that the
print(...) builtins in the LHS of a forward rule only get executed when the
full LHS matches. I was expecting the LHS to be matched in a per triple/builtin
manner and so the print(...) builtins get executed until a triple or builtin
did not match.
Can anyone confirm or deny that this is indeed the way the forwardRETE engine
works?
Kind regards, Barry
This message may contain information that is not intended for you. If you are
not the addressee or if this message was sent to you by mistake, you are
requested to inform the sender and delete the message. TNO accepts no liability
for the content of this e-mail, for the manner in which you use it and for
damage of any kind resulting from the risks inherent to the electronic
transmission of messages.