Closed cthoyt closed 11 months ago
This PR is finished but is currently failing CI because of non-deterministic issues with poetry (is it time to get rid of poetry yet 😛?)
@hrshdhgd please help, we have a poetry issue again
Ok, I merged it now under the flag of progress 🙏
@hrshdhgd can you comment on wether you agree to the change in the action?
This PR replaces the
reconcile_prefix_and_data
with more carefully defined operations from thecuries
package (implemented in https://github.com/cthoyt/curies/pull/74 and https://github.com/cthoyt/curies/pull/78).The new implementation is built on
curies.remap_curie_prefixes
andcuries.rewire
. Note that if you want to overwrite a CURIE prefix, e.g., in the Bioregistry extended prefix map, you need to provide a place for the old one to go as in{"geo": "ncbi.geo", "geogeo": "geo"}
. Just doing{"geogeo": "geo"}
would not work sincegeo
already exists.This is a slight change from the existing implementation, but I think it is better since it allows for solving a much more general problem of dependent (i.e., transitive) remappings