sdsc-ordes / modos-api

Python API to manage multi-omics digital objects
https://sdsc-ordes.github.io/modos-api
Apache License 2.0
0 stars 0 forks source link

auto-generate identifiers #56

Closed cmdoret closed 3 months ago

cmdoret commented 5 months ago

It is redundant for users to enter both the (unique) id and the (non-unique) human-readable name for each element in the modo. Most of the time these are ~identical. We should reduce the pain of data creation by automatically producing unique identifiers.

Objective: autogenerate unique id for every entity in the MODO

Proposal: <type>/<slugified-name>

Example:

name: "Tom the cat"

id: /sample/tom-the-cat-131fe2
cmdoret commented 3 months ago

Hard to implement when relying on linkml loaders, this could be implemented post-refactor.