glam/schemas/20251121/linkml/modules/classes/DiarizationSegment.yaml
kempersc 174a420c08
All checks were successful
Deploy Frontend / build-and-deploy (push) Successful in 3m57s
refactor(schema): centralize 1515 inline slot definitions per Rule 48
- Remove inline slot definitions from 144 class files
- Create 7 new centralized slot files in modules/slots/:
  - custodian_type_broader.yaml
  - custodian_type_narrower.yaml
  - custodian_type_related.yaml
  - definition.yaml
  - finding_aid_access_restriction.yaml
  - finding_aid_description.yaml
  - finding_aid_temporal_coverage.yaml
- Add centralize_inline_slots.py automation script
- Update manifest with new timestamp

Rule 48: Class files must NOT define inline slots - all slots
must be imported from modules/slots/ directory.

Note: Pre-existing IdentifierFormat duplicate class definition
(in Standard.yaml and IdentifierFormat.yaml) not addressed in
this commit - requires separate schema refactor.
2026-01-11 22:02:14 +01:00

87 lines
2.5 KiB
YAML

id: https://nde.nl/ontology/hc/class/DiarizationSegment
name: diarization_segment_class
title: Diarization Segment Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
ma: http://www.w3.org/ns/ma-ont#
default_prefix: hc
default_range: string
imports:
- linkml:types
- ../metadata
- ./SpecificityAnnotation
- ./TemplateSpecificityScores
- ../slots/specificity_annotation
- ../slots/template_specificity
- ../slots/diarization_confidence
- ../slots/diarization_end_seconds
- ../slots/diarization_speaker_id
- ../slots/diarization_speaker_label
- ../slots/diarization_start_seconds
- ../slots/is_overlapping
classes:
DiarizationSegment:
class_uri: hc:DiarizationSegment
description: 'A diarization segment identifying speaker and time boundaries.
Focused on "who spoke when" rather than transcript content.
'
slots:
- diarization_confidence
- diarization_end_seconds
- diarization_speaker_id
- diarization_speaker_label
- diarization_start_seconds
- is_overlapping
- specificity_annotation
- template_specificity
slot_usage:
diarization_start_seconds:
slot_uri: ma:hasStartTime
description: Start time in seconds
range: float
required: true
minimum_value: 0.0
diarization_end_seconds:
slot_uri: ma:hasEndTime
description: End time in seconds
range: float
required: true
minimum_value: 0.0
diarization_speaker_id:
slot_uri: hc:speakerId
description: Anonymous speaker identifier (spk_001, spk_002, etc.)
range: string
required: true
diarization_speaker_label:
slot_uri: schema:name
description: Optional identified name or role
range: string
required: false
diarization_confidence:
slot_uri: hc:confidence
description: Diarization confidence (0.0-1.0)
range: float
required: false
minimum_value: 0.0
maximum_value: 1.0
is_overlapping:
slot_uri: hc:isOverlapping
description: 'Whether this segment overlaps with another speaker.
Overlapping speech occurs when multiple people speak simultaneously.
'
range: boolean
required: false
specificity_annotation:
range: SpecificityAnnotation
inlined: true
template_specificity:
range: TemplateSpecificityScores
inlined: true