Ontology Version: 3.1.0

cacontology-infrastructure-shapes:InfrastructureCompositionShape leaf node


URI

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

Label

Infrastructure Composition Shape

Description

Validates gUFO part-whole relationships for infrastructure composition.

Implementation

@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@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:InfrastructureCompositionShape a sh:NodeShape ;
    rdfs:label "Infrastructure Composition Shape"@en ;
    rdfs:comment "Validates gUFO part-whole relationships for infrastructure composition."@en ;
    sh:sparql [ sh:message "Infrastructure containment relationships must be consistent with gUFO part-whole constraints."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-infrastructure:containsComponent ?part ;
                ?part cacontology-infrastructure:containsComponent $this .
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:PlatformInfrastructure .