https://cacontology.projectvic.org/custodial#TrustLevelConsistencyShape
Validates trust level consistency in violations.
Instances of cacontology-custodial:TrustViolation can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-custodial:TrustViolation | ||||
| cacontology-custodial:hasViolationBeginPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-custodial:hasViolationEndPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-custodial:perpetratedBy | 1 |
cacontology-custodial:AuthorityFigure
|
||
| 0 | 1 |
xsd:string
|
||
| 0 | 1 |
xsd:string
|
||
| cacontology-custodial:violationSeverity | 1 | 1 |
xsd:string
|
|
| cacontology-custodial:violationType | 1 | 1 |
xsd:string
|
|
| 1 | ||||
@prefix cacontology-custodial: <https://cacontology.projectvic.org/custodial#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-custodial:TrustLevelConsistencyShape a sh:NodeShape ;
rdfs:label "Trust Level Consistency Shape"@en ;
rdfs:comment "Validates trust level consistency in violations."@en ;
sh:sparql [ sh:message "Trust level after violation should not be higher than before violation."@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/custodial#"^^xsd:anyURI ;
sh:prefix "cacontology-custodial" ] ] ;
sh:select """
SELECT ?this
WHERE {
?this cacontology-custodial:trustLevelBefore ?before ;
cacontology-custodial:trustLevelAfter ?after .
FILTER (
(?before = "none" && ?after IN ("minimal", "moderate", "high", "complete", "absolute")) ||
(?before = "minimal" && ?after IN ("moderate", "high", "complete", "absolute")) ||
(?before = "moderate" && ?after IN ("high", "complete", "absolute")) ||
(?before = "high" && ?after IN ("complete", "absolute")) ||
(?before = "complete" && ?after = "absolute")
)
}
""" ] ;
sh:targetClass cacontology-custodial:TrustViolation .