Ontology Version: 3.1.0

cacontology-registry:VehicleInformationShape leaf node


URI

https://cacontology.projectvic.org/sex-offender-registry#VehicleInformationShape

Label

Vehicle Information Shape

Description

Validation shape for vehicle information instances.

Targets (1)

Property Constraints (4)

Focus nodes of this shape (cacontology-registry:VehicleInformation) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
uco-observable:licensePlate
sh:message License plate should be 2-15 characters when specified.
0 1 xsd:string
sh:minLength 2
sh:maxLength 15
uco-observable:make
sh:message Vehicle must specify make (2-50 characters).
1 1 xsd:string
sh:minLength 2
sh:maxLength 50
uco-observable:model
sh:message Vehicle must specify model (1-50 characters).
1 1 xsd:string
sh:minLength 1
sh:maxLength 50
uco-observable:year
sh:message Vehicle year must be between 1900 and 2030 when specified.
0 1 xsd:integer
sh:minInclusive 1900
sh:maxInclusive 2030

Implementation

@prefix cacontology-registry: <https://cacontology.projectvic.org/sex-offender-registry#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-registry:VehicleInformationShape a sh:NodeShape ;
    rdfs:label "Vehicle Information Shape"@en ;
    rdfs:comment "Validation shape for vehicle information instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 50 ;
            sh:message "Vehicle must specify make (2-50 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 2 ;
            sh:path uco-observable:make ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 50 ;
            sh:message "Vehicle must specify model (1-50 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 1 ;
            sh:path uco-observable:model ],
        [ sh:datatype xsd:integer ;
            sh:maxCount 1 ;
            sh:maxInclusive 2030 ;
            sh:message "Vehicle year must be between 1900 and 2030 when specified."@en ;
            sh:minCount 0 ;
            sh:minInclusive 1900 ;
            sh:path uco-observable:year ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 15 ;
            sh:message "License plate should be 2-15 characters when specified."@en ;
            sh:minCount 0 ;
            sh:minLength 2 ;
            sh:path uco-observable:licensePlate ] ;
    sh:targetClass cacontology-registry:VehicleInformation .