Skip to content

write_table() can ignore curie_map in msdf.metadata #573

@joeflack4

Description

@joeflack4

Overview

I'm creating a MappingSetDataFrame (msdf) and then saving it:

    msdf = MappingSetDataFrame(matches_df, metadata={
        'curie_map': {
            'rdfs': 'http://www.w3.org/2000/01/rdf-schema#'
        },
    })
    with open(outpath, 'w') as f:
        write_table(msdf, f)

When I inspect msdf, I see that it does have my correct curie_map set inside the metadata property.

However, when I write_table() and inspect the resulting TSV, the curie_map is empty within the metadata comments at the top of the file:

# curie_map: {}

Update: This problem does not happen when instantiating an msdf using from_sssom_dataframe().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions