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
>> 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
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
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 ?