Ontology Version: 2.2.0

cacontology-legal-shapes:FullComplianceAlignmentRule leaf node


URI

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

Label

Full Compliance Alignment Rule

Description

Full legal alignment should have high compliance levels.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-legal:LegalCompliance
cacontology-legal:hasComplianceLevel 1 xsd:double
cacontology-legal:legalAlignmentLevel 1 1 xsd:string
cacontology-legal:measuredBy 1 cacontology-legal:ComplianceMetrics
1

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:FullComplianceAlignmentRule a sh:NodeShape ;
    rdfs:label "Full Compliance Alignment Rule"@en ;
    rdfs:comment "Full legal alignment should have high compliance levels."@en ;
    sh:sparql [ sh:message "Full legal alignment should have high compliance levels"@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:legalAlignmentLevel "full" .
                OPTIONAL {
                    $this cacontology-legal:hasComplianceLevel ?level .
                    FILTER (?level >= 0.8)
                }
                FILTER (!BOUND(?level))
            }
        """ ;
            sh:severity sh:Warning ] ;
    sh:targetClass cacontology-legal:LegalCompliance .