Ontology Version: 3.1.0

cacontology-stranger:VehicleAbductionShape leaf node


URI

https://cacontology.projectvic.org/abduction#VehicleAbductionShape

Label

Vehicle Abduction Shape

Description

Validation shape for vehicle abduction instances.

Targets (1)

  • cacontology-stranger:VehicleAbduction sh:targetClass

Property Constraints (3)

Focus nodes of this shape (cacontology-stranger:VehicleAbduction) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-stranger:licensePlateInfo
sh:message Vehicle abduction must specify if license plate information is available.
1 1 xsd:boolean
cacontology-stranger:vehicleColor
sh:message Vehicle color must be from the allowed list.
0 1 xsd:string
sh:in white, black, gray, silver, red, blue, green, yellow, brown, other, unknown
cacontology-stranger:vehicleType
sh:message Vehicle abduction must specify vehicle type from the allowed list.
1 1 xsd:string
sh:in sedan, suv, truck, van, motorcycle, commercial_vehicle, unknown

Implementation

@prefix cacontology-stranger: <https://cacontology.projectvic.org/abduction#> .
@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-stranger:VehicleAbductionShape a sh:NodeShape ;
    rdfs:label "Vehicle Abduction Shape"@en ;
    rdfs:comment "Validation shape for vehicle abduction instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "sedan" "suv" "truck" "van" "motorcycle" "commercial_vehicle" "unknown" ) ;
            sh:maxCount 1 ;
            sh:message "Vehicle abduction must specify vehicle type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-stranger:vehicleType ],
        [ sh:datatype xsd:string ;
            sh:in ( "white" "black" "gray" "silver" "red" "blue" "green" "yellow" "brown" "other" "unknown" ) ;
            sh:maxCount 1 ;
            sh:message "Vehicle color must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-stranger:vehicleColor ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Vehicle abduction must specify if license plate information is available."@en ;
            sh:minCount 1 ;
            sh:path cacontology-stranger:licensePlateInfo ] ;
    sh:targetClass cacontology-stranger:VehicleAbduction .