Ontology Version: 2.2.0

cacontology-stranger:SearchTimingShape leaf node


URI

https://cacontology.projectvic.org/stranger-abduction#SearchTimingShape

Label

Search Timing Shape

Description

Validates search operation timing.

Implementation

@prefix cacontology-stranger: <https://cacontology.projectvic.org/stranger-abduction#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-stranger:SearchTimingShape a sh:NodeShape ;
    rdfs:label "Search Timing Shape"@en ;
    rdfs:comment "Validates search operation timing."@en ;
    sh:sparql [ sh:message "Search 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-stranger:SearchOperation .