clara

http://www.clara-rules.org/
2019-05-19T02:08:18.131700Z

Whats the difference from a query and a rule in rules engines in general. As i understand it. a rule is propositional logic "if X then Y" / X :- Y. But is query something else or is it just a rule where X is some direct match lookup?

2019-05-19T02:08:44.132Z

It seems in clara that rules can have arguments, is that right?

2019-05-19T02:36:08.134Z

@drewverlee queries gives you an external hook to pull data from the session. It has no RHS. When you “call” the query you get the matches as a result. The match’s have all the variable bindings of the rule bound by those keys for you to access.

👍 1
2019-05-19T02:36:39.134800Z

You can parameterize a query. When you call it, you bind those parameters.

👍 1
2019-05-19T02:37:04.135700Z

Normal rules can’t be parameterized like this because you don’t “call” into rules directly.