Administrator
|
Hi,
Restriction are considered as superclass in OWL, so they are listed in Class.is_a and Class.equivalent_to.
Then, you can use isinstance to test whether a given superclass is a class (isinstance(superclass, EntityClass)), a Restriction (isinstance(superclass, Restriction)), or more generally a construct (isinstance(superclass, Construct)), etc.
Jiba
|