Re: How to get the OWL data type assigned to a restriction?
Owlready uses plain Python types to represent basic datatype, so str is the datatype.
If you want the IRI of the datatype, it is more complex... Owlready maintain a dictionary mapping Python types to IRI, but the IRI are abbreviated as integer. Thus you need to unabbreviate them. Here is an exemple :