Ontology Version: 2.7.0

cacontology-legal-shapes:LegislativeProcessShape leaf node


URI

https://cacontology.projectvic.org/legal-harmonization/shapes#LegislativeProcessShape

Label

Legislative Process Shape

Description

Validates legislative process classes as gUFO EventTypes.

Shape Properties

Instances of cacontology-legal:LegislativeProcess can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-legal:LegislativeProcess
cacontology-legal:processDate 1 xsd:date
cacontology-legal:processStatus 1 xsd:string
1

Implementation

@prefix cacontology-legal: <https://cacontology.projectvic.org/legal-harmonization#> .
@prefix cacontology-legal-shapes: <https://cacontology.projectvic.org/legal-harmonization/shapes#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@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-legal-shapes:LegislativeProcessShape a sh:NodeShape ;
    rdfs:label "Legislative Process Shape"@en ;
    rdfs:comment "Validates legislative process classes as gUFO EventTypes."@en ;
    sh:property [ sh:hasValue gufo:EventType ;
            sh:message "Legislative processes must be classified as gUFO EventType"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ;
            sh:severity sh:Violation ],
        [ sh:datatype xsd:string ;
            sh:in ( "pending" "in_progress" "completed" "failed" ) ;
            sh:maxCount 1 ;
            sh:message "Process status should be one of: pending, in_progress, completed, failed"@en ;
            sh:path cacontology-legal:processStatus ;
            sh:severity sh:Warning ],
        [ sh:datatype xsd:date ;
            sh:maxCount 1 ;
            sh:message "Process should have a date"@en ;
            sh:path cacontology-legal:processDate ;
            sh:severity sh:Info ] ;
    sh:targetClass cacontology-legal:LegislativeProcess .