You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ you can use this link to the [SKOS testing tool](http://skos-play.sparna.fr/skos
69
69
70
70
The latest release of voc4cat is available via
71
71
72
-
*[Skosmos](https://semanticlookup.zbmed.de/skosmos/voc4cat/en/) operated by [ZBmed](https://www.zbmed.de/en/). The Skosmos API is used for the integration of Voc4Cat into the NFDI4Cat data repository **[repo4cat](https://repository.nfdi4cat.org/)**.
72
+
*[Skosmos](https://semanticlookup.zbmed.de/skosmos/voc4cat/en/) operated by [ZB MED](https://www.zbmed.de/en/). The Skosmos API is used for the integration of Voc4Cat into the NFDI4Cat data repository **[repo4cat](https://repository.nfdi4cat.org/)**.
73
73
*[TIB Terminology Service](https://terminology.tib.eu/ts/ontologies/voc4cat) which is based on a customized OLS version.
74
74
75
75
Both services offer API access to voc4cat. Skosmos has more SKOS-specific features than OLS and is therefore recommended.
@@ -156,6 +156,6 @@ This work was funded by the German Research Foundation (DFG) through the project
156
156
Special thanks to:
157
157
158
158
-[Roman Baum](https://github.com/rombaum) and his team who helped us to make voc4cat accessible via Skosmos in a [TS4NFDI incubator project](https://terminology.services.base4nfdi.de/incubators), see also [doi:10.5281/zenodo.16736361](https://doi.org/10.5281/zenodo.16736361).
159
-
-[ZBmed](https://www.zbmed.de/en/) for operating the Skosmos instance that provides a modern [user interface](https://semanticlookup.zbmed.de/skosmos/voc4cat/en/) for browsing Voc4Cat plus REST API access.
159
+
-[ZB MED](https://www.zbmed.de/en/) for operating the Skosmos instance that provides a modern [user interface](https://semanticlookup.zbmed.de/skosmos/voc4cat/en/) for browsing Voc4Cat plus REST API access.
160
160
-[TIB - Leibniz Information Centre for Science and Technology](https://www.tib.eu/en/) for providing API access to Voc4Cat.
161
161
-[W3ID Consortium](https://w3id.org) for making its permanent URL service available to the community.
The main steps that a community member needs to follow to contribute to
@@ -20,11 +35,7 @@ flowchart LR
20
35
B5[Step 5<br>Get latest Excel template] --> B6[Step 6<br>Edit concepts in Excel] --> B7[Step 7<br>Open PR and iterate]
21
36
```
22
37
23
-
```{admonition} Contribution overview
24
-
:class: tip
25
-
26
-
Below is a compact overview of the contribution flow. Select the tabs that match your preferred way of working, either Git commands or GitHub Web UI.
27
-
```
38
+
What happens during the contribution steps is visualized in the next figure.
28
39
29
40
### Initial steps (one-time)
30
41
@@ -114,8 +125,8 @@ Go to the [voc4cat-homepage](https://nfdi4cat.github.io/voc4cat/), and download
114
125
Second you have to **update your voc4cat-fork**.
115
126
While not essential it is strongly recommended that the vocabulary stored in the repository as RDF/turtle files matches the concepts stored in the downloaded xlsx file.
116
127
117
-
::::{tab-set}
118
-
:::{tab-item} Git commands
128
+
:::::{tab-set}
129
+
::::{tab-item} Git commands
119
130
:sync: Git commands
120
131
From the root directory of your cloned repo:
121
132
@@ -132,15 +143,27 @@ From the root directory of your cloned repo:
132
143
```
133
144
134
145
3. Place the freshly download voc4cat xlsx-file in `inbox-excel-vocabs/voc4cat.xlsx`. Do not change the filename.
135
-
:::
146
+
::::
136
147
137
-
:::{tab-item} GitHub Web UI
148
+
::::{tab-item} GitHub Web UI
138
149
:sync: GitHub Web UI
139
-
Open your fork of voc4cat <https://github.com/your_username/voc4cat> in the browser.
150
+
1. Open your fork of voc4cat <https://github.com/your_username/voc4cat> in the browser.
151
+
152
+
2. Sync your fork with upstream nfdi4cat/voc4cat. Press the green "Sync fork" button which makes your fork/clone an exact copy of upstream `main` again (nfdi4cat/voc4cat). If this fails, see [](#troubleshooting).
153
+
154
+
:::{dropdown} **Be careful when you "*Sync fork*" in GitHub UI.**
155
+
:icon: copilot-warning
156
+
**It should look like this screenshot.** Your main branch should only be behind the forked repository (not ahead of it).
140
157
141
-
Press the green "Sync fork" button. If this fails, see [](#troubleshooting).
158
+

159
+
160
+
**If your main-branch is ahead of main in the forked repo, do not press "*Sync fork*"** but go to [](#troubleshooting).
Click “Compare & pull request” after pushing branch or use “New pull request”.
347
-
Fill description: summary, ID range, confirmation of broader chains, no TTL
348
-
edits. Mark checklist. Use Draft PR for early feedback. To update: re-upload
349
-
improved Excel to same path; commit automatically appears in PR.
350
-
After approval a maintainer merges; CI generates TTL & HTML preview.
376
+
377
+
- Open the GitHub page of your fork `https://github.com/<your_username>/voc4cat` and - if you already created a branch for your contribution - switch to the branch.
378
+
- Open the “inbox-excel-vocabs” folder
379
+
- Click click on the "*Add file*" then "*Upload files*" to open a file a file submission page.
380
+
- Upload the voc4cat.xlsx file (the file name must be exactly this).
381
+
- Commit the uploaded file making sure that you **commit to your feature-branch** (not `main`). If you have to create a new branch, you may change the default name to a more reasonable name describing your contribution in the form `issue###_<short_title>`.
382
+
351
383
:::
352
384
::::
353
385
354
-
**PR checklist**
386
+
**Create the pull request**
387
+
388
+
The easiest way is go to the original [nfdi4cat/voc4cat](https://github.com/nfdi4cat/voc4cat) repository.
389
+
A notification will show up (1st screenshot) and if you click "Compare & pull request" the defaults will be correct (2nd screenshot).
390
+
391
+
```{figure} media/create-pr-msg.png
392
+
:alt: Screenshot of GitHub UI suggesting to create a PR from your fork
:alt: Screenshot of GitHub UI with the correct selection of source and target branch for your PR
399
+
400
+
Check that the source is your feature branach and the target is `nfdi4cat/voc4cat`
401
+
```
402
+
403
+
Here are some points to check before you finally submit the PR:
355
404
356
-
-[ ] File is `inbox-excel-vocabs/voc4cat.xlsx` (name and path unchanged)
357
-
-[ ] IDs are within my allocated range
358
-
-[ ] Each concept has prefLabel, definition, and a broader chain to a top concept
359
-
-[ ] Contribution is focused/small enough for review (split if needed)
360
-
-[ ] No `.ttl` files edited
361
-
-[ ] PR title and description summarize the motivation and scope
405
+
-PR title and description summarize motivation and scope.
406
+
-Vocabulary file is `inbox-excel-vocabs/voc4cat.xlsx` (name and path unchanged).
407
+
-IDs of added concepts are within my allocated range.
408
+
-Each concept has prefLabel, definition, and a broader chain to a top concept.
409
+
-Contribution is focused/small enough for review (split if needed).
410
+
-No `.ttl` files edited.
362
411
363
412
```{tip}
364
-
Open your PR as "Draft" if you want early feedback. Mention any specific questions. Curators are informed automatically about every new PR.
413
+
Open your PR as "Draft" if you want early feedback. Mention any specific questions. Curators are informed automatically about every new PR, also drafts.
365
414
```
366
415
367
-
The xlsx file is ephemeral and never stored in the repository. It is generated from the RDF/turtle files.
416
+
**What happens next?**
368
417
369
-
**Review priorities**
418
+
When the PR is submitted, an automated Continuous Integration (CI) pipeline is triggered.
419
+
The pipeline first checks the submitted Excel file for various errors.
370
420
371
-
1. Classification completeness
372
-
2. ID correctness
373
-
3. Scope / definition clarity
374
-
4. Optional enhancements (examples, altLabels)
421
+
If errors are detected, github reports the failed job with a red cross, see example
422
+
423
+

424
+
425
+
To find out more about the reasons for the failure, click on the red cross ❌.
426
+
This brings you to a page with a run log that typically gives enough information to understand the reason for the failure.
427
+
In addition to the run log, we also create a so called job artifact which can be accessed by going to the job "*Summary*" from the run log page.
428
+
The artifact is a zip-file with several files that help to diagnose the source of the failure. It contains:
429
+
430
+
- log-file of the run
431
+
- xlsx vocabulary file enriched with error information in the failing row (for some errors).
432
+
- HTML vocabulary documentation (useful to check the broader/narrower hierarchy)
433
+
434
+
If the run succeeded you see a similar job message but with a green checkmark:
435
+

436
+
437
+
The second line with the GitHub icon is a commit created by the pipeline in which
438
+
439
+
- the xlsx vocabulary file gets removed and
440
+
- the RDF/turtle (ttl-files) with the SKOS representation are added.
441
+
442
+
If you work on a local checkout on you computer, you need to pull this commit made on GitHub to your local clone with `git pull`.
443
+
444
+
**Later updates on your PR**
445
+
446
+
For updates: Switch to the previously created feature branch, fix the xlsx file (or other files) Excel, commit and push it again.
375
447
376
448
#### After merge
377
449
378
-
CI builds and publishes updated development version. Verify your concepts
379
-
using:
450
+
CI builds and publishes the updated development version.
-Go to the [homepage](https://nfdi4cat.github.io/voc4cat/) which is now updated with your contribution.
382
453
- Download new Excel if planning further contributions.
383
454
384
-
```{tip}
385
-
Open follow-up issue for any post-merge adjustments; do not edit generated Turtle directly.
386
-
```
455
+
Note that this development version is not published to Skosmos at ZB Med or the TIB Technology service. Only releases are published to these services.
387
456
388
457
## Contributing to the homepage
389
458
@@ -397,9 +466,18 @@ To help you checking your changes before making a pull request, we provide instr
397
466
398
467
## Troubleshooting
399
468
400
-
- Step 5: failing sync.
469
+
-**Fork out-of-sync** If you ever committed to the main branch in your repository directly, your history is no longer the same as in the upstream voc4cat.
470
+
This is a problem because it creates a merge conflict.
471
+
The fix is to reset your main match the upstream one exctly.
0 commit comments