HasShape
Opened this issue · 0 comments
pkiraly commented
HasShape := nested:Shape
sh:shape: Testing a HasShape parameter against a value node returns any errors returned when validating the value node as nested (c.f. definition of Shape above).
<IssueShape> sh:property [ sh:predicate ex:submittedBy; sh:shape <UserShape> ] .
<UserShape> sh:property [ sh:predicate dc:creator; sh:nodeKind sh:IRI ] .
<issue1> ex:submittedBy [ dc:creator <mailto:alice@example.com> ] .
<issue2> ex:submittedBy [ dc:creator "amy" ] .
<issue1> ex:submittedBy <mailto:andrea@example.com> .
<IssueShape> <issue1> pass
<IssueShape> <issue2> fail expected dc:creator to be an IRI.
<IssueShape> <issue3> fail expected ex:submittedBy to match <UserShape>.