def file_extension(typeuri):
    '\n    Returns preferred file extension for resource type\n\n    >>> file_extension(ANNAL.CURIE.Metadata) == "jsonld"\n    True\n    >>> file_extension(ANNAL.CURIE.Richtext) == "md"\n    True\n\n    '
    return resource_types.get(typeuri, default_types)[0][0]
Returns preferred file extension for resource type

>>> file_extension(ANNAL.CURIE.Metadata) == "jsonld"
True
>>> file_extension(ANNAL.CURIE.Richtext) == "md"
True
def file_extension(typeuri):
    '\n    Returns preferred file extension for resource type\n\n    >>> file_extension(ANNAL.CURIE.Metadata) == "jsonld"\n    True\n    >>> file_extension(ANNAL.CURIE.Richtext) == "md"\n    True\n\n    '
    return resource_types.get(typeuri, default_types)[0][0]