metadata-qa-api icon indicating copy to clipboard operation
metadata-qa-api copied to clipboard

TargetClass

Open pkiraly opened this issue 9 years ago • 0 comments

TargetClass := type:IRI

sh:targetClass: A TargetClass matches any node in the data graph with the triple (node, rdf:type, type) or any node which is of a type which is a transitive rdfs:subClassOf type.

# In a graph with nodes of types ex:student, ex:teacher and ex:class:
<http://a.example/Alice> a ex:student .
<http://a.example/Bob> a ex:professor . ex:professor rdfs:subClassOf ex:teacher .
<http://a.example/Art> a ex:class .
# sh:targetClass selects the subset of them to be tested against the <IssueShape> shape.
# This selects <http://a.example/Bob> for validation.
<TeacherShape> sh:targetClass ex:teacher .

Parent issue is Targets #36

pkiraly avatar Sep 29 '16 07:09 pkiraly