Refactor code structure for improved readability and maintainability

This commit is contained in:
kempersc 2026-01-22 12:52:29 +01:00
parent 8d9817c99a
commit f8205cbc75
4 changed files with 1922 additions and 6 deletions

View file

@ -1,5 +1,5 @@
{
"generated": "2026-01-19T15:56:34.364Z",
"generated": "2026-01-20T11:48:39.141Z",
"schemaRoot": "/schemas/20251121/linkml",
"totalFiles": 2969,
"categoryCounts": {

View file

@ -1,5 +1,5 @@
{
"generated": "2026-01-20T11:48:39.141Z",
"generated": "2026-01-22T11:52:29.369Z",
"schemaRoot": "/schemas/20251121/linkml",
"totalFiles": 2969,
"categoryCounts": {

View file

@ -0,0 +1,85 @@
# describes_or_described slot
# Generic slot for descriptive relationships following RiC-O temporal naming convention.
#
# MIGRATION NOTE (2026-01-19):
# Created as part of collection_locality_text migration per slot_fixes.yaml (Rule 53).
#
# Semantic intent: Links an observation/record to what it describes (e.g., locality, specimen, event).
id: https://nde.nl/ontology/hc/slot/describes_or_described
name: describes_or_described_slot
title: Describes Or Described Slot
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
crm: http://www.cidoc-crm.org/cidoc-crm/
dcterms: http://purl.org/dc/terms/
imports:
- linkml:types
default_prefix: hc
slots:
describes_or_described:
slot_uri: dcterms:description
description: >-
Links an entity to what it describes or described.
**TEMPORAL SEMANTICS** (RiC-O style):
The "describes_or_described" naming follows RiC-O convention indicating that
descriptive relationships may change over time:
- Current descriptions may be superseded by more accurate ones
- Historical descriptions preserved for provenance
- Multiple descriptions from different sources/times
**USE CASES**:
- Locality verbatim text describing a collection location
- Observation records describing specimens
- Annotations describing objects or events
**REPLACES**:
- `collection_locality_text` (verbatim locality description)
**EXAMPLE**:
```yaml
describes_or_described:
- type: Locality
verbatim_text: "Mauritius, near Port Louis, in forest"
original_language: "en"
```
range: uriorcurie
multivalued: true
inlined: true
inlined_as_list: true
exact_mappings:
- dcterms:description
close_mappings:
- schema:description
- crm:P3_has_note
related_mappings:
- crm:P67_refers_to
annotations:
custodian_types: '["*"]'
custodian_types_rationale: >-
Generic descriptive relationship applicable across all custodian types.
custodian_types_primary: "*"
specificity_score: "0.25"
specificity_rationale: >-
Low specificity - generic descriptive slot usable in many contexts.
comments:
- Created from slot_fixes.yaml migration (2026-01-19)
- Part of collection_locality_text migration
- Range is uriorcurie to allow class narrowing via slot_usage
see_also:
- http://purl.org/dc/terms/description
- https://dwc.tdwg.org/terms/#dwc:verbatimLocality

File diff suppressed because it is too large Load diff