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

Concept URIs #2

Open
bellerophons-pegasus opened this issue Feb 7, 2020 · 4 comments
Open

Concept URIs #2

bellerophons-pegasus opened this issue Feb 7, 2020 · 4 comments
Labels
enhancement New feature or request on hold

Comments

@bellerophons-pegasus
Copy link

bellerophons-pegasus commented Feb 7, 2020

Is there a way to get other concept URIs than <some schema URI>#concept<a number>?

It would be e.g. nice to have an URI based on skos:notation, separated with a slash instead of a hash like e.g. <some schema URI>/skos:notation

@zxenia
Copy link
Collaborator

zxenia commented Feb 10, 2020

Hi,
yes, it can be done - to check if there is notation entered in a database and if yes then serialize URIs with appending notation, not a database id as it is now.

@zxenia zxenia added the enhancement New feature or request label Feb 10, 2020
csae8092 added a commit that referenced this issue Jan 4, 2021
@csae8092
Copy link
Member

csae8092 commented Jan 4, 2021

added a settings-param to enable the usage of skos:notation in skosconcept URIs... BUT we don't enforce uniqueness of skos:notations (I think), therefore the URI uses now the skos:notation (slugged) and the internal db-ID; also implementing this might break existing vocabs? @zxenia @bellerophons-pegasus any thoughts?

@zxenia
Copy link
Collaborator

zxenia commented Jan 5, 2021

Yes, we don't enforce skos:notation to be unique and this is desired behaviour - because we might have the exact same notations in two different vocabs. Also skos:notation can be NULL.
The problem will appear when user will try to assign the same notation to two different concepts in one schema - this can be solved by binding schema and notation fields to be unique together if notation is not NULL.

@bellerophons-pegasus
Copy link
Author

Maybe the uniqueness-issue can be tackled as follows: if in the current vocabulary the concept URI is not unique a warning could be displayed to the user and thus allow for either a manual change of the URI or the skos:notation, where the latter does not have to be enforced.

@csae8092 csae8092 added this to the v1.1 milestone Jan 21, 2021
@csae8092 csae8092 removed this from the v1.2 milestone Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on hold
Projects
None yet
Development

No branches or pull requests

3 participants