Ontology Version: 3.1.0

cacontology-partnerships-shapes:NationalInitiativeProgramShape leaf node


URI

https://cacontology.projectvic.org/partnerships/shapes#NationalInitiativeProgramShape

Label

National Initiative Program Shape

Description

Validation shape for national initiative program instances.

Targets (1)

  • cacontology-partnerships:NationalInitiativeProgram sh:targetClass

Property Constraints (5)

Focus nodes of this shape (cacontology-partnerships:NationalInitiativeProgram) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-partnerships:casesProcessed
sh:message Cases processed must be between 0 and 10,000.
0 1 xsd:nonNegativeInteger
sh:minInclusive 0
sh:maxInclusive 10000
cacontology-partnerships:initiativeName
sh:message Initiative name must be between 3 and 100 characters.
1 1 xsd:string
sh:minLength 3
sh:maxLength 100
cacontology-partnerships:launchedDate
sh:message National initiative must have a launch date.
1 1 xsd:dateTime
cacontology-partnerships:leadAgency
sh:message Lead agency must be from the allowed list.
1 1 xsd:string
sh:in DOJ, DHS, FBI, ICE, USAO, ATF
cacontology-partnerships:programScope
sh:message Program scope must be from the allowed list.
1 1 xsd:string
sh:in federal, state_coordination, local_support, multi_jurisdictional

Implementation

@prefix cacontology-partnerships: <https://cacontology.projectvic.org/partnerships#> .
@prefix cacontology-partnerships-shapes: <https://cacontology.projectvic.org/partnerships/shapes#> .
@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-partnerships-shapes:NationalInitiativeProgramShape a sh:NodeShape ;
    rdfs:label "National Initiative Program Shape"@en ;
    rdfs:comment "Validation shape for national initiative program instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 100 ;
            sh:message "Initiative name must be between 3 and 100 characters."@en ;
            sh:minCount 1 ;
            sh:minLength 3 ;
            sh:path cacontology-partnerships:initiativeName ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "National initiative must have a launch date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-partnerships:launchedDate ],
        [ sh:datatype xsd:string ;
            sh:in ( "federal" "state_coordination" "local_support" "multi_jurisdictional" ) ;
            sh:maxCount 1 ;
            sh:message "Program scope must be from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-partnerships:programScope ],
        [ sh:datatype xsd:string ;
            sh:in ( "DOJ" "DHS" "FBI" "ICE" "USAO" "ATF" ) ;
            sh:maxCount 1 ;
            sh:message "Lead agency must be from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-partnerships:leadAgency ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 10000 ;
            sh:message "Cases processed must be between 0 and 10,000."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0 ;
            sh:path cacontology-partnerships:casesProcessed ] ;
    sh:targetClass cacontology-partnerships:NationalInitiativeProgram .