pkiraly/metadata-qa-api

LessThanEquals

Opened this issue · 0 comments

LessThanEquals := siblingProp:RDFLiteral

sh:lessThanOrEquals: Let siblingVals be the set of objects in triples matching (focus node, siblingProp, siblingVal). Testing a LessThanOrEquals parameter against a value node returns fail if evaluating the SPARQL1.1 Operator (value node = siblingVal) for any siblingVal in siblingVals returns false or results in a type error. (Only in PathConstraint)

# Lower number means higher priority or criticality.
<IssueShape> sh:property [ sh:predicate ex:priority; sh:lessThanEquals ex:criticality ] .
<issue1> ex:criticality 3; ex:priority 2 .
<issue2> ex:priority 1, 4 .                                # No criticality against which to compare
<issue3> ex:criticality 2, 5; ex:priority 1, 4 .
<issue4> ex:criticality ex:Low; ex:priority ex:Medium .
<issue5> ex:criticality ex:Low; ex:priority 1 .
<IssueShape>  <issue1>  pass
<IssueShape>  <issue2>  pass
<IssueShape>  <issue3>  fail  4 greater than 2.
<IssueShape>  <issue4>  fail  "Medium" greater than "Low".
<IssueShape>  <issue5>  fail  1 not comparable with ex:Low.