Ontology Version: 2.7.0

cacontology-usa-leg-shapes:LegislativeStageOrderingShape leaf node


URI

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

Label

Legislative Stage Ordering Shape

Description

Validates proper ordering of legislative stages.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-usa-leg:LegislativeStage
cacontology-usa-leg:isFinal 1 xsd:boolean
cacontology-usa-leg:stageOrder 1 1 xsd:integer
1 rdf:langString
gufo:Phase
cacontology-infrastructure:hasPhaseBeginPoint 1 xsd:dateTimeStamp
cacontology-infrastructure:hasPhaseEndPoint 1 xsd:dateTimeStamp
cacontology-multi:hasCoordinationPhaseBeginPoint 1 xsd:dateTimeStamp
cacontology-multi:hasCoordinationPhaseEndPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasPhaseBeginPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasPhaseEndPoint 1 xsd:dateTimeStamp
cacontology-production:hasProductionPhaseBeginPoint 0 1 xsd:dateTimeStamp
cacontology-production:hasProductionPhaseEndPoint 0 1 xsd:dateTimeStamp
cacontology-temporal:hasLegalDeadline 1 xsd:dateTimeStamp
cacontology-temporal:hasMaximumDuration 1 xsd:duration
cacontology-temporal:hasMinimumDuration 1 xsd:duration
cacontology-temporal:hasTypicalDuration 1 xsd:duration
cacontology-temporal:phaseCompletionRate 1 xsd:decimal
cacontology-temporal:phaseEfficiency 1 xsd:decimal
cacontology-temporal:urgencyLevel 1 xsd:integer

Implementation

@prefix cacontology-usa-leg: <https://cacontology.projectvic.org/usa-legislative#> .
@prefix cacontology-usa-leg-shapes: <https://cacontology.projectvic.org/usa-legislative/shapes#> .
@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:LegislativeStageOrderingShape a sh:NodeShape ;
    rdfs:label "Legislative Stage Ordering Shape"@en ;
    rdfs:comment "Validates proper ordering of legislative stages."@en ;
    sh:sparql [ sh:message "Final stages should have the highest stage order"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/usa-legislative#"^^xsd:anyURI ;
                            sh:prefix "cacontology-usa-leg" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-usa-leg:isFinal true .
                $this cacontology-usa-leg:stageOrder ?order .
                FILTER (?order < 6)
            }
        """ ;
            sh:severity sh:Warning ] ;
    sh:targetClass cacontology-usa-leg:LegislativeStage .