Ontology Version: 3.1.0

cacontology-usa-leg-shapes:USSubCabinetAgencyShape leaf node


URI

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

Label

U.S. Sub-Cabinet Agency Shape

Description

Validates U.S. sub-cabinet agency instances.

Targets (1)

Property Constraints (3)

Focus nodes of this shape (cacontology-usa-leg:USSubCabinetAgency) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-usa-leg:acronym Common acronym for an organization.
sh:message Sub-cabinet agency should have an acronym
1 1 xsd:string
sh:severity sh:Warning
cacontology-usa-leg:parentAgency Links an agency to its parent cabinet or sub-cabinet agency.
sh:message Sub-cabinet agency must have exactly one parent cabinet agency
1 1 cacontology-usa-leg:USCabinetAgency
sh:severity sh:Violation
rdfs:label
sh:message Sub-cabinet agency must have a label
1 * rdf:langString
sh:severity sh:Violation

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:USSubCabinetAgencyShape a sh:NodeShape ;
    rdfs:label "U.S. Sub-Cabinet Agency Shape"@en ;
    rdfs:comment "Validates U.S. sub-cabinet agency instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:message "Sub-cabinet agency should have an acronym"@en ;
            sh:minCount 1 ;
            sh:path cacontology-usa-leg:acronym ;
            sh:severity sh:Warning ],
        [ sh:class cacontology-usa-leg:USCabinetAgency ;
            sh:maxCount 1 ;
            sh:message "Sub-cabinet agency must have exactly one parent cabinet agency"@en ;
            sh:minCount 1 ;
            sh:path cacontology-usa-leg:parentAgency ;
            sh:severity sh:Violation ],
        [ sh:datatype rdf:langString ;
            sh:message "Sub-cabinet agency must have a label"@en ;
            sh:minCount 1 ;
            sh:path rdfs:label ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-usa-leg:USSubCabinetAgency .