Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Proposal to use sh:targetClass in the SHACL shapes #46
In a project for the French ministry of Health I am reusing DCAT-AP SHACL shapes.
The current SHACL shapes (at least those mandatory) have shapes which affect exactly the classes indicated. By using sh:targetClass, the shapes can affect subclasses (declared with rdfs:subClassOf in the model) and therefore improving the reusability of the shacl shapes.
The alternative would be define the subclasses directly in the shapes but this is not good for modularity.