skohub-io / skohub-vocabs

A lightweight tool to publish SKOS Vocabularies
https://skohub.io/
Apache License 2.0
34 stars 25 forks source link

Provide means to validate SKOS turtle files for SkoHub compliance #91

Closed acka47 closed 1 year ago

acka47 commented 4 years ago

This might be used to add test to a GitHub repo that let you know whether your SKOS vocab is "SkoHub-ready".

acka47 commented 2 years ago

We should not only provide a shape but also a setup for automatic testing in a GitHub repo.

acka47 commented 2 years ago

We should probably also add Skosify and/or qSKOS into the automatic test pipeline. As this might mitigate a lot of errors (plus the ones SkoHub doesn't care about, see e.g https://github.com/dini-ag-kim/hochschulfaechersystematik/issues/24 & https://github.com/dini-ag-kim/hochschulfaechersystematik/issues/25) we might check these first.

sroertgen commented 1 year ago

I created a repo to work on the shape since I think it might be good to have the shape separate from code: https://github.com/skohub-io/shapes

sroertgen commented 1 year ago

I created a github-workflow which will validate all changed ttl files and will fail if one turtle file does not validate against the shape. You can try it out by forking this repo and playing around with the .ttl files: https://github.com/sroertgen/test-vocabs

Now I'm actually unsure on how to proceed. Should we create a template-vocab-repo, where we have this action and the scripts added a maybe a basic instruction on how to write a SKOS-file? Then we could advertise this as the starting point to develop vocabularies and have a mechanism to validate as well.

@acka47 What do you think?

acka47 commented 1 year ago

Should we create a template-vocab-repo, where we have this action and the scripts added a maybe a basic instruction on how to write a SKOS-file? Then we could advertise this as the starting point to develop vocabularies and have a mechanism to validate as well.

Sounds good to me. Most urgent is the inclusion of this step in the docker version of SkoHub Vocabs, though, isn't it?

sroertgen commented 1 year ago

A note to my future self:

When we are sure on how to proceed, we should add a note in the README on how to validate SKOS files

sroertgen commented 1 year ago

I added information on how to validate SKOS files here: https://github.com/skohub-io/skohub-vocabs/tree/91-validate-skos#validation-of-skos-vocabularies

We created two new repos:

@acka47 Is this enough or is there another place where we should add validation? The webhook for example?

sroertgen commented 1 year ago

I think to close this we have to do the following steps: