Open sroertgen opened 6 months ago
a description is missing in this vocab, but you don't get a good hint from the shacl validation
Can this really be the source of the error? AFAICS, description
is not mandatory, see https://github.com/skohub-io/skohub-shapes/blob/03905674a22a978288b56ca6709c604d0f7512a0/skohub.shacl.ttl#L62-L81
@acka47
I stumbled across this by accident as well yesterday and think it has something to do with #284
We now have
sh:or
statements in our shacl graph for testing the presence ofdct:title
,skos:prefLabel
anddc:title
. The same for the description attributes. The library we are using for doing the shacl validation can handle the validation, but does not give good errors if something goes wrong in thesesh:or
statements therefore the null statement which you and @thomschke encountered.This is unfortunate since you also don't get meaningful error messages if one of these attributes is missing. The lib is not returning the correct path to identify the node where an error occured.
The fix provided by @thomschke will help to run vocabs through the pipeline if just a warning occured, but we are getting unhelpful error messages for violations, e.g.
(a description is missing in this vocab, but you don't get a good hint from the shacl validation)
Originally posted by @sroertgen in https://github.com/skohub-io/skohub-vocabs/issues/305#issuecomment-2126459549