def object_id(identifier, keep_version=False) -> str:
    '\n    Returns the core object_id of a CURIE, with or without the version suffix.\n    Note:  not designed to be used with a URI (will give an invalid outcome)\n    :param identifier: candidate CURIE identifier for processing\n    :param keep_version: True if the version string suffix is to be retained in the identifier\n    :return:\n    '
    if (not identifier):
        return identifier
    if (':' in identifier):
        identifier = identifier.split(':')[1]
    if ((not keep_version) and ('.' in identifier)):
        identifier = identifier.split('.')[0]
    return identifier
Returns the core object_id of a CURIE, with or without the version suffix.
Note:  not designed to be used with a URI (will give an invalid outcome)
:param identifier: candidate CURIE identifier for processing
:param keep_version: True if the version string suffix is to be retained in the identifier
:return:
def object_id(identifier, keep_version=False) -> str:
    '\n    Returns the core object_id of a CURIE, with or without the version suffix.\n    Note:  not designed to be used with a URI (will give an invalid outcome)\n    :param identifier: candidate CURIE identifier for processing\n    :param keep_version: True if the version string suffix is to be retained in the identifier\n    :return:\n    '
    if (not identifier):
        return identifier
    if (':' in identifier):
        identifier = identifier.split(':')[1]
    if ((not keep_version) and ('.' in identifier)):
        identifier = identifier.split('.')[0]
    return identifier