Ontology Version: 2.7.0

cacontology-usa-leg-shapes:USFederalDirectorateShape leaf node


URI

https://cacontology.projectvic.org/usa-legislative/shapes#USFederalDirectorateShape

Label

U.S. Federal Directorate Shape

Description

Validates U.S. federal directorate instances.

Shape Properties

Instances of cacontology-usa-leg:USFederalDirectorate can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-usa-leg:USFederalDirectorate
cacontology-usa-leg:acronym 1 1 xsd:string
cacontology-usa-leg:parentAgency 1 1 cacontology-usa-leg:USSubCabinetAgency
1 rdf:langString

Implementation

@prefix cacontology-usa-leg: <https://cacontology.projectvic.org/usa-legislative#> .
@prefix cacontology-usa-leg-shapes: <https://cacontology.projectvic.org/usa-legislative/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-usa-leg-shapes:USFederalDirectorateShape a sh:NodeShape ;
    rdfs:label "U.S. Federal Directorate Shape"@en ;
    rdfs:comment "Validates U.S. federal directorate instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:message "Federal directorate should have an acronym"@en ;
            sh:minCount 1 ;
            sh:path cacontology-usa-leg:acronym ;
            sh:severity sh:Warning ],
        [ sh:class cacontology-usa-leg:USSubCabinetAgency ;
            sh:maxCount 1 ;
            sh:message "Federal directorate must have exactly one parent sub-cabinet agency"@en ;
            sh:minCount 1 ;
            sh:path cacontology-usa-leg:parentAgency ;
            sh:severity sh:Violation ],
        [ sh:datatype rdf:langString ;
            sh:message "Federal directorate must have a label"@en ;
            sh:minCount 1 ;
            sh:path rdfs:label ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-usa-leg:USFederalDirectorate .