https://cacontology.projectvic.org/multi-jurisdiction#InformationSharingParticipationShape
Validates gUFO participation constraints for information sharing.
Instances of cacontology-multi:InformationSharing 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: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 .