glam/schemas/20251121/linkml/modules/classes/Capacity.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

136 lines
5.8 KiB
YAML

id: https://nde.nl/ontology/hc/class/Capacity
name: Capacity
title: Capacity Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
qudt: http://qudt.org/schema/qudt/
schema: http://schema.org/
dcterms: http://purl.org/dc/terms/
imports:
- linkml:types
- ../enums/CapacityTypeEnum
- ../slots/has_or_had_description
- ../slots/has_or_had_identifier
- ../slots/has_or_had_label
- ../slots/has_or_had_measurement_unit
- ../slots/has_or_had_quantity
- ../slots/has_or_had_score
- ../slots/has_or_had_type
- ../slots/has_or_had_unit
- ../slots/is_estimate
- ../slots/temporal_extent
default_prefix: hc
classes:
Capacity:
class_uri: hc:Capacity
description: "Storage or holding capacity measurement for heritage facilities.\n**RULE 53 MIGRATION**:\nThis class consolidates the following bespoke capacity slots: - capacity_cubic_meters \u2192 capacity_value + VOLUME type + m\xB3 unit - capacity_linear_meters \u2192 capacity_value + SHELF_LENGTH type + m unit - capacity_item \u2192 capacity_value + ITEM_COUNT type + items unit - capacity_description \u2192 has_or_had_description\n**ONTOLOGY ALIGNMENT**:\n- Extends `qudt:Quantity` pattern for measured values - Uses MeasureUnit for structured unit representation - Supports temporal validity via TimeSpan\n**CAPACITY TYPES**:\n| Type | Description | Unit Examples | |------|-------------|---------------| | VOLUME | Cubic capacity | m\xB3, ft\xB3 | | SHELF_LENGTH | Linear shelf meters | m, ft | | FLOOR_AREA | Floor space | m\xB2, ft\xB2 | | ITEM_COUNT | Number of items | boxes, folders, objects | | WEIGHT | Weight capacity | kg, tons | | SEATING | Seating capacity | seats, persons |\n\
**EXAMPLES** (MIGRATED 2026-01-22: capacity_value \u2192 has_or_had_quantity):\nArchive depot (linear meters): ```yaml has_or_had_capacity:\n - has_or_had_quantity:\n quantity_value: 8000.0\n has_or_had_unit:\n unit_value: \"linear_meter\"\n has_or_had_type: ShelfLengthCapacity\n has_or_had_description: Total linear meters of shelving capacity\n```\nCold storage (volume): ```yaml has_or_had_capacity:\n - has_or_had_quantity:\n quantity_value: 2500.0\n has_or_had_unit:\n unit_value: \"cubic_meter\"\n has_or_had_type: VolumeCapacity\n```\nArchive box storage (items): ```yaml has_or_had_capacity:\n - has_or_had_quantity:\n quantity_value: 50000\n has_or_had_unit:\n unit_value: \"item\"\n has_or_had_type: ItemCountCapacity\n```"
exact_mappings:
- hc:Capacity
close_mappings:
- qudt:Quantity
- schema:QuantitativeValue
related_mappings:
- schema:floorSize
- dcterms:extent
- premis:StorageLocation
slots:
- has_or_had_identifier
- has_or_had_quantity
- has_or_had_type
- has_or_had_measurement_unit
- has_or_had_unit
- has_or_had_description
- temporal_extent
- is_estimate
- has_or_had_score
slot_usage:
has_or_had_identifier:
range: uriorcurie
required: false
examples:
- value: https://nde.nl/ontology/hc/capacity/na-depot-b-shelving
has_or_had_type:
range: uriorcurie
required: false
examples:
- value: ShelfLengthCapacity
- value: VolumeCapacity
- value: ItemCountCapacity
- value: FloorAreaCapacity
has_or_had_measurement_unit:
range: MeasureUnit
required: false
inlined: true
examples:
- value:
has_or_had_type: LINEAR_METER
has_or_had_symbol: m
- value:
has_or_had_type: CUBIC_METER
has_or_had_symbol: "m\xB3"
- value:
has_or_had_type: ITEM
has_or_had_symbol: archive boxes
has_or_had_quantity:
range: integer
required: true
inlined: true
examples:
- value:
has_or_had_unit:
- value:
has_or_had_unit:
- value:
has_or_had_unit:
has_or_had_description:
range: string
required: false
examples:
- value: Approximately 5,000 linear meters of shelving across 3 floors
- value: Large-scale art storage for paintings up to 4m x 6m
- value: 1,200 linear meters of cold storage shelving
temporal_extent:
range: TimeSpan
required: false
inlined: true
examples:
- value:
begin_of_the_begin: '2020-01-01T00:00:00Z'
end_of_the_end: '2030-12-31T23:59:59Z'
is_estimate:
range: boolean
required: false
ifabsent: 'false'
comments:
- Created 2026-01-17 per Rule 53 to consolidate capacity_* slots
- Based on QUDT Quantity pattern with capacity-specific typing
- Supports multiple capacity types (volume, length, count, area)
see_also:
- http://qudt.org/schema/qudt/Quantity
- https://schema.org/QuantitativeValue
examples:
- value:
has_or_had_identifier: https://nde.nl/ontology/hc/capacity/rijksmuseum-depot-shelving
has_or_had_quantity:
has_or_had_unit:
has_or_had_type: ShelfLengthCapacity
has_or_had_description: Total linear shelf capacity in Depot Amersfoort
is_estimate: false
- value:
has_or_had_quantity:
has_or_had_unit:
has_or_had_type: VolumeCapacity
- value:
has_or_had_quantity:
has_or_had_unit:
has_or_had_type: ItemCountCapacity
has_or_had_description: Capacity for 50,000 standard archive boxes
- value:
has_or_had_description: Approximately 5,000 linear meters of shelving across 3 floors. Large-scale art storage for paintings up to 4m x 6m.
is_estimate: true
annotations:
specificity_score: 0.1
specificity_rationale: Generic utility class/slot created during migration
custodian_types: "['*']"