We need to handle situations when the user wants to create a vocabulary with IRI that already exists. We need to consider case when the existing vocabulary :
is already published
is created in a workspace but not published
Possible solution:
does not allow it if it is loaded or published
only when it is not published, provide the possibility to warn the user
this could be done by providing API to return all loaded vocabularies or to test for one vocabulary if it is loaded
I suggest going with option 1. But even for case 1, it makes sense to create an API that checks if vocabulary exists, so possible UI could show a warning upfront.
Relates to https://github.com/opendata-mvcr/sgov-assembly-line/issues/36 and https://github.com/opendata-mvcr/mission-control/pull/226.
We need to handle situations when the user wants to create a vocabulary with IRI that already exists. We need to consider case when the existing vocabulary :
Possible solution:
I suggest going with option 1. But even for case 1, it makes sense to create an API that checks if vocabulary exists, so possible UI could show a warning upfront.