JESS: Help on the syntax of a rule.

2005-12-21 Thread ROSSEL, Olivier (CIMPA)
I am using Jess with Protege. I want to write a rule that says: run when you get an oject FOO with a non-empty slot called 'name' and where there is no fact foo with property bar equal to the slot value. I would intuitively wirte that this way: (defrule doStuff "" ?o <- (object (is-a FOO) (name ?

RE: JESS: Help on the syntax of a rule.

2005-12-22 Thread ROSSEL, Olivier (CIMPA)
>> I am using Jess with Protege. I want to write a rule that says: run >> when you get an oject FOO with a non-empty slot called 'name' and >> where there is no fact foo with property bar equal to the slot >> value. I would intuitively wirte that this way: > > (defrule doStuff "" > ?o <- (objec