https://cacontology.projectvic.org/usa-legislative/shapes#LegislativeStageOrderingShape
Validates proper ordering of legislative stages.
Instances of cacontology-usa-leg:LegislativeStage can have the following properties:
@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 .