mapping-commons / sssom-py

Python toolkit for SSSOM mapping format
https://mapping-commons.github.io/sssom-py/index.html#
MIT License
49 stars 12 forks source link

Add converter to MappingSetDocument and MappingSetDataFrame #417

Closed cthoyt closed 1 year ago

cthoyt commented 1 year ago

This PR switches the MappingSetDocument to use a curies.Converter instead of a simple prefix map. It exposes prefix_map as a property to maintain backward compatibility.

Conversely, it exposes a converter property on the MappingSetDataFrame for forwards compatibility.

It then updates several utilities to take advantage of these data structures when converting between objects. It also fixes two bugs when generating cliques: 1) the existing document's license is now retained and 2) each clique is given a different unique ID