Ontology Version: 2.2.0

cacontology-multi:MultiJurisdictionalParticipationShape leaf node


URI

https://cacontology.projectvic.org/multi-jurisdiction#MultiJurisdictionalParticipationShape

Label

Multi-Jurisdictional Participation Shape

Description

Validates gUFO participation constraints for multi-jurisdictional investigations.

Shape Properties

Instances of cacontology-multi:MultiJurisdictionalInvestigation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@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:MultiJurisdictionalParticipationShape a sh:NodeShape ;
    rdfs:label "Multi-Jurisdictional Participation Shape"@en ;
    rdfs:comment "Validates gUFO participation constraints for multi-jurisdictional investigations."@en ;
    sh:sparql [ sh:message "Multi-jurisdictional investigation must have at least 2 participating agencies (gUFO participation constraint)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this rdf:type cacontology-multi:MultiJurisdictionalInvestigation .
                {
                    SELECT $this (COUNT(DISTINCT ?agency) AS ?agencyCount)
                    WHERE {
                        $this cacontology-multi:involvesAgency ?agency .
                    }
                    GROUP BY $this
                }
                FILTER (?agencyCount < 2)
            }
        """ ] ;
    sh:targetClass cacontology-multi:MultiJurisdictionalInvestigation .