Ontology Version: 2.2.0

cacontology-enterprises:GufoEventDurationRule leaf node


URI

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

Label

GufoEventDurationRule

Target Classes (1)

Shape Properties

Instances of gufo:Event can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-enterprises: <https://cacontology.projectvic.org/extremist-enterprises#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-enterprises:GufoEventDurationRule a sh:NodeShape ;
    sh:sparql [ sh:message "gUFO Events with both begin and end dates must have positive duration."@en ;
            sh:prefixes gufo: ;
            sh:select """
            SELECT $this WHERE {
                $this rdf:type gufo:Event .
                $this gufo:hasBeginPointInXSDDateTimeStamp ?begin .
                $this gufo:hasEndPointInXSDDateTimeStamp ?end .
                FILTER (?end <= ?begin)
            }
        """ ] ;
    sh:targetClass gufo:Event .