Open tpluscode opened 9 months ago
I created this issue referencing your comment @kronmar, but I find that schema:name
is already required by the shape. Cube Creator also enforces it. Where are these offending cubes coming from?
The offending cubes come from our own pipeline.
The issue is, that standalone-constraint-constraint
checks that all hierarchies (that is in this specific cubes all parallel hierarchies) have a name. But they can have all the same name. Which breaks visualize and begs the question whether it would actually make sense for parallel hierarchies to have the same name?
cc @Rdataflow
I don't understand. Would you share a query showing such a cube?
Just realised, the link in the initial comment wasn't working. Fixed it, but here as well https://s.zazuko.com/3C25xc2
Yes, it's weird that all these hierarchies are called Classification
. Unfortunately, I think it may be difficult to handle enforce such uniqueness with plain SHACL.
I don't think it's really harmful "enough" to enforce with standard profiles.
Does the validator support SPARQL-based constraints?
Not the current implementation. It's certainly on our radar. Either by switching to a different tool or implementing ourselves: https://github.com/zazuko/rdf-validate-shacl/issues/104
Found a possible solution without using SPARQL-based constraints:
https://s.zazuko.com/ERuwjt It's not an ideal solution, as it targets all hierarchies, maybe that could be solved tho.
That does not work, because targets are not combined. That shape will actually target everything that has schema:name
. Not only hierarchies
Originally posted by @kronmar in https://github.com/zazuko/cube-link/issues/114#issuecomment-1927194177