Ontology Version: 2.2.0

cacontology-legal-shapes:CriticalGapReformRule leaf node


URI

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

Label

Critical Gap Reform Rule

Description

Critical gaps should require urgent reform.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-legal:LegalFrameworkGap
cacontology-legal:hasGapSeverity 1 xsd:string
cacontology-legal:policyGapSeverity 1 1 xsd:string
cacontology-legal:requiresReform 1 cacontology-legal:LegalReform
1
1 xsd:string

Implementation

@prefix cacontology-legal: <https://cacontology.projectvic.org/legal-harmonization#> .
@prefix cacontology-legal-shapes: <https://cacontology.projectvic.org/legal-harmonization/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-legal-shapes:CriticalGapReformRule a sh:NodeShape ;
    rdfs:label "Critical Gap Reform Rule"@en ;
    rdfs:comment "Critical gaps should require urgent reform."@en ;
    sh:sparql [ sh:message "Critical gaps should require urgent reform"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/legal-harmonization#"^^xsd:anyURI ;
                            sh:prefix "cacontology-legal" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-legal:hasGapSeverity ?severity .
                FILTER (?severity IN ("critical", "systemic"))
                OPTIONAL {
                    $this cacontology-legal:requiresReform ?reform .
                    ?reform cacontology-legal:hasReformUrgency ?urgency .
                    FILTER (?urgency IN ("urgent", "critical"))
                }
                FILTER (!BOUND(?urgency))
            }
        """ ;
            sh:severity sh:Warning ] ;
    sh:targetClass cacontology-legal:LegalFrameworkGap .