Ontology Version: 2.2.0

cacontology-usa-federal:FederalProsecutorRoleShape leaf node


URI

https://cacontology.projectvic.org/usa-federal-law#FederalProsecutorRoleShape

Label

FederalProsecutorRoleShape

Shape Properties

Instances of cacontology-usa-federal:FederalProsecutorRole can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-usa-federal:FederalProsecutorRole
cacontology-usa-federal:hasRoleBeginPoint 1 1 xsd:dateTimeStamp
cacontology-usa-federal:roleExperience 1 xsd:integer
cacontology-usa-federal:roleSpecialization 1 xsd:string

Implementation

@prefix cacontology-usa-federal: <https://cacontology.projectvic.org/usa-federal-law#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-usa-federal:FederalProsecutorRoleShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Federal prosecutor role must have exactly one begin point"@en ;
            sh:minCount 1 ;
            sh:path cacontology-usa-federal:hasRoleBeginPoint ],
        [ sh:datatype xsd:string ;
            sh:in ( "child-exploitation" "sex-trafficking" "cybercrime" "obscenity" "general" ) ;
            sh:maxCount 1 ;
            sh:message "Prosecutor specialization must be specified from valid options"@en ;
            sh:path cacontology-usa-federal:roleSpecialization ],
        [ sh:datatype xsd:integer ;
            sh:maxCount 1 ;
            sh:message "Role experience must be non-negative integer"@en ;
            sh:minInclusive 0 ;
            sh:path cacontology-usa-federal:roleExperience ] ;
    sh:targetClass cacontology-usa-federal:FederalProsecutorRole .