https://cacontology.projectvic.org/custodial#CustodialTemporalConsistencyShape
Validates temporal consistency across custodial relationships and events.
Instances of cacontology-custodial:CustodialRelationship can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-custodial:CustodialRelationship | ||||
| cacontology-custodial:accessLevel | 1 | 1 |
xsd:string
|
|
| cacontology-custodial:hasCustodyBeginPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-custodial:hasCustodyEndPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-custodial:inCustodyPhase | 1 | 1 |
gufo:Phase
|
|
| cacontology-custodial:relationshipDuration | 0 | 1 |
xsd:decimal
|
|
| cacontology-custodial:relationshipType | 1 | 1 |
xsd:string
|
|
| cacontology-custodial:trustLevel | 1 | 1 |
xsd:string
|
|
| 1 | ||||
| 0 | 1 |
xsd:dateTime
|
||
| 0 | 1 |
xsd:dateTime
|
||
@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:CustodialTemporalConsistencyShape a sh:NodeShape ;
rdfs:label "Custodial Temporal Consistency Shape"@en ;
rdfs:comment "Validates temporal consistency across custodial relationships and events."@en ;
sh:sparql [ sh:message "Trust violations must occur within active custody timeframe"@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:hasCustodyBeginPoint ?custodyBegin ;
cacontology-custodial:hasCustodyEndPoint ?custodyEnd .
?violation cacontology-custodial:violatesRelationship ?this ;
cacontology-custodial:hasViolationBeginPoint ?violationBegin .
FILTER (?violationBegin < ?custodyBegin || ?violationBegin > ?custodyEnd)
}
""" ] ;
sh:targetClass cacontology-custodial:CustodialRelationship .