- Implement `normalize_linkml_alt_descriptions.py` to convert structured alt_descriptions to the expected scalar form. - Implement `normalize_linkml_structured_aliases.py` to flatten language-keyed structured_aliases into a standard list-of-objects format. - Implement `validate_linkml_schema_integrity.py` to validate the integrity of LinkML schema bundles, checking for import resolution, YAML parsing, and reference existence.
142 lines
5.4 KiB
YAML
142 lines
5.4 KiB
YAML
id: https://nde.nl/ontology/hc/class/WikiDataEntry
|
||
name: wikidata_entry_class
|
||
title: WikiData Entry Class
|
||
prefixes:
|
||
linkml: https://w3id.org/linkml/
|
||
hc: https://nde.nl/ontology/hc/
|
||
wikibase: http://wikiba.se/ontology#
|
||
wd: http://www.wikidata.org/entity/
|
||
schema: http://schema.org/
|
||
skos: http://www.w3.org/2004/02/skos/core#
|
||
prov: http://www.w3.org/ns/prov#
|
||
default_prefix: hc
|
||
imports:
|
||
- linkml:types
|
||
- ../metadata
|
||
- ../slots/has_description
|
||
- ../slots/identified_by
|
||
- ../slots/has_label
|
||
- ../slots/has_score
|
||
- ../slots/in_language
|
||
classes:
|
||
WikiDataEntry:
|
||
class_uri: wikibase:Item
|
||
description: >-
|
||
Reusable reference to a Wikidata entity (Q-item) for alignments and equivalences,
|
||
providing Q-number identifier, label, and description in a specified language.
|
||
alt_descriptions:
|
||
nl: >-
|
||
Herbruikbare verwijzing naar een Wikidata-entiteit (Q-item) voor koppelingen en equivalenties,
|
||
met Q-nummer identificatie, label en beschrijving in een gespecificeerde taal.
|
||
de: >-
|
||
Wiederverwendbarer Verweis auf eine Wikidata-Entität (Q-Element) für Ausrichtungen und Äquivalente,
|
||
mit Q-Nummer-Kennung, Label und Beschreibung in einer angegebenen Sprache.
|
||
fr: >-
|
||
Référence réutilisable à une entité Wikidata (élément Q) pour les alignements et équivalences,
|
||
fournissant l'identifiant Q-number, le label et la description dans une langue spécifiée.
|
||
es: >-
|
||
Referencia reutilizable a una entidad Wikidata (elemento Q) para alineaciones y equivalencias,
|
||
proporcionando identificador Q-number, etiqueta y descripción en un idioma especificado.
|
||
ar: >-
|
||
مرجع قابل لإعادة الاستخدام لكيان ويكي بيانات (عنصر Q) للمحاذاات والتكافؤ،
|
||
يوفر معرف رقم Q والتسمية والوصف بلغة محددة.
|
||
id: >-
|
||
Referensi yang dapat digunakan kembali ke entitas Wikidata (item Q) untuk penyelarasan dan ekuivalensi,
|
||
menyediakan pengidentifikasi nomor-Q, label, dan deskripsi dalam bahasa tertentu.
|
||
zh: >-
|
||
用于对齐和等价的维基数据实体(Q项)的可重用引用,
|
||
提供指定语言的Q编号标识符、标签和描述。
|
||
exact_mappings:
|
||
- wikibase:Item
|
||
close_mappings:
|
||
- schema:Thing
|
||
related_mappings:
|
||
- skos:Concept
|
||
- prov:Entity
|
||
slots:
|
||
- identified_by
|
||
- has_label
|
||
- has_description
|
||
- in_language
|
||
- has_score
|
||
slot_usage:
|
||
identified_by:
|
||
required: true
|
||
pattern: "^Q[0-9]+$"
|
||
has_label:
|
||
required: false
|
||
has_description:
|
||
required: false
|
||
in_language:
|
||
required: false
|
||
pattern: "^[a-z]{2}(-[A-Z]{2})?$"
|
||
comments:
|
||
- Used for ontology alignments, equivalence mappings, and classification
|
||
- Migrated 2026-01-16 per Rule 53 from inline wikidata slots
|
||
see_also:
|
||
- https://www.wikidata.org/
|
||
examples:
|
||
- value:
|
||
identified_by: "Q33506"
|
||
has_label: "museum"
|
||
has_description: "institution that holds and displays collections"
|
||
in_language: en
|
||
description: Museum concept in Wikidata
|
||
- value:
|
||
identified_by: "Q190804"
|
||
has_label: "Rijksmuseum"
|
||
has_description: "Dutch national museum in Amsterdam"
|
||
in_language: en
|
||
description: Rijksmuseum entity reference
|
||
keywords:
|
||
- wikidata
|
||
- entry
|
||
- reference
|
||
- q-item
|
||
- alignment
|
||
notes:
|
||
- |
|
||
Preserved from prior description (commit 2c9d3598):
|
||
|
||
Reference to a Wikidata entity (Q-item) for alignments and equivalences.
|
||
|
||
**Purpose**:
|
||
WikiDataEntry provides a reusable class for representing Wikidata entity
|
||
references with Q-number identifier, label, and description.
|
||
Used for ontology alignments, equivalence mappings, and classification.
|
||
|
||
**Ontological Alignment**:
|
||
- **Primary**: `wikibase:Item` - Wikibase item class
|
||
- **Close**: `schema:Thing` - general web entity
|
||
- **Related**: `skos:Concept` - controlled vocabulary concept
|
||
|
||
**Use Cases**:
|
||
- Ontology alignment: `wikidata_alignment` → relates schema class to Wikidata Q
|
||
- Equivalence: `wikidata_equivalent` → marks semantic equivalence
|
||
- Classification: `wikidata_class` → instance_of relationship
|
||
- General mapping: `wikidata_mapping` → related concept
|
||
|
||
**Replaces** (per slot_fixes.yaml):
|
||
- `wikidata_mapping` (string Q-number)
|
||
- `wikidata_equivalent` (string Q-number)
|
||
- `wikidata_class` (string Q-number)
|
||
- `wikidata_alignment` (string Q-number)
|
||
- `wikidata` (string Q-number)
|
||
annotations:
|
||
custodian_types: '["*"]'
|
||
custodian_types_rationale: Generic Wikidata reference class applicable to all types.
|
||
specificity_score: 0.2
|
||
specificity_rationale: Broadly applicable generic class for Wikidata links.
|
||
structured_aliases:
|
||
- literal_form: wikidata-invoer
|
||
predicate: EXACT_SYNONYM
|
||
in_language: nl
|
||
- literal_form: Wikidata-Eintrag
|
||
predicate: EXACT_SYNONYM
|
||
in_language: de
|
||
- literal_form: entrée Wikidata
|
||
predicate: EXACT_SYNONYM
|
||
in_language: fr
|
||
- literal_form: entrada Wikidata
|
||
predicate: EXACT_SYNONYM
|
||
in_language: es
|