def convert_to_annotation(file, output):
    """Convert a namespace file to an annotation file."""
    resource = parse_bel_resource(file)

    write_annotation(
        keyword=resource['Namespace']['Keyword'],
        values={k: '' for k in resource['Values']},
        citation_name=resource['Citation']['NameString'],
        description=resource['Namespace']['DescriptionString'],
        file=output
    )
def convert_to_annotation ( file , output ) : resource = parse_bel_resource ( file ) write_annotation ( keyword = resource [ 'Namespace' ] [ 'Keyword' ] , values = { k : '' for k in resource [ 'Values' ] } , citation_name = resource [ 'Citation' ] [ 'NameString' ] , description = resource [ 'Namespace' ] [ 'DescriptionString' ] , file = output )
Convert a namespace file to an annotation file.