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

2005-12-22 Thread ejfried
I think ROSSEL, Olivier (CIMPA) wrote: > But such a syntax seems to fail: > > defrule doStuff "" > ?o <- (object (is-a FOO) (name ?name&~nil)) > (not (foo (bar (?name trim ... > Any comment? In Jess, just as in all computer languages, you have to use the proper syntax. An unadorned funct

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

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

2005-12-21 Thread ejfried
I think ROSSEL, Olivier (CIMPA) wrote: > 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: (d

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 ?