glam/schemas/20251121/linkml/modules/classes/MusicSegment.yaml
kempersc 0393b321c9 refactor(schema): unify custodian_type slots into has_or_had_custodian_type (Rule 39, 43)
- Migrate 236+ class files from custodian_types to has_or_had_custodian_type
- Archive deprecated slots: custodian_type, custodian_types, custodian_type_broader/narrower/related
- Update main schema and manifest imports
- Fix Custodian.yaml class to use new slot
- Fix annotation format (list→scalar) in has_or_had_custodian_type.yaml

Rules applied:
- Rule 39: RiC-O naming convention (hasOrHad pattern)
- Rule 43: Slot nouns must be singular (multivalued:true for cardinality)
- Rule 38: Slot centralization with semantic URI
2026-01-09 10:55:21 +01:00

104 lines
2.8 KiB
YAML

id: https://nde.nl/ontology/hc/class/MusicSegment
name: music_segment_class
title: Music Segment Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
dcterms: http://purl.org/dc/terms/
ma: http://www.w3.org/ns/ma-ont#
default_prefix: hc
default_range: string
imports:
- linkml:types
- ../metadata
- ./SpecificityAnnotation
- ./TemplateSpecificityScores
- ../enums/MusicTypeEnum
- ../slots/specificity_annotation
- ../slots/template_specificity
- ../slots/is_background
- ../slots/music_end_seconds
- ../slots/music_genre
- ../slots/music_segment_confidence
- ../slots/music_start_seconds
- ../slots/music_type
classes:
MusicSegment:
class_uri: hc:MusicSegment
description: |
A segment of detected music with classification.
slots:
- is_background
- music_end_seconds
- music_genre
- music_segment_confidence
- music_start_seconds
- music_type
- specificity_annotation
- template_specificity
slot_usage:
music_start_seconds:
slot_uri: ma:hasStartTime
description: Start time in seconds
range: float
required: true
minimum_value: 0.0
music_end_seconds:
slot_uri: ma:hasEndTime
description: End time in seconds
range: float
required: true
minimum_value: 0.0
music_type:
slot_uri: dcterms:type
description: Type of music (BACKGROUND, FEATURED, ARCHIVAL)
range: MusicTypeEnum
required: false
music_genre:
slot_uri: hc:genre
description: Detected music genre
range: string
required: false
music_segment_confidence:
slot_uri: hc:confidence
description: Music detection confidence (0.0-1.0)
range: float
required: false
minimum_value: 0.0
maximum_value: 1.0
is_background:
slot_uri: hc:isBackground
description: |
Whether music is background (under speech) vs featured.
- true: Music is background/ambient
- false: Music is primary audio
range: boolean
required: false
specificity_annotation:
range: SpecificityAnnotation
inlined: true
template_specificity:
range: TemplateSpecificityScores
inlined: true
slots:
music_start_seconds:
description: Music segment start
range: float
music_end_seconds:
description: Music segment end
range: float
music_type:
description: Type of music presence
range: MusicTypeEnum
music_genre:
description: Detected music genre
range: string
music_segment_confidence:
description: Music segment confidence
range: float
is_background:
description: Whether music is background
range: boolean