Skip to content

Add sh:ShapeClass #212

@HolgerKnublauch

Description

@HolgerKnublauch

Related to #169 SHACL should become more stand-alone and grow up in a formerly OWL-dominated world.

In the dash namespace we have added

dash:ShapeClass
  a dash:ShapeClass ;
  rdfs:comment "A class that is also a node shape. This class can be used as rdf:type instead of the combination of rdfs:Class and sh:NodeShape." ;
  rdfs:label "Shape class" ;
  rdfs:subClassOf rdfs:Class ;
  rdfs:subClassOf sh:NodeShape ;
.

so that classes using implicit class targets can be written with just one rdf:type instead of two:

ex:Person
    a dash:ShapeClass ;
    sh:property ex:Person-birthDate ;
...

instead of

ex:Person
   a rdfs:Class, sh:NodeShape ;
    sh:property ex:Person-birthDate ;
...

This could be leveraged into the sh: namespace as sh:ShapeClass.

Metadata

Metadata

Labels

CoreFor SHACL 1.2 Core spec

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions