Ontology Version: 3.0.0

cacontology:InvestigationCompletenessShape leaf node


URI

https://cacontology.projectvic.org#InvestigationCompletenessShape

Label

Investigation Completeness Shape

Target Classes (1)

Shape Properties

Instances of cacontology:CACInvestigation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology:CACInvestigation
cacontology:currentPhase 1 cac-core:Phase
cac-core:Role

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:InvestigationCompletenessShape a sh:NodeShape ;
    rdfs:label "Investigation Completeness Shape"@en ;
    sh:sparql [ sh:message "Investigation must have coherent role and event participation"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org#"^^xsd:anyURI ;
                            sh:prefix "cacontology" ] ] ;
            sh:select """
            PREFIX cacontology: <https://cacontology.projectvic.org#>
            PREFIX gufo: <http://purl.org/nemo/gufo#>
            SELECT ?this
            WHERE {
                ?this cacontology:hasRole ?role .
                ?role cacontology:participatesInInvestigation ?this .
                FILTER NOT EXISTS {
                    ?role cacontology:participatesInEvent ?event .
                    ?event a gufo:Event .
                }
            }
        """ ] ;
    sh:targetClass cacontology:CACInvestigation .