Ontology Version: 2.2.0

cacontology-gufo:PhaseTransitionShape leaf node


URI

https://cacontology.projectvic.org/gufo#PhaseTransitionShape

Label

Phase Transition Shape

Target Classes (1)

Shape Properties

Instances of cacontology-gufo:Investigation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-gufo: <https://cacontology.projectvic.org/gufo#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-gufo:PhaseTransitionShape a sh:NodeShape ;
    rdfs:label "Phase Transition Shape"@en ;
    sh:sparql [ sh:message "Investigation phases must follow valid transition sequence"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/gufo#"^^xsd:anyURI ;
                            sh:prefix "cacontology-gufo" ] ] ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this cacontology-gufo:hasPhase ?phase1 ;
                      cacontology-gufo:hasPhase ?phase2 .
                ?phase1 cacontology-gufo:precedesPhase ?phase2 ;
                        cacontology-gufo:hasPhaseEndPoint ?end1 .
                ?phase2 cacontology-gufo:hasPhaseBeginPoint ?begin2 .
                FILTER (?end1 > ?begin2)
            }
        """ ] ;
    sh:targetClass cacontology-gufo:Investigation .