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

50 lines
1.9 KiB
YAML

id: https://nde.nl/ontology/hc/classes/TimeInterval
name: TimeInterval
title: TimeInterval
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
time: http://www.w3.org/2006/time#
schema: http://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
imports:
- linkml:types
default_range: string
classes:
TimeInterval:
description: 'A duration or interval of time, representing a period rather than
a point.
**DISTINCTION FROM TimeSpan**: - `TimeSpan` represents a bounded period with
begin/end points (CIDOC-CRM E52) - `TimeInterval` represents a duration/interval
(e.g., "2 weeks", "quarterly")
**USE CASES**: - Update frequency: "updated weekly" - Approval time: "typically
2-3 business days" - Reporting period: "annual revenue for fiscal year"
**ONTOLOGY MAPPING**: - class_uri: time:Duration (W3C Time Ontology) - Supports
ISO 8601 duration format (P1Y, P2M, P3D, PT4H)'
class_uri: time:Duration
close_mappings:
- schema:Duration
related_mappings:
- time:Interval
- time:TemporalDuration
annotations:
custodian_types: '["*"]'
custodian_types_rationale: Time intervals applicable to all custodian types
for various purposes.
custodian_types_primary: '*'
specificity_score: 0.25
specificity_rationale: Low specificity - universal temporal concept.
examples:
- value: "TimeInterval:\n duration_value: \"P7D\"\n duration_description: \"\
weekly\"\n"
description: A one-week interval for update frequency.
- value: "TimeInterval:\n duration_value: \"P1Y\"\n duration_description: \"\
annual\"\n"
description: A one-year interval for revenue reporting.
- value: "TimeInterval:\n days: 3\n duration_description: \"2-3 business days\"\
\n"
description: Typical approval time interval.
slots: []