Closed fxprunayre closed 2 months ago
Jena fails to parse SHACL shapes due to missing path:
path
No sh:path on a property shape: node=<https://semiceu.github.io/DCAT-AP/releases/3.0.0/html/shacl/shapes.ttl#DatasetSeries_Shape> sh:property _:B1f2b5d2b47a093d15d2dd175eb75559e
Probably related to https://github.com/apache/jena/issues/2129
Intellij also report an error on those rules:
Invalid cardinality: expected min 1: Got count = 0 Broader shape: shsh:PropertyShapeShape Shape: [__:o:9683 in shsh.ttl] Path: sh:path SHACL: sh:path Component: sh:MinCountConstraintComponent
For the series, I'm not 100% sure sh:inversePath dcat:inSeries; and sh:path [ sh:inversePath dcat:inSeries; ]; are equivalent.
sh:inversePath dcat:inSeries;
sh:path [ sh:inversePath dcat:inSeries; ];
Also when validating a series only, this rule will always fails when the dataset is not in the graph - but that's another discussion.
Fixed in https://github.com/SEMICeu/DCAT-AP/commit/591fae6038c6f7c06f25d29b39d2df4f30edcd4f
Jena fails to parse SHACL shapes due to missing
path
:Probably related to https://github.com/apache/jena/issues/2129
Intellij also report an error on those rules:
For the series, I'm not 100% sure
sh:inversePath dcat:inSeries;
andsh:path [ sh:inversePath dcat:inSeries; ];
are equivalent.Also when validating a series only, this rule will always fails when the dataset is not in the graph - but that's another discussion.