glam/schemas/20251121/linkml/modules/classes/Image.yaml
kempersc fc405445c6 Refactor and update schema definitions
- Removed obsolete slots: `has_or_had_custodian_observation`, `provider`, and `specificity_annotation`.
- Updated `has_or_had_score` slot to use `SpecificityScore` class and modified its description and examples.
- Added new slots: `end_seconds`, `end_time`, `has_archive_path`, `has_or_had_custodian_name`, `protocol_name`, and `protocol_version`.
- Introduced a script `check_annotation_types.py` to validate the presence and structure of `custodian_types` in YAML files.
- Added a script `update_specificity.py` to automate updates related to `SpecificityAnnotation` to `SpecificityScore`.
2026-02-01 19:55:38 +01:00

55 lines
1.9 KiB
YAML

id: https://nde.nl/ontology/hc/class/Image
name: image_class
title: Image Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
foaf: http://xmlns.com/foaf/0.1/
dcterms: http://purl.org/dc/terms/
imports:
- linkml:types
- ../slots/has_or_had_label
- ../slots/has_or_had_url
default_prefix: hc
classes:
Image:
class_uri: schema:ImageObject
description: 'Represents a visual image with URL and metadata. **PURPOSE**: Image
provides structured representation for visual content including: - Thumbnail
images for cards/previews - Collection representative images - Institutional
logos and branding - Digital object reproductions **ONTOLOGY ALIGNMENT**: |
Ontology | Mapping | Rationale | |----------|---------|-----------| | Schema.org
| schema:ImageObject | Primary class for images | | FOAF | foaf:Image | Alternative
image class | **USE CASES**: - Card preview thumbnails (card_image_url migration)
- Collection highlight images - Object photographs MIGRATED 2026-01-22: Created
per slot_fixes.yaml revision for card_image_url.'
exact_mappings:
- schema:ImageObject
- foaf:Image
slots:
- has_or_had_url
- has_or_had_label
slot_usage:
has_or_had_url:
range: uri
required: true
inlined: true
has_or_had_label:
range: string
required: false
inlined: true
examples:
- value:
has_or_had_url:
has_or_had_value: https://example.org/images/card_thumb.jpg
has_or_had_label:
has_or_had_text: Collection preview thumbnail
- value:
has_or_had_url:
has_or_had_value: https://museum.nl/logo.svg
annotations:
specificity_score: 0.35
specificity_rationale: Images are broadly useful across heritage contexts for
visual representation.
custodian_types: '[''*'']'