Ontology Version: 2.2.0

cacontology-gufo:InvestigationActiveSituationShape leaf node


URI

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

Label

Investigation Active Situation Shape

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:InvestigationActiveSituationShape a sh:NodeShape ;
    rdfs:label "Investigation Active Situation Shape"@en ;
    sh:sparql [ sh:message "Active investigation situation must correspond to active phase"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/gufo#"^^xsd:anyURI ;
                            sh:prefix "cacontology-gufo" ] ] ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this a cacontology-gufo:InvestigationActiveSituation .
                ?investigation cacontology-gufo:inPhase ?phase .
                FILTER NOT EXISTS {
                    ?phase a cacontology-gufo:AnalysisPhase .
                } FILTER NOT EXISTS {
                    ?phase a cacontology-gufo:LegalProcessPhase .
                } FILTER NOT EXISTS {
                    ?phase a cacontology-gufo:EvidencePhase .
                } FILTER NOT EXISTS {
                    ?phase a cacontology-gufo:ResolutionPhase .
                }
            }
        """ ] ;
    sh:targetClass cacontology-gufo:InvestigationActiveSituation .