glam/schemas/20251121/linkml/modules/classes/LanguageCode.yaml
kempersc 0d5d48568d refactor(schema): centralize slot definitions per Rule 38
- Remove slot_uri, description, mappings from slot_usage sections
- Move these properties to centralized slot files in modules/slots/
- Keep only class-specific overrides in slot_usage (required, inlined, examples)
- Update 1,499 centralized slot files with enriched definitions
- Clean 188 class files

Violations fixed:
- slot_uri in slot_usage: 1,676 → 0
- description in slot_usage: 2,287 → 0 (moved to centralized)

Schema still validates: 816 classes, 2028 slots, 127 enums
2026-01-11 23:27:17 +01:00

50 lines
1.3 KiB
YAML

id: https://nde.nl/ontology/hc/class/LanguageCode
name: language_code_class
title: LanguageCode Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
dcterms: http://purl.org/dc/terms/
schema: http://schema.org/
skos: http://www.w3.org/2004/02/skos/core#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
default_prefix: hc
imports:
- linkml:types
- ../metadata
- ../slots/language_code
- ../slots/specificity_annotation
- ../slots/template_specificity
- ./SpecificityAnnotation
- ./TemplateSpecificityScores
classes:
LanguageCode:
class_uri: dcterms:LinguisticSystem
description: 'ISO 639-1 two-letter language code.
Dublin Core: LinguisticSystem for language representation.
**Examples**: "nl", "en", "fr", "de", "es"
'
exact_mappings:
- dcterms:LinguisticSystem
- schema:Language
close_mappings:
- skos:Concept
slots:
- language_code
- specificity_annotation
- template_specificity
slot_usage:
language_code:
range: string
pattern: ^[a-z]{2}$
required: true
specificity_annotation:
range: SpecificityAnnotation
inlined: true
template_specificity:
range: TemplateSpecificityScores
inlined: true