Ontology Version: 3.1.0

cacontology-specialized:TemporalValidationShape leaf node


URI

https://cacontology.projectvic.org/specialized-units#TemporalValidationShape

Label

Temporal Validation Shape

Description

Validates temporal consistency for operations and events.

Targets (7)

  • cacontology-specialized:AffiliateJointOperation sh:targetClass
  • cacontology-specialized:EmergencyResponseCoordination sh:targetClass
  • cacontology-specialized:K9SearchOperation sh:targetClass
  • cacontology-specialized:NamedOperation sh:targetClass
  • cacontology-specialized:OngoingAbuseInvestigation sh:targetClass
  • cacontology-specialized:ProfessionalTrainingEvent sh:targetClass
  • cacontology-specialized:SafetyEducationEvent sh:targetClass

Implementation

@prefix cacontology-specialized: <https://cacontology.projectvic.org/specialized-units#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-specialized:TemporalValidationShape a sh:NodeShape ;
    rdfs:label "Temporal Validation Shape"@en ;
    rdfs:comment "Validates temporal consistency for operations and events."@en ;
    sh:sparql [ sh:message "Start time must be before end time when both are specified."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this uco-core:startTime ?start ;
                      uco-core:endTime ?end .
                FILTER (?start >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-specialized:AffiliateJointOperation,
        cacontology-specialized:EmergencyResponseCoordination,
        cacontology-specialized:K9SearchOperation,
        cacontology-specialized:NamedOperation,
        cacontology-specialized:OngoingAbuseInvestigation,
        cacontology-specialized:ProfessionalTrainingEvent,
        cacontology-specialized:SafetyEducationEvent .