dataverse-external-vocab-support

Scripts and material related to using external vocabulary services with Dataverse

View the Project on GitHub

Demo

https://github.com/user-attachments/assets/4a4ba8c6-1ecb-473d-92d4-70051016fecb

OntoPortal for Dataset keywords

This example manages the Keyword child fields (Term, Term URI, Controlled Vocabulary Name, and Controlled Vocabulary URL), providing OntoPortal based software lookup while also allowing free text entries (for entities that don’t have these identifiers) and manual entry of alternate identifiers for keywords.

This example requires the changes being added to Dataverse in PR #10331 PR #10371 PR #10404 PR #10503 PR #10505 PR #10603 packaged in v6.3.

This example requires two files:

(These scripts also use jquery and select2 which are already included in Dataverse).

Caution

This examples is entirely developed around AgroPortal, a fork of Ontoportal which contains more advanced features around languages API parameters than other OntoPortal installations as I write these lines. This means depending on the installation of OntoPortal, you may need to fix some javascript that suit your available functionalities. Be fully aware that integrating this example will not be easy as adapting or debugging the provided files may require to understand the full stack of the code (From OntoPortal API, passing by Javascript code to all related features hidden in Dataverse software code).

Subtleties explanation

In cvoc-ontoportal-conf.json :

In ontoportal.js :