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

62 lines
No EOL
1.3 KiB
YAML

id: https://nde.nl/ontology/hc/class/Alpha2Code
name: Alpha2Code
title: ISO 3166-1 Alpha-2 Country Code
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
skos: http://www.w3.org/2004/02/skos/core#
schema: http://schema.org/
default_prefix: hc
imports:
- linkml:types
- ../slots/has_or_had_code
classes:
Alpha2Code:
class_uri: skos:Concept
description: 'ISO 3166-1 alpha-2 country code (two-letter code).
**DEFINITION**:
A two-letter country code as defined by ISO 3166-1 alpha-2 standard.
Used for representing countries and dependent territories.
**EXAMPLES**:
- NL = Netherlands
- BE = Belgium
- DE = Germany
- US = United States
**ONTOLOGY ALIGNMENT**:
- SKOS Concept: Codes are concepts in ISO 3166-1 vocabulary
- Schema.org: addressCountry can use alpha-2 codes
'
slots:
- has_or_had_code
slot_usage:
has_or_had_code:
pattern: ^[A-Z]{2}$
required: true
examples:
- value: NL
- value: BE
exact_mappings:
- skos:Concept
annotations:
specificity_score: '0.30'
specificity_rationale: Low specificity - standard country codes used broadly.
custodian_types: "['*']"
examples:
- value:
has_or_had_code: NL