Ontology Version: 2.2.0

cacontology-athletic:DualCoachingRoleExploitationShape leaf node


URI

https://cacontology.projectvic.org/athletic#DualCoachingRoleExploitationShape

Label

Dual Coaching Role Exploitation Shape

Description

Enhanced validation shape for dual coaching role exploitation with gUFO Role multiplicity validation.

Shape Properties

Instances of cacontology-athletic:DualCoachingRoleExploitation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-athletic:DualCoachingRoleExploitation
cacontology-athletic:multipleRoles 1 1 xsd:nonNegativeInteger
cacontology-athletic:AthleticCoachingExploitation
cacontology-athletic:currentPhase 0 1 gufo:Phase
cacontology-athletic:holdsCoachingRole 1 cacontology-athletic:AthleticCoachRole
cacontology-athletic:sportType 1 1 xsd:string
1 1 xsd:nonNegativeInteger
cacontology-athletic:teamType 1 1 xsd:string
cacontology-gufo:exploitationBeginTime 1 1 xsd:dateTime
cacontology-gufo:exploitationEndTime 0 1 xsd:dateTime

Implementation

@prefix cacontology-athletic: <https://cacontology.projectvic.org/athletic#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-athletic:DualCoachingRoleExploitationShape a sh:NodeShape ;
    rdfs:label "Dual Coaching Role Exploitation Shape"@en ;
    rdfs:comment "Enhanced validation shape for dual coaching role exploitation with gUFO Role multiplicity validation."@en ;
    sh:property [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 10 ;
            sh:message "Dual coaching role exploitation must specify between 2 and 10 roles."@en ;
            sh:minCount 1 ;
            sh:minInclusive 2 ;
            sh:path cacontology-athletic:multipleRoles ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a cacontology-athletic:DualRoleValidationError . }
            WHERE {
                $this a cacontology-athletic:DualCoachingRoleExploitation .
                {
                    SELECT $this (COUNT(DISTINCT ?role) AS ?roleCount)
                    WHERE {
                        $this cacontology-athletic:holdsCoachingRole ?role .
                    }
                    GROUP BY $this
                }
                FILTER (?roleCount < 2)
            }
        """ ;
            sh:message "Dual coaching role exploitation must involve at least 2 different coaching roles"@en ;
            sh:prefixes cacontology-athletic: ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-athletic:DualCoachingRoleExploitation .