ex:ClassA
a owl:Class ;
a sh:NodeShape ;
rdfs:label "Class A" ;
rdfs:subClassOf owl:Thing ;
sh:property ex:ClassA-propA ;
.
ex:ClassA-propA
a sh:PropertyShape ;
sh:path ex:propA ;
sh:name "prop A" ;
sh:nodeKind sh:Literal ;
.
ex:ClassB
a owl:Class ;
a sh:NodeShape ;
dash:defaultViewForRole dash:all ;
rdfs:label "Class B" ;
rdfs:subClassOf owl:Thing ;
sh:property ex:ClassB-propB ;
.
ex:ClassB-propB
a sh:PropertyShape ;
sh:path ex:propB ;
sh:name "prop B" ;
sh:nodeKind sh:Literal ;
.
ex:Instance
a ex:ClassA ;
a ex:ClassB ;
rdfs:label "Instance" ;
.