Ontology Version: 2.2.0

cacontology-institutional:InstitutionalTemporalBoundariesShape leaf node


URI

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

Label

InstitutionalTemporalBoundariesShape

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-institutional:CharitableOrganization
cacontology-institutional:childrenServed 0 1 xsd:nonNegativeInteger
cacontology-institutional:foundingYear 0 1 xsd:gYear
cacontology-institutional:hasInstitutionFoundingDate 1 xsd:dateTime
cacontology-institutional:hasInstitutionalReputationLevel 1 xsd:string
cacontology-institutional:hasOperationEndDate 1 xsd:dateTime
cacontology-institutional:hasOversightLevel 1 xsd:string

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:InstitutionalTemporalBoundariesShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Institution may have at most one founding date (gUFO temporal boundary)"@en ;
            sh:path cacontology-institutional:hasInstitutionFoundingDate ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Institution may have at most one operation end date (gUFO temporal boundary)"@en ;
            sh:path cacontology-institutional:hasOperationEndDate ] ;
    sh:sparql [ sh:message "Institution operation end date must be after founding date (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:hasInstitutionFoundingDate ?foundingDate .
                $this cacontology-institutional:hasOperationEndDate ?endDate .
                FILTER (?endDate <= ?foundingDate)
            }
        """ ] ;
    sh:targetClass cacontology-institutional:CharitableOrganization .