Ontology Version: 2.2.0

cacontology-enterprises:GufoTemporalConsistencyShape leaf node


URI

https://cacontology.projectvic.org/extremist-enterprises#GufoTemporalConsistencyShape

Label

GufoTemporalConsistencyShape

Implementation

@prefix cacontology-enterprises: <https://cacontology.projectvic.org/extremist-enterprises#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-enterprises:GufoTemporalConsistencyShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Enterprise must have at most one operational begin date."@en ;
            sh:path cacontology-enterprises:hasOperationalBeginDate ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Enterprise must have at most one operational end date."@en ;
            sh:path cacontology-enterprises:hasOperationalEndDate ] ;
    sh:sparql [ sh:message "Operational end date must be after begin date."@en ;
            sh:prefixes cacontology-enterprises: ;
            sh:select """
            SELECT $this WHERE {
                $this cacontology-enterprises:hasOperationalBeginDate ?begin .
                $this cacontology-enterprises:hasOperationalEndDate ?end .
                FILTER (?end <= ?begin)
            }
        """ ] ;
    sh:targetClass cacontology-enterprises:ChildExploitationEnterprise .