Ontology Version: 3.1.0

cacontology-usa-leg-shapes:USCabinetAgencyShape leaf node


URI

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

Label

U.S. Cabinet Agency Shape

Description

Validates U.S. cabinet-level agency instances.

Targets (1)

Property Constraints (3)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-legal:jurisdictionScope Indicates the country/region where this concept applies. Use ISO 3166-1 alpha-2 codes (US, GB, AU, etc.) or 'international' for universal concepts.
sh:message Cabinet agency should have jurisdiction scope 'US'
1 *
sh:hasValue US
sh:severity sh:Warning
cacontology-usa-leg:acronym Common acronym for an organization.
sh:message Cabinet agency should have an acronym (2-10 characters)
1 1 xsd:string
sh:minLength 2
sh:maxLength 10
sh:severity sh:Warning
rdfs:label
sh:message Cabinet agency must have a label
1 * rdf:langString
sh:severity sh:Violation

Implementation

@prefix cacontology-legal: <https://cacontology.projectvic.org/legal-harmonization#> .
@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:USCabinetAgencyShape a sh:NodeShape ;
    rdfs:label "U.S. Cabinet Agency Shape"@en ;
    rdfs:comment "Validates U.S. cabinet-level agency instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 10 ;
            sh:message "Cabinet agency should have an acronym (2-10 characters)"@en ;
            sh:minCount 1 ;
            sh:minLength 2 ;
            sh:path cacontology-usa-leg:acronym ;
            sh:severity sh:Warning ],
        [ sh:datatype rdf:langString ;
            sh:message "Cabinet agency must have a label"@en ;
            sh:minCount 1 ;
            sh:path rdfs:label ;
            sh:severity sh:Violation ],
        [ sh:hasValue "US" ;
            sh:message "Cabinet agency should have jurisdiction scope 'US'"@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal:jurisdictionScope ;
            sh:severity sh:Warning ] ;
    sh:targetClass cacontology-usa-leg:USCabinetAgency .