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

AGROVOC for keyword #9604

Closed
ReisQuarteu opened this issue May 22, 2023 · 6 comments
Closed

AGROVOC for keyword #9604

ReisQuarteu opened this issue May 22, 2023 · 6 comments

Comments

@ReisQuarteu
Copy link

'skosterm' is not a datasetField name of a field defined in a metadata block file. Can the 'skosterm' field-name be replaced by 'keyword' or the 'keyword' field must be be hidden and 'skosterm' must be used?

Overview of the Feature Request

What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)

What inspired the request?

What existing behavior do you want changed?

Any brand new behavior do you want to add to Dataverse?

Any open or closed issues related to this feature request?

@qqmyers
Copy link
Member

qqmyers commented May 22, 2023

skosterm is a field in the example metadata block at https://github.com/gdcc/dataverse-external-vocab-support/blob/main/examples/metadatablocks/cvocdemo.tsv.

To use Skos for any single/primitive field in another metadata block should only require creating a new configuration file where the field name has been changed, i.e. replacing skosterm at https://github.com/gdcc/dataverse-external-vocab-support/blob/6055e9a461de3646bf2256083f35d46964f26dbd/examples/config/cvoc-conf.json#L85-L86.

The keyword field is slightly different from the compound demo example in the repository as there are only 3 subfields instead of 4 (keywordValue, keywordVocabulary, keywordVocabularyURI but no separate keywordURI child field.) I've made a quick example at gdcc/dataverse-external-vocab-support#17 for the keyword field. (It uses the UNESCO Thesaurus rather than AGROVAC, but you should be able to swap to use AGROVAC by swapping that in from https://github.com/gdcc/dataverse-external-vocab-support/blob/6055e9a461de3646bf2256083f35d46964f26dbd/examples/config/cvoc-conf.json#L98-L101.

I've only tested this on the develop/5.14 branch but I think it should work on earlier versions as well.

@ReisQuarteu
Copy link
Author

The URL 'https://skosmos.dev.finto.fi/rest/v1/search?unique=true&vocab=agrovoc&parent=&lang=en&&query=agr*' does not work. This is the url used in cvoc-conf.json. Any suggestion to fix this?

@pdurbin
Copy link
Member

pdurbin commented May 25, 2023

@pdurbin
Copy link
Member

pdurbin commented May 25, 2023

It looks like @qqmyers opened an issue for this:

@ReisQuarteu
Copy link
Author

Thank you for your precious help. I replaced "skosmos.dev.finto.fi" by "demo.skosmos.org" globally in the relevant examples/config/* files for the Skosmos examples to work. But the demo has another problem: when someone writes in 'ardcVocabulary' datafield nothing happens (the datafield 'ardcVocabularyURI' is not changed)

@pdurbin
Copy link
Member

pdurbin commented Jul 14, 2023

@ReisQuarteu gotcha. Can you please open an issue about this at https://github.com/gdcc/dataverse-external-vocab-support/issues ? I think that's the right place. 😅

@pdurbin pdurbin closed this as completed Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants