monarch-initiative / babelon

A format for language profiles for ontologies
https://monarch-initiative.github.io/babelon/
MIT License
8 stars 0 forks source link

Add a method to update a translation profile #25

Closed matentzn closed 1 year ago

matentzn commented 1 year ago

We need to a function in the babelon CLI that takes as an input a language profile and an ontology, and returns an updated language profile.

update_translation_profile(translation_profile, ontology_file)

The goal of the function is twofold:

  1. Update all "OFFICIAL" translations to "CANDIDATE" if the original ontology label has changed
  2. Add any new translatable objects to the table (new terms and their labels)
matentzn commented 1 year ago

@souzadevinicius we should close an issue only with a link to the pull request that closes it! This increases transparency for future developers.