glam/schemas/20251121/linkml/modules/slots/iso_3166_2_code.yaml
kempersc c2629f6d29 Fix LinkML schema validation errors (0 errors, 30 warnings)
Schema Migration Fixes:
- Fix YAML import indentation in ~650 slot files (linkml:types and enum imports)
- Rename slot reference: has_or_had_holds_record_set_type → hold_or_held_record_set_type
  (70+ archive class files, main schema, manifest.json)
- Fix ProvenanceBlock.yaml: remove invalid any_of range, use string with multivalued
- Fix has_or_had_provenance.yaml: remove nested template_specificity from annotations

Validation Status:
- 0 errors (was multiple import/reference errors)
- 30 warnings (missing descriptions on inline slots, intentional SCREAMING_CASE names)

Files changed: ~3,850 (slots, classes, main schema, manifest)
2026-01-15 23:21:38 +01:00

49 lines
1.1 KiB
YAML

id: https://nde.nl/ontology/hc/slot/iso_3166_2_code
name: iso_3166_2_code_slot
title: Iso 3166 2 Code Slot
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
imports:
- linkml:types
default_prefix: hc
slots:
iso_3166_2_code:
description: 'ISO 3166-2 subdivision code.
Format: {country_alpha2}-{subdivision_code}
- First 2 letters: ISO 3166-1 alpha-2 country code
- Hyphen separator
- Subdivision code (1-3 alphanumeric characters, varies by country)
Examples:
- "US-PA": Pennsylvania (US state)
- "ID-BA": Bali (Indonesian province)
- "DE-BY": Bayern/Bavaria (German Land)
- "NL-LI": Limburg (Dutch province)
- "CA-ON": Ontario (Canadian province)
- "AU-NSW": New South Wales (Australian state)
- "IN-KL": Kerala (Indian state)
- "ES-AN": Andalucía/Andalusia (Spanish autonomous community)
Reference: https://en.wikipedia.org/wiki/ISO_3166-2
'
range: string
pattern: ^[A-Z]{2}-[A-Z0-9]{1,3}$
slot_uri: schema:addressRegion