https://cacontology.projectvic.org/production#ProductionEventShape
gUFO validation for production events ensuring proper temporal modeling.
Instances of gufo:Event can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|---|
@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@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-production:ProductionEventShape a sh:NodeShape ;
rdfs:label "Production Event Shape"@en ;
rdfs:comment "gUFO validation for production events ensuring proper temporal modeling."@en ;
sh:property [ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Production event must have exactly one begin point."@en ;
sh:minCount 1 ;
sh:path gufo:hasBeginPointInXSDDateTimeStamp ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Production event may have an end point."@en ;
sh:minCount 0 ;
sh:path gufo:hasEndPointInXSDDateTimeStamp ] ;
sh:sparql [ sh:message "Event begin point must be before end point."@en ;
sh:prefixes [ sh:declare [ sh:namespace "http://purl.org/nemo/gufo#"^^xsd:anyURI ;
sh:prefix "gufo" ] ] ;
sh:select """
SELECT ?this WHERE {
?this gufo:hasBeginPointInXSDDateTimeStamp ?begin .
?this gufo:hasEndPointInXSDDateTimeStamp ?end .
FILTER(?begin >= ?end)
}
""" ] ;
sh:targetClass gufo:Event .