https://cacontology.projectvic.org/hotlines#HotlinePhaseShape
SHACL shape for hotline operational phases with anti-rigid gUFO Phase validation and temporal constraints.
Focus nodes of this shape (ndb81dd54905f4f92ad02278a76f2c3ddb1916) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| hotline:phaseBeginTime | The timestamp when a particular phase begins. gUFO temporal modeling for phase transitions. sh:message Phases must have begin times |
1 | * | xsd:dateTime | |
| hotline:phaseDuration | The duration of a particular phase in ISO 8601 format. sh:message Phases can have duration specifications |
0 | 1 | xsd:duration |
@prefix hotline: <https://cacontology.projectvic.org/hotlines#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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#> .
hotline:HotlinePhaseShape a sh:NodeShape ;
rdfs:label "Hotline Phase Shape"@en ;
rdfs:comment "SHACL shape for hotline operational phases with anti-rigid gUFO Phase validation and temporal constraints."@en ;
sh:property [ sh:datatype xsd:dateTime ;
sh:message "Phases must have begin times"@en ;
sh:minCount 1 ;
sh:path hotline:phaseBeginTime ],
[ sh:datatype xsd:duration ;
sh:maxCount 1 ;
sh:message "Phases can have duration specifications"@en ;
sh:path hotline:phaseDuration ] ;
sh:rule [ a sh:SPARQLRule ;
sh:construct """
INSERT { $this a hotline:PhaseSequenceError . }
WHERE {
?report hotline:currentPhase $this .
$this hotline:phaseBeginTime ?thisStart ;
?report hotline:hasPhaseTransition ?transition ;
?transition uco-core:endTime ?prevEnd .
FILTER(?thisStart <= ?prevEnd)
}
""" ;
sh:message "Phase transitions must follow logical sequence"@en ;
sh:prefixes hotline: ;
sh:severity sh:Violation ] ;
sh:targetClass [ a owl:Class ;
owl:unionOf ( hotline:IntakePhase hotline:ReviewPhase hotline:ActionPhase hotline:ClosurePhase ) ] .