Ontology Version: 2.2.0

cacontology-multi:InformationSharingParticipationShape leaf node


URI

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

Label

Information Sharing Participation Shape

Description

Validates gUFO participation constraints for information sharing.

Shape Properties

Instances of cacontology-multi:InformationSharing 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:InformationSharingParticipationShape a sh:NodeShape ;
    rdfs:label "Information Sharing Participation Shape"@en ;
    rdfs:comment "Validates gUFO participation constraints for information sharing."@en ;
    sh:sparql [ sh:message "Information sharing must involve at least 2 organizations (gUFO participation constraint)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this rdf:type cacontology-multi:InformationSharing .
                {
                    SELECT $this (COUNT(DISTINCT ?org) AS ?orgCount)
                    WHERE {
                        { $this cacontology-multi:sharesInformationWith ?org } UNION
                        { ?org cacontology-multi:sharesInformationWith $this }
                    }
                    GROUP BY $this
                }
                FILTER (?orgCount < 1)
            }
        """ ] ;
    sh:targetClass cacontology-multi:InformationSharing .