Open SvenLieber opened 4 years ago
Thank you for this detailed feedback! This is for sure an issue we'll have to look into, and your suggested solutions make perfect sense. Linking via sh:property
makes sense to me.
For completeness sake, this repository was meant as a sketch for what a FAIR Data Point shape collection could look like, and by no means is near final or stable version. That said, we appreciate feedback like this a lot.
I think the
Distribution
shape in distribution.ttl is broken.Both the SHACL Playground and SHACL-JS throw the error
Cannot find validator for constraint component http://www.w3.org/ns/shacl#MinCountConstraintComponent
.The error seems to be in the first property shape. According to SHACL-SHACL a
sh:PropertyShape
needs to have exactly onesh:path
predicate. However, the first property shape ofDistribution
does not have ash:path
predicate, instead it defines two optional paths using ansh:or
-construct with other property shapes.A possible solution would be to define an alternative path using
sh:path [ sh:alternativePath (dcat:accessURL dcat:downloadURL) ] ;
. However, then there could be only onesh:name
andsh:description
.Another solution would be to not use
sh:and
in the node shape and instead link viash:property
to each property shape. Then there could also be ansh:or
for the property shapes ofdcat:accessURL
anddcat:downloadURL
.