SWRL Rules with class expressions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SWRL Rules with class expressions

Joel Valim
Hello,

I am trying to create a rule with a class expression within.
A rule like

Person(?x),hasChild some Person(?y) -> Parent(?x)

Is that possible at current version of owlready2 and if not is there some forecasting for that?
Reply | Threaded
Open this post in threaded view
|

Re: SWRL Rules with class expressions

Jiba
Administrator
Hello,

You can either create a named class equivalent to "hasChild some Person", and then use it as a class, or "split" the class expression in two parts: haschild(?x, ?y) and Person(?y).

Jiba