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

103 lines
No EOL
3.7 KiB
YAML

id: https://nde.nl/ontology/hc/class/WikiDataEntry
name: wikidata_entry_class
title: WikiDataEntry 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_or_had_description # was: wikidata_description
- ../slots/has_or_had_identifier # was: wikidata_qid
- ../slots/has_or_had_label # was: wikidata_label
- ../slots/has_or_had_score # was: template_specificity
- ../slots/language
classes:
WikiDataEntry:
class_uri: wikibase:Item
description: |
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)
exact_mappings:
- wikibase:Item
close_mappings:
- schema:Thing
related_mappings:
- skos:Concept
- prov:Entity
slots:
- has_or_had_identifier # was: wikidata_qid - migrated 2026-01-16 per Rule 53
- has_or_had_label # was: wikidata_label - migrated 2026-01-16 per Rule 53
- has_or_had_description # was: wikidata_description - migrated 2026-01-16 per Rule 53
- language
- has_or_had_score # was: template_specificity - migrated per Rule 53 (2026-01-17)
slot_usage:
has_or_had_identifier: # was: wikidata_qid - migrated 2026-01-16 per Rule 53
range: string
required: true
pattern: "^Q[0-9]+$"
has_or_had_label: # was: wikidata_label - migrated 2026-01-16 per Rule 53
range: string
required: false
has_or_had_description: # was: wikidata_description - migrated 2026-01-16 per Rule 53
range: string
required: false
language:
range: string
required: false
pattern: "^[a-z]{2}(-[A-Z]{2})?$"
annotations:
custodian_types: '["*"]'
custodian_types_rationale: Generic Wikidata reference class applicable to all types.
custodian_types_primary: null
specificity_score: 0.2
specificity_rationale: Broadly applicable generic class for Wikidata links.
examples:
- value: |
has_or_had_identifier: "Q33506"
has_or_had_label: "museum"
has_or_had_description: "institution that holds and displays collections"
language: en
- value: |
has_or_had_identifier: "Q190804"
has_or_had_label: "Rijksmuseum"
has_or_had_description: "Dutch national museum in Amsterdam"
language: en