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

NodeKind

Open pkiraly opened this issue 9 years ago • 0 comments

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.

pkiraly avatar Sep 29 '16 06:09 pkiraly