ontolutils.classes.thing.Thing.iri

classmethod Thing.iri(key: Optional[str] = None, compact: bool = False)

Return the IRI of the class or the key

key: str

The key (field) of the class

compact: bool

If True, returns the short form of the IRI, e.g. ‘owl:Thing’ If False, returns the full IRI, e.g. ‘http://www.w3.org/2002/07/owl#Thing’

str

The IRI of the class or the key, e.g. ‘http://www.w3.org/2002/07/owl#Thing’ or ‘owl:Thing’ if compact is True