Ontology Version: 3.1.0

cacontology-infrastructure-shapes:TechnicalRoleTypeValidationShape leaf node


URI

https://cacontology.projectvic.org/infrastructure/shapes#TechnicalRoleTypeValidationShape

Label

Technical Role Type Validation Shape

Description

Validates gUFO Role type consistency for technical roles.

Targets (1)

Implementation

@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-infrastructure-shapes: <https://cacontology.projectvic.org/infrastructure/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-infrastructure-shapes:TechnicalRoleTypeValidationShape a sh:NodeShape ;
    rdfs:label "Technical Role Type Validation Shape"@en ;
    rdfs:comment "Validates gUFO Role type consistency for technical roles."@en ;
    sh:sparql [ sh:message "Technical roles must be properly typed as gUFO Role and extend UCO Identity."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this rdf:type gufo:Role .
                FILTER NOT EXISTS {
                    $this rdf:type/rdfs:subClassOf* cac-core:Role .
                }
            }
        """ ] ;
    sh:targetClass cac-core:Role .