https://cacontology.projectvic.org/hotlines/core#MultiAgencyCoordinationShape
SHACL shape for multi-agency coordination with comprehensive gUFO Situation validation and participant requirements.
Instances of hotline:MultiAgencyCoordination can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| hotline:MultiAgencyCoordination | ||||
| hotline:coordinationBeginTime | 1 |
xsd:dateTime
|
||
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix hotline: <https://cacontology.projectvic.org/hotlines/core#> .
@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:MultiAgencyCoordinationShape a sh:NodeShape ;
rdfs:label "Multi-Agency Coordination Shape"@en ;
rdfs:comment "SHACL shape for multi-agency coordination with comprehensive gUFO Situation validation and participant requirements."@en ;
sh:property [ sh:hasValue gufo:Situation ;
sh:message "Multi-agency coordination must be instances of gUFO Situation"@en ;
sh:path rdf:type ],
[ sh:datatype xsd:dateTime ;
sh:message "Coordination situations must have begin timestamps"@en ;
sh:minCount 1 ;
sh:path hotline:coordinationBeginTime ] ;
sh:rule [ a sh:SPARQLRule ;
sh:construct """
INSERT { $this a hotline:CoordinationParticipantError . }
WHERE {
$this a hotline:MultiAgencyCoordination .
{
SELECT $this (COUNT(?org) AS ?orgCount) WHERE {
$this hotline:hasParticipant ?org .
?org a uco-identity:Organization .
} GROUP BY $this
}
FILTER(?orgCount < 2)
}
""" ;
sh:message "Multi-agency coordination must involve at least two organizations"@en ;
sh:prefixes hotline: ;
sh:severity sh:Violation ] ;
sh:targetClass hotline:MultiAgencyCoordination .