How to get the restriction type of a restriction?
Posted by Akash on
URL: http://owlready.306.s1.nabble.com/How-to-get-the-restriction-type-of-a-restriction-tp861.html
I am able to get the following components of a restriction:
1. property using .property
2. cardinality using .cardinality
3. restriction using .value
However, I am unable to get the type (SOME, ONLY, EXACTLY, etc.) using .type.
<restriction_class>.type seems to give me integers such as 24 (some) and 26 (exactly). Is there a mapping of integers and types that I can access, or am I doing this wrong?