https://cacontology.projectvic.org/multi-jurisdiction#MultiAgencyOperationCompositionShape
Validates gUFO part-whole relationships for multi-agency operations.
Instances of cacontology-multi:MultiJurisdictionalInvestigation can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|---|
@prefix cacontology-multi: <https://cacontology.projectvic.org/multi-jurisdiction#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-multi:MultiAgencyOperationCompositionShape a sh:NodeShape ;
rdfs:label "Multi-Agency Operation Composition Shape"@en ;
rdfs:comment "Validates gUFO part-whole relationships for multi-agency operations."@en ;
sh:sparql [ sh:message "Multi-agency operation must include agencies operating in different jurisdictions (gUFO part-whole constraint)."@en ;
sh:select """
SELECT $this
WHERE {
$this rdf:type cacontology-multi:MultiJurisdictionalInvestigation .
{
SELECT $this (COUNT(DISTINCT ?jurisdiction) AS ?jurisdictionCount)
WHERE {
$this cacontology-multi:involvesAgency ?agency .
?agency cacontology-multi:operatesInJurisdiction ?jurisdiction .
}
GROUP BY $this
}
FILTER (?jurisdictionCount < 2)
}
""" ] ;
sh:targetClass cacontology-multi:MultiJurisdictionalInvestigation .