Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing ontologies acronym #1

Open
galviset opened this issue Nov 21, 2023 · 1 comment
Open

Changing ontologies acronym #1

galviset opened this issue Nov 21, 2023 · 1 comment

Comments

@galviset
Copy link

In the EarthPortal, we have cases where users needs a vocabulary or ontology uploaded and available quickly, without having the time to discuss about the acronym. Currently, the only way to change it is to delete the entry and make a new one, but that comes at the cost of losing all the history of the ontology. On the technical part, the acronym is used as the identifier of the ontology, so it cannot be changed easily.
Would it be possible to make a script that either changes the acronym by changing the ID and do all necessary operations to reflect that in the backend, or alternatively, transfer all the data of an ontology into a new one (copy-paste everything except the acronym) and delete the old one ?
@syphax-bouazzouni @jonquet @alexskr

@syphax-bouazzouni
Copy link
Contributor

A possible solution, that can be easily done, is to use the bin/ncbo_import_ontology script, originally made to import an ontology from another repository with a copy of all its metadata.

But it can work to import an ontology of the same repository, with just a different ACRONYM. After that, the old version needs to be deleted manually.

Automizing this with a new script encapsulating the import one can be usefull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants