glam/schemas/20251121/linkml/modules/classes/Thumbnail.yaml
2026-01-16 18:57:52 +01:00

77 lines
2.3 KiB
YAML

# Thumbnail - Structured thumbnail media reference
#
# Created per slot_fixes.yaml thumbnail_url feedback migration (Rule 56)
# Creation date: 2026-01-16
# Rule compliance: 50 (ontology mapping), 56 (semantic consistency)
id: https://nde.nl/ontology/hc/class/Thumbnail
name: Thumbnail
title: Thumbnail Media Reference
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
foaf: http://xmlns.com/foaf/0.1/
default_prefix: hc
imports:
- linkml:types
- ../slots/has_or_had_url
classes:
Thumbnail:
class_uri: schema:ImageObject
description: |
Structured thumbnail media reference.
**DEFINITION**:
A thumbnail is a reduced-size version of an image or video frame,
typically used for preview purposes in search results, galleries,
and navigation interfaces.
**CONSISTENCY PATTERN** (Rule 56):
Uses structured class rather than simple URL for consistency with
other media reference patterns and extensibility:
| Slot | Class | Purpose |
|------|-------|---------|
| has_or_had_image | Image | Full-size images |
| has_or_had_video | Video | Video resources |
| has_or_had_audio | Audio | Audio resources |
| has_or_had_thumbnail | Thumbnail | Preview images |
**EXTENSIBILITY**:
Structured class enables future metadata:
- Image dimensions (width, height)
- Alternative text for accessibility
- Format (JPEG, PNG, WebP)
- Generation timestamp
- Source image reference
**ONTOLOGY ALIGNMENT**:
- **Primary**: `schema:ImageObject` (Schema.org)
- **Close**: `foaf:Image` (FOAF)
slots:
- has_or_had_url
slot_usage:
has_or_had_url:
required: true
description: URL of the thumbnail image
exact_mappings:
- foaf:Image
annotations:
specificity_score: "0.40"
specificity_rationale: "Medium specificity - thumbnails used broadly for media preview."
migration_date: "2026-01-16"
migration_rule: "Rule 56 (semantic consistency over simplicity)"
examples:
- value:
has_or_had_url: "https://example.org/thumbnails/rijksmuseum-night-watch-thumb.jpg"
description: "Thumbnail for Night Watch painting"