Ontology Version: 2.2.0

cacontology-multi:MultiJurisdictionalDataQualityShape leaf node


URI

https://cacontology.projectvic.org/multi-jurisdiction#MultiJurisdictionalDataQualityShape

Label

Multi-Jurisdictional Data Quality Shape

Description

Enhanced data quality validation for multi-jurisdictional operations with gUFO quality aspects.

Shape Properties

Instances of cacontology-multi:MultiJurisdictionalInvestigation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-multi: <https://cacontology.projectvic.org/multi-jurisdiction#> .
@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-multi:MultiJurisdictionalDataQualityShape a sh:NodeShape ;
    rdfs:label "Multi-Jurisdictional Data Quality Shape"@en ;
    rdfs:comment "Enhanced data quality validation for multi-jurisdictional operations with gUFO quality aspects."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "poor" "fair" "good" "excellent" "validated" ) ;
            sh:maxCount 1 ;
            sh:message "Data quality must be from allowed values (gUFO quality aspect)."@en ;
            sh:path cacontology-multi:hasDataQuality ],
        [ sh:datatype xsd:double ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Data completeness must be between 0.0 and 1.0 (gUFO quality aspect)."@en ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-multi:hasDataCompleteness ],
        [ sh:datatype xsd:double ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Data consistency must be between 0.0 and 1.0 (gUFO quality aspect)."@en ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-multi:hasDataConsistency ],
        [ sh:datatype xsd:string ;
            sh:in ( "none" "basic" "standard" "comprehensive" "certified" ) ;
            sh:maxCount 1 ;
            sh:message "Validation level must be from allowed values (gUFO quality aspect)."@en ;
            sh:path cacontology-multi:hasValidationLevel ] ;
    sh:sparql [ sh:message "High-quality data should have good completeness and consistency (gUFO data quality rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-multi:hasDataQuality ?quality .
                $this cacontology-multi:hasDataCompleteness ?completeness .
                $this cacontology-multi:hasDataConsistency ?consistency .
                FILTER (?quality IN ("excellent", "validated"))
                FILTER (?completeness < 0.8 || ?consistency < 0.8)
            }
        """ ],
        [ sh:message "Complex operations should have comprehensive validation (gUFO data quality rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-multi:hasComplexityLevel ?complexity .
                $this cacontology-multi:hasValidationLevel ?validation .
                FILTER (?complexity IN ("highly_complex", "extremely_complex"))
                FILTER (?validation IN ("none", "basic"))
            }
        """ ] ;
    sh:targetClass cacontology-multi:MultiJurisdictionalInvestigation .