Hi,

I  have one query .

My requirement of the pattern in Rules is as follows

(defrule inverseof

(?x    http://www.daml.org/2001/03/daml+oil#inverseOf   ?y)

(?a   ?y  ?b)

=>

(assert ( ?b   ?x  ?a)))

 

But it gives the error

Jess reported an error in routine Jesp.parsePattern.

Message: Expected '( <atom>' .

 

The jess manual states that

You can specify a variable name instead of a value for a field in any of a rule's patterns (but not the pattern's head).

 But my requirement is that the variable to be defined in the head of the pattern?

Is there any  solution for it?

 Regards,

Mahesh  G.



Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!

Reply via email to