Ontology Version: 2.2.0

cacontology-international:InformationSharingLevelBusinessRule leaf node


URI

https://cacontology.projectvic.org/international#InformationSharingLevelBusinessRule

Label

InformationSharingLevelBusinessRule

Shape Properties

Instances of cacontology-international:InformationSharingAgreement can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-international:InformationSharingAgreement
1 xsd:string
1 xsd:double
cacontology-international:informationSharingLevel 0 1 xsd:string
cacontology-international:multilateralAgreement 0 1 xsd:boolean
cacontology-international:sharesDataWith 2 uco-identity:Organization
1 xsd:dateTime
1 xsd:dateTime
1 1 xsd:string

Implementation

@prefix cacontology-international: <https://cacontology.projectvic.org/international#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-international:InformationSharingLevelBusinessRule a sh:NodeShape ;
    sh:sparql [ sh:message "Multilateral agreements with many partners require enhanced information sharing"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/international#"^^xsd:anyURI ;
                            sh:prefix "cacontology-international" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-international:multilateralAgreement true ;
                      cacontology-international:informationSharingLevel "basic" .
                {
                    SELECT $this (COUNT(?partner) as ?partnerCount)
                    WHERE {
                        $this cacontology-international:sharesDataWith ?partner .
                    }
                    GROUP BY $this
                    HAVING (?partnerCount > 5)
                }
            }
        """ ] ;
    sh:targetClass cacontology-international:InformationSharingAgreement .