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

HasShape

Open pkiraly opened this issue 9 years ago • 0 comments

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:[email protected]> ] .
<issue2> ex:submittedBy [ dc:creator "amy" ] .
<issue1> ex:submittedBy <mailto:[email protected]> .
<IssueShape>  <issue1>  pass
<IssueShape>  <issue2>  fail  expected dc:creator to be an IRI.
<IssueShape>  <issue3>  fail  expected ex:submittedBy to match <UserShape>.

pkiraly avatar Sep 29 '16 07:09 pkiraly