Skip to content

SHACL: how to use sh:class with a superclass? #60

@VladimirAlexiev

Description

@VladimirAlexiev

https://github.com/Sveino/Inst4CIM-KG/tree/develop/shacl-improved#properties-target-sibling-ranges

@griddigit-ci

usage of sh:class instead of sh:in for cases when we have more reference to a single class. This is the current way we do things after the recommendation we got. It is applied to NC profiles, but now this causes a few issues as sh:class also checks the existence of the reference. We need to be able to validate single files. With the setup we currently have we need to do some configuration tricks to disable some shapes that we know would give false alarm when validating single file and activate them when validating multiple files, etc.

Can you please elaborate?

I know CIM says that if a node defined in profile X is referenced in profile Y, then it must have rdf:type in Y.
But subclass inference is the same across profiles: so the node will get the same ancestor classes in both X and Y.

So what exactly is the problem?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions