glam/schemas/20251121/linkml/modules/classes/ConfidenceScore.yaml

99 lines
2.9 KiB
YAML

id: https://nde.nl/ontology/hc/class/ConfidenceScore
name: confidence_score_class
title: Confidence Score
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
sosa: http://www.w3.org/ns/sosa/
prov: http://www.w3.org/ns/prov#
schema: http://schema.org/
imports:
- linkml:types
- ../slots/has_description
- ../slots/has_method
- ../slots/has_score
default_prefix: hc
classes:
ConfidenceScore:
description: >-
A structured confidence score representing quality/certainty measurements.
**MIGRATION**:
Replaces simple `confidence_score` float slot with structured class:
- `has_score`: The numeric value (0.0-1.0)
- `has_method`: How confidence was calculated
- `has_description`: Explanation of confidence assessment
**USAGE**:
- Process quality assessment (methodology confidence)
- Match/similarity confidence (entity resolution)
- Extraction confidence (NLP/XPath extraction)
- Prediction confidence (ML model outputs)
**RANGE**: 0.0 (low confidence) to 1.0 (high confidence)
**ONTOLOGY MAPPING**:
- sosa:hasSimpleResult for the score value
- prov:value as close mapping
class_uri: sosa:Result
exact_mappings:
- sosa:Result
close_mappings:
- prov:Value
- schema:Rating
slots:
- has_score
- has_method
- has_description
slot_usage:
has_score:
range: float
minimum_value: 0.0
maximum_value: 1.0
required: true
examples:
- value: 0.95
- value: 0.50
- value: 0.10
has_method:
# range: string
required: false
examples:
- value: "fuzzy_string_matching"
- value: "xpath_extraction_validation"
- value: "llm_classification"
has_description:
# range: string
required: false
examples:
- value: "High confidence - exact name match with verified ISIL code"
annotations:
custodian_types: '["*"]'
custodian_types_rationale: >-
Confidence scoring applies universally across all data extraction contexts.
custodian_types_primary: "*"
specificity_score: 0.20
specificity_rationale: >-
Low specificity - fundamental measurement concept for data quality.
examples:
- value:
has_score: 0.95
has_method: "xpath_extraction"
has_description: "Exact match found at expected XPath location"
- value:
has_score: 0.65
has_method: "fuzzy_string_matching"
has_description: "Moderate similarity to reference name (Levenshtein ratio 0.85)"
comments:
- Created from slot_fixes.yaml migration (2026-01-19)
- Replaces simple confidence_score float slot
- Used with generated_by slot for provenance