Ontology Version: 2.2.0

cacontology-partnerships-shapes:MultiStakeholderComplexityRule leaf node


URI

https://cacontology.projectvic.org/partnerships/shapes#MultiStakeholderComplexityRule

Label

Multi-Stakeholder Complexity Rule

Description

Advanced gUFO business rule: Multi-stakeholder initiatives with many partners need comprehensive coordination.

Shape Properties

Instances of cacontology-partnerships:MultiStakeholderInitiative can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-partnerships:PublicPrivatePartnership
1 1 xsd:boolean
1 xsd:string
1 xsd:string
cacontology-partnerships:hasPartnershipBeginPoint 1 xsd:dateTimeStamp
1 xsd:string
cacontology-partnerships:hasPartnershipEndPoint 1 xsd:dateTimeStamp
1 xsd:double
1 xsd:double
1 1 xsd:nonNegativeInteger
cacontology-partnerships:partnershipDuration 0 1 xsd:decimal
1 1 xsd:string

Implementation

@prefix cacontology-partnerships: <https://cacontology.projectvic.org/partnerships#> .
@prefix cacontology-partnerships-shapes: <https://cacontology.projectvic.org/partnerships/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-partnerships-shapes:MultiStakeholderComplexityRule a sh:NodeShape ;
    rdfs:label "Multi-Stakeholder Complexity Rule"@en ;
    rdfs:comment "Advanced gUFO business rule: Multi-stakeholder initiatives with many partners need comprehensive coordination."@en ;
    sh:sparql [ sh:message "Multi-stakeholder initiatives with 5+ partners need comprehensive coordination level (gUFO business rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this rdf:type cacontology-partnerships:MultiStakeholderInitiative .
                {
                    SELECT $this (COUNT(DISTINCT ?partner) AS ?partnerCount)
                    WHERE {
                        $this cacontology-partnerships:includesPartner ?partner .
                    }
                    GROUP BY $this
                }
                FILTER (?partnerCount >= 5)
                FILTER NOT EXISTS {
                    $this cacontology-partnerships:hasCoordinationLevel "comprehensive" .
                }
            }
        """ ] ;
    sh:targetClass cacontology-partnerships:MultiStakeholderInitiative .