rdmorganiser / rdmo

A tool to support the planning, implementation, and organization of research data management.
https://rdmorganiser.github.io
Apache License 2.0
100 stars 48 forks source link

Add synonyms or aliases to attributes #327

Open jochenklar opened 3 years ago

jochenklar commented 3 years ago

This would enable us to provide compatibility between old and new attributes.

jochenklar commented 4 months ago

Hey @MyPyDavid, I still think this whole Attribute mess is something for 2025 ... but I got some ideas today.

What we could do is create some opaque id for each Attribute once, like a UUID but based on the hash of the current URI. Then we can use migrations to create those ids to for attribute independently.

We can then remove the whole tree of keys and just store the uri_path and uri_prefix for each attribute. And we can rename attributes and add field for alternative identifiers or aliases.

What do you think?

jochenklar commented 3 months ago

Just an idea: Maybe we need one new model/table Alias, which maps URIs to other things. We will have the problem not only with attributes, but also with options (e.g. new version of the DFG Fachsystematik).