def fix_curies(identifiers, prefix=''):
    '\n    Applies the specified XMLNS prefix to (an) identifier(s) known\n    to be "raw" IDs as keys in a dictionary or elements in a list (or a simple string)\n    :param identifiers:\n    :param prefix:\n    :return:\n    '
    if (not prefix):
        return identifiers
    if isinstance(identifiers, dict):
        curie_dict = defaultdict(dict)
        for key in identifiers.keys():
            curie_dict[((prefix + ':') + object_id(key, keep_version=True))] = identifiers[key]
        return curie_dict
    elif isinstance(identifiers, str):
        return ((prefix + ':') + object_id(identifiers, keep_version=True))
    elif isinstance(identifiers, Iterable):
        return [((prefix + ':') + object_id(x, keep_version=True)) for x in identifiers]
    else:
        raise RuntimeError("fix_curie() is not sure how to fix an instance of data type '", type(identifiers))
Applies the specified XMLNS prefix to (an) identifier(s) known
to be "raw" IDs as keys in a dictionary or elements in a list (or a simple string)
:param identifiers:
:param prefix:
:return:
def fix_curies(identifiers, prefix=):
    '\n    Applies the specified XMLNS prefix to (an) identifier(s) known\n    to be "raw" IDs as keys in a dictionary or elements in a list (or a simple string)\n    :param identifiers:\n    :param prefix:\n    :return:\n    '
    if (not prefix):
        return identifiers
    if isinstance(identifiers, dict):
        curie_dict = defaultdict(dict)
        for key in identifiers.keys():
            curie_dict[((prefix + ':') + object_id(key, keep_version=True))] = identifiers[key]
        return curie_dict
    elif isinstance(identifiers, str):
        return ((prefix + ':') + object_id(identifiers, keep_version=True))
    elif isinstance(identifiers, Iterable):
        return [((prefix + ':') + object_id(x, keep_version=True)) for x in identifiers]
    else:
        raise RuntimeError("fix_curie() is not sure how to fix an instance of data type '", type(identifiers))