Ontology Version: 2.2.0

cacontology-infrastructure-shapes:AnalysisEventTemporalShape leaf node


URI

https://cacontology.projectvic.org/infrastructure/shapes#AnalysisEventTemporalShape

Label

Analysis Event Temporal Shape

Description

Validates gUFO temporal constraints for analysis events.

Shape Properties

Instances of cacontology-infrastructure:InfrastructureAnalysis can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-infrastructure:InfrastructureAnalysis
cacontology-infrastructure:hasAnalysisAccuracy 1 xsd:double
cacontology-infrastructure:hasAnalysisDepth 1 xsd:string
cacontology-infrastructure:hasAnalysisTimeliness 1 xsd:string

Implementation

@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@prefix cacontology-infrastructure-shapes: <https://cacontology.projectvic.org/infrastructure/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-infrastructure-shapes:AnalysisEventTemporalShape a sh:NodeShape ;
    rdfs:label "Analysis Event Temporal Shape"@en ;
    rdfs:comment "Validates gUFO temporal constraints for analysis events."@en ;
    sh:sparql [ sh:message "Analysis events must have consistent temporal boundaries with end after start."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-infrastructure:hasAnalysisBeginPoint ?start ;
                      cacontology-infrastructure:hasAnalysisEndPoint ?end .
                FILTER (?end <= ?start)
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:InfrastructureAnalysis .