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

98 lines
2.8 KiB
YAML

id: https://nde.nl/ontology/hc/class/Language
name: Language
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
dct: http://purl.org/dc/terms/
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
schema: http://schema.org/
dcterms: http://purl.org/dc/terms/
prov: http://www.w3.org/ns/prov#
crm: http://www.cidoc-crm.org/cidoc-crm/
skos: http://www.w3.org/2004/02/skos/core#
rdfs: http://www.w3.org/2000/01/rdf-schema#
org: http://www.w3.org/ns/org#
xsd: http://www.w3.org/2001/XMLSchema#
imports:
- linkml:types
- ../slots/has_or_had_code
- ../slots/has_or_had_iso_639_1
- ../slots/has_or_had_iso_639_3
- ../slots/has_or_had_text
- ../slots/has_or_had_label
classes:
Language:
class_uri: dct:LinguisticSystem
description: 'A language with ISO codes and optional text content.
**Purpose**:
Represents a language entity that can identify the language of text content.
Used for language-tagged text where the language code and content are bundled together.
**Use Cases**:
1. Language identification only (just codes, no content)
2. Language-tagged text (codes + text_content for multilingual data)
**Migration Support**:
This class supports migration from language-specific text slots (fr, de, en, nl)
to a unified `has_or_had_language` + `Language` pattern per slot_fixes.yaml.
**Ontological Alignment**:
- **Primary**: `dct:LinguisticSystem` - Dublin Core linguistic system
- **Close**: `schema:Language` - Schema.org language
'
exact_mappings:
- dct:LinguisticSystem
close_mappings:
- schema:Language
slots:
- has_or_had_code
- has_or_had_iso_639_1
- has_or_had_iso_639_3
- has_or_had_text
- has_or_had_label
slot_usage:
has_or_had_label:
description: 'Human-readable name of the language (e.g., "English", "Dutch", "French"). Parsed from raw string, not authoritative. Use ISO codes for formal identification.'
has_or_had_text:
description: "Text content in this language. Used when bundling language identification with the actual text content."
examples:
- value: 'has_or_had_iso_639_1: "fr"
has_or_had_label: "French"
has_or_had_text: "archives universitaires"
'
description: French language-tagged text for multilingual label
- value: 'has_or_had_iso_639_1: "en"
has_or_had_label: "English"
'
description: English language identifier (without text content)
- value: 'has_or_had_iso_639_1: "nl"
has_or_had_label: "Dutch"
has_or_had_text: "universitair archief"
'
description: Dutch language-tagged text
annotations:
specificity_score: 0.1
specificity_rationale: Generic utility class/slot created during migration
custodian_types: "['*']"