Ontology Version: 2.2.0

cacontology-partnerships-shapes:PartnershipPhaseTypeValidationShape leaf node


URI

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

Label

Partnership Phase Type Validation Shape

Description

Validates gUFO Phase type consistency for partnership phases.

Target Classes (1)

Implementation

@prefix cacontology-partnerships-shapes: <https://cacontology.projectvic.org/partnerships/shapes#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-partnerships-shapes:PartnershipPhaseTypeValidationShape a sh:NodeShape ;
    rdfs:label "Partnership Phase Type Validation Shape"@en ;
    rdfs:comment "Validates gUFO Phase type consistency for partnership phases."@en ;
    sh:sparql [ sh:message "Partnership phases must be properly typed as gUFO Phase and extend partnership classes."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this rdf:type gufo:Phase .
                FILTER NOT EXISTS {
                    $this rdf:type ?phaseClass .
                    ?phaseClass rdfs:subClassOf* cacontology-partnerships:PublicPrivatePartnership .
                }
            }
        """ ] ;
    sh:targetClass gufo:Phase .