Ontology Version: 3.1.0

cacontology-legal-shapes:LegislativeAssessmentShape leaf node


URI

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

Label

Legislative Assessment Shape

Description

Enhanced shape for legislative assessments with reliability assessment. - Assessment must have creation timestamp. - Compliance score must be between 0.0 and 1.0.

Targets (1)

Property Constraints (5)

Focus nodes of this shape (cacontology-legal:LegislativeAssessment) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-legal:hasAssessmentReliability Reliability of legislative assessment (0.0 to 1.0) - gUFO quality aspect.
sh:message Assessment reliability should be measured
0 1 xsd:double
sh:minInclusive 0.0
sh:maxInclusive 1.0
sh:severity sh:Info
cacontology-legal:hasDataQuality Data quality assessment (poor, fair, good, excellent, validated) - gUFO quality aspect.
sh:message Data quality should be assessed
0 1 xsd:string
sh:in poor, fair, good, excellent, validated
sh:severity sh:Info
cacontology-legal:legislativeCompliance Compliance score with model legislation (0.0-1.0). 1 1 xsd:decimal
sh:minInclusive 0.0
sh:maxInclusive 1.0
rdf:type
sh:message Must be classified as gUFO Kind
1 *
sh:hasValue gufo:Kind
sh:severity sh:Violation
uco-core:createdTime 1 1 xsd:dateTime

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 uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-legal-shapes:LegislativeAssessmentShape a sh:NodeShape ;
    rdfs:label "Legislative Assessment Shape"@en ;
    rdfs:comment "Enhanced shape for legislative assessments with reliability assessment."@en ;
    sh:property [ sh:hasValue gufo:Kind ;
            sh:message "Must be classified as gUFO Kind"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ;
            sh:severity sh:Violation ],
        [ sh:datatype xsd:double ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Assessment reliability should be measured"@en ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-legal:hasAssessmentReliability ;
            sh:severity sh:Info ],
        [ sh:datatype xsd:string ;
            sh:in ( "poor" "fair" "good" "excellent" "validated" ) ;
            sh:maxCount 1 ;
            sh:message "Data quality should be assessed"@en ;
            sh:path cacontology-legal:hasDataQuality ;
            sh:severity sh:Info ],
        [ rdfs:comment "Compliance score must be between 0.0 and 1.0."@en ;
            sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:minCount 1 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-legal:legislativeCompliance ],
        [ rdfs:comment "Assessment must have creation timestamp."@en ;
            sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:path uco-core:createdTime ] ;
    sh:targetClass cacontology-legal:LegislativeAssessment .