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

97 lines
3.8 KiB
YAML

id: https://nde.nl/ontology/hc/class/Currency
name: Currency
title: Currency Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
qudt: http://qudt.org/schema/qudt/
dcterms: http://purl.org/dc/terms/
imports:
- linkml:types
- ../slots/currency_code
- ../slots/currency_symbol
- ../slots/has_or_had_description
- ../slots/has_or_had_identifier
- ../slots/has_or_had_label
- ../slots/has_or_had_score
default_prefix: hc
classes:
Currency:
class_uri: schema:Currency
description: "A currency used for monetary values.\n**SCHEMA.ORG ALIGNMENT**:\nMaps to `schema:Currency` - \"A currency as defined by ISO 4217.\"\n**ISO 4217 STANDARD**:\nISO 4217 defines three-letter currency codes:\n| Code | Currency | Symbol | |------|----------|--------| | EUR | Euro | \u20AC | | USD | US Dollar | $ | | GBP | British Pound | \xA3 | | JPY | Japanese Yen | \xA5 | | CHF | Swiss Franc | CHF |\n**WHY NOT JUST USE STRING?**\nSimple string fields like `budget_currency: \"EUR\"` lose important context: - Symbol for display purposes - Full name for accessibility - Historical validity (currencies change over time) - Link to authoritative ISO 4217 standard\nThe Currency class captures this richness while remaining simple for basic use.\n**HISTORICAL CURRENCIES**:\nHeritage institutions often deal with historical currencies: - NLG (Dutch Guilder) - replaced by EUR in 2002 - DEM (German Mark) - replaced by EUR in 2002 - FRF (French Franc) - replaced by EUR in 2002\nThe temporal\
\ naming pattern (has_or_had_currency) accommodates this.\n**EXAMPLE**:\n```yaml Currency:\n currency_code: EUR\n currency_name: Euro\n currency_symbol: \u20AC\n```"
exact_mappings:
- schema:Currency
close_mappings:
- qudt:CurrencyUnit
slots:
- has_or_had_identifier
- currency_code
- has_or_had_label
- currency_symbol
- has_or_had_description
- has_or_had_score
slot_usage:
has_or_had_identifier:
range: uriorcurie
required: false
examples:
- value: https://nde.nl/ontology/hc/currency/EUR
currency_code:
range: string
required: true
pattern: ^[A-Z]{3}$
examples:
- value: EUR
- value: USD
- value: GBP
- value: NLG
has_or_had_label:
range: string
required: false
examples:
- value: Euro
- value: US Dollar
- value: Dutch Guilder
currency_symbol:
range: string
required: false
examples:
- value: "\u20AC"
- value: $
- value: "\xA3"
- value: "\u0192"
has_or_had_description:
range: string
required: false
examples:
- value: Official currency of the Eurozone since 1999
- value: Dutch national currency until replaced by Euro in 2002
comments:
- Currency models monetary unit with ISO 4217 code and metadata
- Replaces simple string currency fields with structured data
- Uses Schema.org Currency as primary ontology mapping
- Supports both current and historical currencies
see_also:
- https://schema.org/Currency
- https://www.iso.org/iso-4217-currency-codes.html
examples:
- value:
currency_code: EUR
has_or_had_label: Euro
currency_symbol: "\u20AC"
has_or_had_description: Official currency of the Eurozone
- value:
currency_code: NLG
has_or_had_label: Dutch Guilder
currency_symbol: "\u0192"
has_or_had_description: Dutch national currency until replaced by Euro in 2002
- value:
currency_code: USD
has_or_had_label: US Dollar
currency_symbol: $
annotations:
specificity_score: 0.1
specificity_rationale: Generic utility class/slot created during migration
custodian_types: "['*']"