glam/schemas/20251121/linkml/modules/classes/WikidataAlignment.yaml
kempersc f9f3cc8e74 fix: resolve YAML import indentation and add missing slot descriptions
Schema Improvements:
- Fix YAML import indentation across 800+ class files (sed: '^- ../' → '  - ../')
- Add descriptions to 26 inline slots missing them (lint warnings)
- Fix malformed imports in BirthPlace.yaml and CustodianObservation.yaml

Validation Results:
- linkml-lint: 4 warnings (intentional SCREAMING_CASE tier names)
- gen-owl: SUCCESS (164,069 lines generated)
- gen-json-schema: SUCCESS (9.4MB generated)

Files affected: 1,034 files, +23,908 -15,200 lines
2026-01-16 00:09:28 +01:00

81 lines
3.5 KiB
YAML

id: https://nde.nl/ontology/hc/class/WikidataAlignment
name: WikidataAlignment
title: Wikidata Alignment
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
skos: http://www.w3.org/2004/02/skos/core#
wdt: http://www.wikidata.org/prop/direct/
rdfs: http://www.w3.org/2000/01/rdf-schema#
default_prefix: hc
imports:
- linkml:types
- ./MappingType
# REMOVED: ../slots/wikidata_entity_id - migrated to has_or_had_identifier with WikiDataIdentifier (2026-01-14, Rule 53)
- ../slots/has_or_had_identifier
- ./WikiDataIdentifier
# REMOVED: ../slots/wikidata_entity_label - migrated to has_or_had_label with Label (2026-01-14, Rule 53)
- ../slots/has_or_had_label
- ./Label
# REMOVED: ../slots/wikidata_mapping_rationale - migrated to has_or_had_rationale with Rationale (2026-01-14, Rule 53)
- ../slots/has_or_had_rationale
- ./Rationale
- ../slots/has_or_had_type
classes:
WikidataAlignment:
class_uri: hc:WikidataAlignment
description: "Structured metadata for Wikidata entity alignment.\nReplaces fragmented annotations with a proper structured\
\ object.\n\n**Example**:\n```yaml\nwikidata_alignment:\n entity_id: Q27032435\n entity_label: \"academic archive\"\
\n mapping_type: exact\n mapping_rationale: \"AcademicArchive is semantically equivalent to Q27032435\"\n```\n"
slots:
# REMOVED: wikidata_entity_id - migrated to has_or_had_identifier with WikiDataIdentifier (2026-01-14, Rule 53)
- has_or_had_identifier
# REMOVED: wikidata_entity_label - migrated to has_or_had_label with Label (2026-01-14, Rule 53)
- has_or_had_label
- has_or_had_type
# REMOVED: wikidata_mapping_rationale - migrated to has_or_had_rationale with Rationale (2026-01-14, Rule 53)
- has_or_had_rationale
slot_usage:
has_or_had_identifier:
range: WikiDataIdentifier
description: |
The Wikidata entity identifier (Q-number) for this alignment.
MIGRATED from wikidata_entity_id slot (2026-01-14) per Rule 53.
Uses WikiDataIdentifier class for structured identifier with optional label and URL.
examples:
- value: |
qid: Q27032435
label: "academic archive"
description: Wikidata Q-number with optional label
has_or_had_label:
range: Label
description: |
Human-readable label for the Wikidata entity.
MIGRATED from wikidata_entity_label slot (2026-01-14) per Rule 53.
Uses Label class for structured label with language code.
examples:
- value: |
label_value: "academic archive"
language_code: "en"
description: English label for the Wikidata entity
has_or_had_rationale:
range: Rationale
description: |
Rationale for the mapping between local class and Wikidata entity.
MIGRATED from wikidata_mapping_rationale slot (2026-01-14) per Rule 53.
Uses Rationale class for structured rationale text.
examples:
- value: |
rationale_text: "AcademicArchive is semantically equivalent to Q27032435"
description: Mapping rationale
has_or_had_type:
range: MappingType
description: |
The type of semantic mapping (exact, close, broad, narrow, related).
Uses MappingType class hierarchy.
annotations:
specificity_score: 0.3
specificity_rationale: Universal utility for Wikidata alignment metadata