Ontology Version: 2.3.0

cacontology-detection:ConfidenceScoreValidationShape leaf node


URI

https://cacontology.projectvic.org/detection#ConfidenceScoreValidationShape

Label

Confidence Score Validation Shape

Description

Validates confidence score consistency and reasonableness.

Shape Properties

Instances of cacontology-detection:DetectionResult can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-detection:DetectionResult
cacontology-detection:confidenceScore 1 1 xsd:decimal
1
1 1 xsd:dateTime

Implementation

@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@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-detection:ConfidenceScoreValidationShape a sh:NodeShape ;
    rdfs:label "Confidence Score Validation Shape"@en ;
    rdfs:comment "Validates confidence score consistency and reasonableness."@en ;
    sh:sparql [ sh:message "High confidence scores should correlate with positive detection decisions"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/detection#"^^xsd:anyURI ;
                            sh:prefix "cacontology-detection" ] ] ;
            sh:select """
            PREFIX cacontology-detection: <https://cacontology.projectvic.org/detection#>
            SELECT ?this
            WHERE {
                ?this cacontology-detection:confidenceScore ?score ;
                      cacontology-detection:reviewDecision "false_positive" .
                FILTER (?score > 0.8)
            }
        """ ] ;
    sh:targetClass cacontology-detection:AutomatedDetectionAction,
        cacontology-detection:DetectionResult .