elter-vocabularies
Science Score: 41.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.3%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: oggioniale
- License: cc0-1.0
- Default Branch: main
- Homepage: https://oggioniale.github.io/elter-vocabularies/dev/dataLevel/
- Size: 1.67 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
A template to maintain vocabularies on GitHub
This repository may be used to create and maintain your own SKOS-vocabularies on GitHub. It uses the voc4cat-tool and GitHub features like pull requests, gh-actions, gh-pages etc. to reduce the maintenance workload for contributors and editors. The template is maintained as part of the NFDI4Cat initiative.
How to start?
Trying out the workflow
To try out the workflow you can use voc4cat-playground which is a "deployment" of this repository.
All vocabularies based on this template have the same standard contribution process of
- get and update the vocabulary file (xlsx),
- submit a pull request with the updated file,
- collaborate on the pull request with editors or other github users,
After approval your pull request is ready to be merged by the editors. The merge will include your contribution into the SKOS-vocabulary file in the vocabularies-folder. Upon merge the corresponding documentation and a joined turtle file will be automatically built and published to gh-pages.
The Excel/xlsx files submitted as pull request are automatically checked and (if all is good) converted to turtle. By using a vocabulary-specific configuration more thorough validation can be activated, e.g. if terms get removed in a PR or if correct IRIs are used. To validate IRIs the configuration supports ID-ranges (similar to OBO idrange but we use the toml-format). The idea is that every author gets their own range of IDs to consume. This allows independent work and avoids using the same ID repeatedly.
The voc4cat-template implements automatic storage of different versions of the vocabularies in gh-pages:
dev- Directory with artifacts built from the most recent commit to the main branch.latest- Directory with all files built for the latest release.vYYYY-MM-DD(for examplev2023-08-16) - Directory with all files built for the release with this tag.
For all versions, multiple files are stored (see https://github.com/nfdi4cat/voc4cat-template/issues/11#issuecomment-1680592185 for details). The correct version string is automatically inserted to all build artifacts. For dev, the first eight characters of the commit hash are used as version (for example v_fadfa5f9).
- Taking into account the above scheme, the url for the artifacts for the
devversion in gh-pages ishttps://{gh-org-name}.github.io/{repository-name}/dev/{vocabulary-name}/ - For example, in repository
nfdi4cat/voc4cat-templatethe vocabularyvocab_exampleis documented at https://nfdi4cat.github.io/voc4cat-template/dev/vocab_example/
In addition to the specific versions, an index page is generated that links to all vocabularies and the tagged releases.
It is placed at the root of gh-pages (https://{gh-org-name}.github.io/{repository-name}/).
Creating vocabularies for catalysis or catalytic reaction engineering
Please strongly consider contributing to voc4cat instead of creating your own.
Contributing to vocabularies
To discuss about the SKOS vocabularies maintained with this template, create an issue in the vocabulary repository itself (but not in this template-repository).
To contribute new concepts or collections or change existing ones, you may either submit your contributions as Excel/xlsx-file or (as an expert) as new/changed turtle file.
Here are the steps for submitting updates in Excel.
- Get the Excel/xlsx-vocabulary file
- The most recent version of the vocabulary is always available via github-pages.
- The general url is
https://{gh-org-name}.github.io/{repository-name}/dev/{vocabulary-name}.xlsx - For example in nfdi4cat/voc4cat-template the most recent vocabulary
vocab_examplecan be downloaded from https://nfdi4cat.github.io/voc4cat-template/dev/vocab_example.xlsx - For setting up a new vocabulary, use the xlsx-file from the templates-folder.
- Make changes to the Excel file
- Add the xlsx file to your clone of the repository into the folder
inbox-excel-vocabs- The name of the file must match the vocabulary that you want to update (e.g. myvoc.xlsx to update a vocabulary named "myvoc").
- New vocabularies will be named like the xlsx-file (minus the
.xlsx-extension).
- Create a pull request with the updated Excel-file on GitHub.
- Please describe your changes and the motivation for the changes in the pull request note or link to an issue with this information. This will help reviewers to understand the proposed change and decide about it.
- Your pull request will be processed automatically by a CI/CD pipeline that typically runs less than a minute.
- Review the artifacts/logs generated by the CI pipeline.
- The workflow artifact will contain an updated xlsx file that is recreated from the updated turtle-file.
- If all is good your contribution will be either
- directly merged by the maintainers
- or a discussion will be started about what else is needed
- or why the proposed change may not fit.
- If you need to fix something update the pull request branch. This will trigger the pipeline to run again.
Finally, when the proposed pull request is accepted, your changes will be integrated in the vocabularies in the folder vocabularies. The vocabularies are stored in split form using one folder per vocabulary. Each concept, collection and concept scheme is stored in a separate file using the ID-part of the IRI as file name.
See inbox-excel-vocabs/README.md for a minimal example how to test the submission process.
How to suggest improvements to the tooling & template?
To discuss about the workflow for maintaining SKOS vocabularies based on this template, create an voc4cat-template issue.
To discuss about the tool that converts Excel to SKOS in gh-actions of this template, create an voc4cat-tool issue.
How to use this template for your own vocabularies?
The template can be used to create your own independent repository for SKOS vocabularies maintenance.
Setting up your own github repository
First create a new repository on github without any contents, named e.g. "my-new-vocabulary". Then set up your own independent vocabulary repository on the command line:
gitattributes
git init my-new-vocabulary
cd my-new-vocabulary
git pull https://github.com/nfdi4cat/voc4cat-template
git remote add origin https://github.com/my-gh-name/my-new-vocabulary.git
git push -u origin main
This adds all commits made in the template´s main branch to your new repository. In addition to this basic setup you may want to
- Adjust the README.md file for your vocabulary.
- Adjust the configuration of your vocabularies in
idranges.toml - Adjust settings of your new GitHub repository. Typically you will want to
- Forbid pushing to main via branch protection rules (Settings > Branches, edit rules for "main")
- Set up rules for required approvals (Settings > Branches, edit rules for "main")
- Configure GitHub pages to use as source "deploy from a branch" and select the branch
gh-pages(Settings > Pages > Build and deployment)
- Optionally
- Add a different license for your vocabulary.
- Adjust the styling of the Excel template for your vocabulary.
After these steps your repository should work just like voc4cat or voc4cat-playground.
Keeping your vocabulary repository in sync with the voc4cat-template
To review the changes made in the template after you last pulled it use:
gitattributes
git fetch https://github.com/nfdi4cat/voc4cat-template
git diff ...FETCH_HEAD
If you want to take over the changes, pull them into your repository
gitattributes
git pull https://github.com/nfdi4cat/voc4cat-template
and push the change to the remote repository.
gitattributes
git push
It is suggested to merge the changes from the template repository before every new release of your vocabulary. This ensures that the centrally maintained features and best practices trickle into your project.
Authors and Contributors
Vocabularies
- List all authors and contributors.
Voc4cat template
- David Linke (ORCID: 0000-0002-5898-1820) - Creator of this repository template and its GitHub workflows.
License
Vocabularies
Adapt this paragraph to your needs! (Please consider CC0-1.0 or CC-BY 4.0)
All vocabularies in this repository are CC0-1.0 licensed, see LICENSE for details.
Voc4cat template
The template itself is CC0-1.0 licensed, see LICENSE. Although there is no obligation, we nevertheless appreciate if our work is acknowledged in any derivative work.
Acknowledgement
This work was funded by the German Research Foundation (DFG) through the project "NFDI4Cat - NFDI for Catalysis-Related Sciences" (DFG project no. 441926934), within the National Research Data Infrastructure (NFDI) programme of the Joint Science Conference (GWK).
Owner
- Name: Alessandro Oggioni
- Login: oggioniale
- Kind: user
- Location: Milan - Italy
- Company: CNR - IREA
- Website: https://www.cnr.it/people/alessandro.oggioni
- Repositories: 6
- Profile: https://github.com/oggioniale
Citation (CITATION.bib)
@misc{david_linke_2023_8306846,
author = {David Linke},
title = {nfdi4cat/voc4cat-template - A repository template with workflows to maintain a SKOS vocabulary on GitHub as a community},
year = {2023},
publisher = {Zenodo},
doi = {10.5281/zenodo.8306845},
url = {https://doi.org/10.5281/zenodo.8306845}
}
GitHub Events
Total
- Delete event: 4
- Issue comment event: 13
- Push event: 35
- Pull request event: 26
- Fork event: 1
- Create event: 19
Last Year
- Delete event: 4
- Issue comment event: 13
- Push event: 35
- Pull request event: 26
- Fork event: 1
- Create event: 19
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 3
Past Year
- Issues: 0
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 3
Top Authors
Issue Authors
Pull Request Authors
- oggioniale (10)
- dependabot[bot] (3)
- dalito (2)