Ontology Version: 3.0.0

cacontology-physical-shapes:SearchEventTypeValidationShape leaf node


URI

https://cacontology.projectvic.org/physical/shapes#SearchEventTypeValidationShape

Label

Search Event Type Validation Shape

Description

Validates gUFO Event type consistency for search events.

Shape Properties

Instances of cacontology-physical:PhysicalSearch can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-physical:PhysicalSearch
cacontology-physical:hasSearchCompleteness 1 xsd:double
cacontology-physical:hasSearchEfficiency 1 xsd:double
cacontology-physical:hasSearchThoroughness 1 xsd:string
cacontology-physical:searchDuration 1 1 xsd:decimal
cacontology-physical:searchScope 1 1 xsd:string

Implementation

@prefix cacontology-physical: <https://cacontology.projectvic.org/physical#> .
@prefix cacontology-physical-shapes: <https://cacontology.projectvic.org/physical/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-physical-shapes:SearchEventTypeValidationShape a sh:NodeShape ;
    rdfs:label "Search Event Type Validation Shape"@en ;
    rdfs:comment "Validates gUFO Event type consistency for search events."@en ;
    sh:sparql [ sh:message "Search events must be properly typed as gUFO Event and extend UCO Action."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this rdf:type gufo:Event .
                FILTER NOT EXISTS {
                    $this rdf:type ?actionClass ;
                    ?actionClass rdfs:subClassOf* uco-action:Action .
                }
            }
        """ ] ;
    sh:targetClass cacontology-physical:PhysicalSearch .