ruleset ruleset1{ } rule chickenRule{ when{ ?chicken:chicken.Chicken(?age:age;?age>8); owns(?chicken, ?potato); ?potato:Potato(?weight:weight;?weight>?age/2); RifUtil.string_not_equals("Tuesday", RifUtil.today()); not foxAlarm(); } then { bind ?allowance=?chicken.allowance; mash(?potato); retract ?potato; retract owns(?chicken, ?potato); retract ?chicken{allowance = ?allowance;} } }