Re: Access to the iri range

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Access-to-the-iri-range-tp3268p3269.html

Hello,

Owlready uses Python datatype for representing the datatype, but the corresponding IRI is stored in a dictionary, encoded as a store-ID.

You can obtain it as follows:

from owlready2 import *
import owlready2.base

storid = base._universal_datatype_2_abbrev[int]
iri = default_world._unabbreviate(storid)
# => iri = 'http://www.w3.org/2001/XMLSchema#integer'

The same will works for float, str, etc.

Best regards,
Jiba