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

63 lines
2 KiB
YAML

id: https://nde.nl/ontology/hc/class/MainPart
name: main_part_class
title: Main Part Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
dcterms: http://purl.org/dc/terms/
imports:
- linkml:types
- ../slots/currency_code
- ../slots/has_or_had_quantity
- ../slots/part_type
default_prefix: hc
classes:
MainPart:
class_uri: schema:QuantitativeValue
description: 'Represents a principal/primary portion of something with quantified
value.
**PURPOSE**:
MainPart provides structured representation for primary allocations such as:
- Capital budget (principal budget for infrastructure/equipment) - Primary funding
amount - Main portion of a larger whole
**ONTOLOGY ALIGNMENT**:
| Ontology | Mapping | Rationale | |----------|---------|-----------| | Schema.org
| schema:QuantitativeValue | Quantified value |
**USE CASES**: - Capital budget allocation in institutional budgets - Primary
collection value - Main funding allocation
MIGRATED 2026-01-22: Created per slot_fixes.yaml revision for capital_budget.
Replaces simple decimal capital_budget with structured class.'
exact_mappings:
- schema:QuantitativeValue
slots:
- has_or_had_quantity
- part_type
- currency_code
slot_usage:
has_or_had_quantity:
range: integer
required: true
inlined: true
description: 'The quantified value of this main part. For capital budget:
Quantity.quantity_value = amount, currency in metadata.'
examples:
- value:
has_or_had_quantity: null
part_type: capital_budget
currency_code: EUR
- value:
has_or_had_quantity: null
part_type: capital_budget
currency_code: USD
annotations:
specificity_score: 0.4
specificity_rationale: Main parts are moderately specific, relevant for budget
and allocation queries.
custodian_types: '[''*'']'