Closed koenedaele closed 1 year ago
@koenedaele can we add this info to the /conceptschemes
call?
or @Wim-De-Clercq
possible (poc) solution provided by @Wim-De-Clercq :
Ticket #795 has been fixed, so the datageneration strategy is now available in the provider endpoint.
Now wondering how frontend will know which provider is linked to which conceptscheme. Can be done by getting the full list of providers and checking the conceptscheme_uri. But perhaps it's easier to have a /providers?conceptscheme_uri=https://id.erfgoed.net/thesauri/erfgoedtypes endpoint?
Once #739 is ready, update the UI. Frontend will need to read the _atramhasis.id_generationstrategy from every skosprovider and adapt the form for adding concepts or collections. If the generation strategy is set to manual, a field "id" should be added for users. This corresponds with the "id" attribute in the JSON data (which is not the same as the autogenerated id used as primary key in the DB). If the generation strategy is not set to manual, the user can't submit an id.
On updating the concept or collection, the field is never editable, since editing the identifier would probably lead to a changed URI.