Ontology Version: 2.2.0

cacontology-institutional:ExploitationTemporalShape leaf node


URI

https://cacontology.projectvic.org/institutional-exploitation#ExploitationTemporalShape

Label

ExploitationTemporalShape

Shape Properties

Instances of cacontology-institutional:InstitutionalExploitation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-institutional:InstitutionalExploitation
cacontology-institutional:hasExploitationEndDate 1 xsd:dateTime
cacontology-institutional:hasExploitationSeverityLevel 1 1 xsd:string
cacontology-institutional:hasExploitationStartDate 1 xsd:dateTime
cacontology-institutional:occursWithin 1 1 cacontology-institutional:CharitableOrganization
cacontology-institutional:victimCount 1 1 xsd:nonNegativeInteger

Implementation

@prefix cacontology-institutional: <https://cacontology.projectvic.org/institutional-exploitation#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-institutional:ExploitationTemporalShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Exploitation may have at most one start date (gUFO temporal boundary)"@en ;
            sh:path cacontology-institutional:hasExploitationStartDate ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Exploitation may have at most one end date (gUFO temporal boundary)"@en ;
            sh:path cacontology-institutional:hasExploitationEndDate ] ;
    sh:sparql [ sh:message "Exploitation end date must be after start date when both specified (gUFO temporal ordering)"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/institutional-exploitation#"^^xsd:anyURI ;
                            sh:prefix "cacontology-institutional" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-institutional:hasExploitationStartDate ?startDate .
                $this cacontology-institutional:hasExploitationEndDate ?endDate .
                FILTER (?endDate <= ?startDate)
            }
        """ ] ;
    sh:targetClass cacontology-institutional:InstitutionalExploitation .