metadata-qa-api
metadata-qa-api copied to clipboard
NodeKind
NodeKind := kind:"IRI"|"blank node"|"literal"
the node kinds are represented by the constants sh:IRI, sh:BlankNode and sh:literal
disjunctions of the above node kinds: sh:BlankNodeOrIRI, sh:IRIOrLiteral, sh:BlankNodeOrLiteral, sh:IRIOrLiteral, sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral.
example:
shape:
<IssueShape> sh:property [ sh:predicate ex:state; sh:nodeKind sh:IRI ] .
nodes:
<issue1> ex:state ex:HunkyDory .
<issue2> ex:taste ex:GoodEnough .
<issue3> ex:state "just fine" .
result:
shape node result reason
<IssueShape> <issue1> pass
<IssueShape> <issue2> pass
<IssueShape> <issue3> fail ex:state expected to be an IRI, literal found.