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

Refactor GCMD harvester #13

Closed
hmaier-fws opened this issue Aug 3, 2023 · 0 comments · Fixed by #12
Closed

Refactor GCMD harvester #13

hmaier-fws opened this issue Aug 3, 2023 · 0 comments · Fixed by #12
Labels
documentation Improvements or additions to documentation maintenance Minor updates or code refactoring not impacting current functions

Comments

@hmaier-fws
Copy link
Contributor

From PR #12:

The GCMD harvester was written from scratch using a completely different process. It now predominantly uses the concepts/ endpoint to gather the data and build the tree. It's still recursive, but now, for each keyword at least 1 request is made to the GCMD API to harvest the data and build the tree. It modifies both harvesters/src/gcmd.js and harvesters/conf/gcmd.json.

It creates the following structure:

{
  "uuid": "",
  "label": "",
  "broader": "",
  "definition": "",
  "children": [ ]
}

Note: if no definition found then "No definition available." is used instead.

New harvester control process to build all GCMD vocabularies

New harvesters/src/gcmd-all.js

Along with the new harvester process is this control process that will build all the GCMD vocabularies listed in the config file harvesters/conf/gcmd-vocabularies.json. It also uses harvesters/conf/gcmd-all.json config file and generates resources/gcmd-vocabularies-dynamic.json.

@hmaier-fws hmaier-fws added maintenance Minor updates or code refactoring not impacting current functions documentation Improvements or additions to documentation labels Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation maintenance Minor updates or code refactoring not impacting current functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant