def extract_ontology_id_from_iri(url: str) -> str:
    """
    Get the ontology short term from iri string
    :param url: iri of ontology
    :return: short term of ontology
    """
    if type(url) is not str:
        raise TypeError("The method only take str as its input")
    if url.find('/') > -1:
        elmts = url.split('/')
        return elmts[-1]
    else:
        return url