-
Notifications
You must be signed in to change notification settings - Fork 25
Adding a webhook to your vocabulary
So you published your vocabulary as a turtle file and now want to use the webhook functionality to automatically publish it with SkoHub-Vocabs? Follow these steps using the example of the SkoHub-Vocabs Test Server of the Hochschulbibliothekszentrum NRW (e.g. https://test.skohub.io/dini-ag-kim/):
-
Go to your repository containing your vocabulary file serialized in Turtle format
-
Go to "Settings" -> "Webhooks" -> "Add Webhook"
-
Enter
https://test.skohub.io/build
as payload URL, chooseapplication/json
as content type and enter the secret. (Please contact us for the secret if you want to try it out.)
-
In case you get a error message, don't worry. GitHub is sending a Ping to the SkoHub-Vocabs endpoint, which it does not handle. To build the vocab we need to make a commit. So go ahead and commit a change to your repository for the webhooks to be run.
-
After the commit you can go to the webhook settings again. Go to "Recend deliveries tab", choose the latest commit and click on the "Response" tab. You should see a message in the repo settings that the build was triggered.
- Going to the displayed URL you will find additional information as well as the link to your built vocabulary:
- How to publish a SKOS scheme published in SkoHub Blog