Therefore I'd like to know if it is possible to define rules that, only if true, invoke other rules or to define nested rules (in forward chaining mode) like this:
[rule: (?x :hasY ?y) (?y :hasZ ?z)
->
(?x :hasZ ?z)
[rule2:
(?x :hasP ?p) (?p :hasA ?a)
->
(?x :hasA ?a)
]
]
