Ontology Version: 2.2.0

cacontology-physical-shapes:ProcurementEventTypeValidationShape leaf node


URI

https://cacontology.projectvic.org/physical-evidence/shapes#ProcurementEventTypeValidationShape

Label

Procurement Event Type Validation Shape

Description

Validates gUFO Event type consistency for procurement events.

Implementation

@prefix cacontology-physical-shapes: <https://cacontology.projectvic.org/physical-evidence/shapes#> .
@prefix cacontology-physical1: <https://cacontology.projectvic.org/physical-evidence#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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-physical-shapes:ProcurementEventTypeValidationShape a sh:NodeShape ;
    rdfs:label "Procurement Event Type Validation Shape"@en ;
    rdfs:comment "Validates gUFO Event type consistency for procurement events."@en ;
    sh:property [ sh:hasValue gufo:Event ;
            sh:message "Criminal procurement must be typed as gUFO Event."@en ;
            sh:minCount 1 ;
            sh:path rdf:type ] ;
    sh:sparql [ sh:message "Procurement 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-physical1:CriminalProcurement .