Ontology Version: 2.2.0

cacontology-infrastructure-shapes:InfrastructurePhaseTypeValidationShape leaf node


URI

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

Label

Infrastructure Phase Type Validation Shape

Description

Validates gUFO Phase type consistency for infrastructure phases.

Target Classes (1)

Implementation

@prefix cacontology-infrastructure-shapes: <https://cacontology.projectvic.org/infrastructure/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-infrastructure-shapes:InfrastructurePhaseTypeValidationShape a sh:NodeShape ;
    rdfs:label "Infrastructure Phase Type Validation Shape"@en ;
    rdfs:comment "Validates gUFO Phase type consistency for infrastructure phases."@en ;
    sh:sparql [ sh:message "Infrastructure phases must be properly typed as gUFO Phase and extend infrastructure classes."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this rdf:type gufo:Phase .
                FILTER NOT EXISTS {
                    $this rdfs:subClassOf* cacontology-infrastructure:PlatformInfrastructure .
                }
            }
        """ ] ;
    sh:targetClass gufo:Phase .