Ontology Version: 3.0.0

cacontology:InvestigationActiveSituationShape leaf node


URI

https://cacontology.projectvic.org#InvestigationActiveSituationShape

Label

Investigation Active Situation Shape

Implementation

@prefix cacontology: <https://cacontology.projectvic.org#> .
@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: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#"^^xsd:anyURI ;
                            sh:prefix "cacontology" ] ] ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this a cacontology:InvestigationActiveSituation .
                ?investigation cacontology:currentPhase ?phase .
                FILTER NOT EXISTS {
                    ?phase a cacontology:AnalysisPhase .
                } FILTER NOT EXISTS {
                    ?phase a cacontology:LegalProcessPhase .
                } FILTER NOT EXISTS {
                    ?phase a cacontology:EvidencePhase .
                } FILTER NOT EXISTS {
                    ?phase a cacontology:ConclusionPhase .
                }
            }
        """ ] ;
    sh:targetClass cacontology:InvestigationActiveSituation .