https://cacontology.projectvic.org/production#ProductionSituationShape
gUFO validation for production situations ensuring proper modeling of ongoing states.
Instances of gufo:Situation 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:ProductionSituationShape a sh:NodeShape ;
rdfs:label "Production Situation Shape"@en ;
rdfs:comment "gUFO validation for production situations ensuring proper modeling of ongoing states."@en ;
sh:sparql [ sh:message "Situations should involve multiple entities or persist over time."@en ;
sh:prefixes [ sh:declare [ sh:namespace "http://purl.org/nemo/gufo#"^^xsd:anyURI ;
sh:prefix "gufo" ] ] ;
sh:select """
SELECT ?this WHERE {
?this a gufo:Situation .
FILTER NOT EXISTS {
{ SELECT ?this WHERE {
?this gufo:involves ?entity1 .
?this gufo:involves ?entity2 .
FILTER(?entity1 != ?entity2)
} }
UNION
{ SELECT ?this WHERE {
?this gufo:hasBeginPointInXSDDateTimeStamp ?begin .
?this gufo:hasEndPointInXSDDateTimeStamp ?end .
FILTER(?end > ?begin)
} }
}
}
""" ] ;
sh:targetClass gufo:Situation .