Ontology Version: 2.2.0

cacontology-physical-shapes:EvidencePhaseTypeValidationShape leaf node


URI

https://cacontology.projectvic.org/physical-evidence/shapes#EvidencePhaseTypeValidationShape

Label

Evidence Phase Type Validation Shape

Description

Validates gUFO Phase type consistency for evidence phases.

Target Classes (1)

Implementation

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