Ontology Version: 3.0.0

cacontology-custodial:CustodyPhaseGUFOShape leaf node


URI

https://cacontology.projectvic.org/custodial#CustodyPhaseGUFOShape

Label

gUFO Custody Phase Shape

Description

Validates custody phases as anti-rigid gUFO phases.

Target Classes (1)

Implementation

@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-custodial: <https://cacontology.projectvic.org/custodial#> .
@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-custodial:CustodyPhaseGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Custody Phase Shape"@en ;
    rdfs:comment "Validates custody phases as anti-rigid gUFO phases."@en ;
    sh:sparql [ sh:message "Custody phases must follow valid transition sequence"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/custodial#"^^xsd:anyURI ;
                            sh:prefix "cacontology-custodial" ] ] ;
            sh:select """
            PREFIX cacontology-custodial: <https://cacontology.projectvic.org/custodial#>
            SELECT ?this
            WHERE {
                ?relationship cacontology-custodial:hasCustodyPhase ?this ;
                              cacontology-custodial:hasCustodyPhase ?nextPhase .
                ?this cacontology-custodial:precedesCustodyPhase ?nextPhase ;
                      cacontology-custodial:hasCustodyEndPoint ?end1 .
                ?nextPhase cacontology-custodial:hasCustodyBeginPoint ?begin2 .
                FILTER (?end1 > ?begin2)
            }
        """ ] ;
    sh:targetClass cac-core:Phase .