Ontology Version: 2.2.0

cacontology-partnerships-shapes:PartnerRoleCapabilityCommitmentRule leaf node


URI

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

Label

Partner Role Capability Commitment Rule

Description

Advanced gUFO business rule: High role effectiveness requires advanced capabilities and high commitment.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

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:PartnerRoleCapabilityCommitmentRule a sh:NodeShape ;
    rdfs:label "Partner Role Capability Commitment Rule"@en ;
    rdfs:comment "Advanced gUFO business rule: High role effectiveness requires advanced capabilities and high commitment."@en ;
    sh:sparql [ sh:message "High role effectiveness requires advanced capabilities and high commitment levels (gUFO business rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-partnerships:hasRoleEffectiveness ?effectiveness .
                FILTER (?effectiveness >= 0.8)
                {
                    FILTER NOT EXISTS {
                        $this cacontology-partnerships:hasCapabilityLevel ?capability .
                        FILTER (?capability IN ("advanced", "expert"))
                    }
                } UNION {
                    FILTER NOT EXISTS {
                        $this cacontology-partnerships:hasCommitmentLevel ?commitment .
                        FILTER (?commitment >= 0.7)
                    }
                }
            }
        """ ] ;
    sh:targetClass cacontology-partnerships:PartnerRole .