Ontology Version: 3.0.0

cacontology-physical-shapes:ProcurementEventTypeValidationShape leaf node


URI

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

Label

Procurement Event Type Validation Shape

Description

Validates gUFO Event type consistency for procurement events.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-physical:CriminalProcurement
cacontology-physical:hasAcquisitionRisk 1 xsd:string
cacontology-physical:hasProcurementSuspicion 1 xsd:string
cacontology-physical:hasTraceability 1 xsd:double
cacontology-physical:paymentMethod 0 1 xsd:string
cacontology-physical:procurementCost 0 1 xsd:decimal
cacontology-physical:procurementMethod 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:ProcurementEventTypeValidationShape a sh:NodeShape ;
    rdfs:label "Procurement Event Type Validation Shape"@en ;
    rdfs:comment "Validates gUFO Event type consistency for procurement events."@en ;
    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-physical:CriminalProcurement .