glam/fix_approximation_status_example.py
kempersc f7bf1cc5ae Refactor schema slots and classes
- Deleted obsolete slot definitions: statement_summary, statement_text, statement_type, status_name, supersede_articles, supersede_condition, supersede_name, temporal_dynamics, total_amount, typical_contents, use_cases, was_acquired_through, was_fetched_at, was_retrieved_at.
- Updated existing slot definitions for states_or_stated to enhance clarity and structure.
- Introduced new classes: Article, ConditionofAccess, FinancialStatementType, MaximumQuantity, Series, Summary, Type, and their respective slots to improve schema organization and usability.
- Added new slots: changes_or_changed_through, has_or_had_condition_of_access, has_or_had_heritage_type, is_or_was_part_of_series, is_or_was_retrieved_at, maximum_of_maximum to capture additional metadata and relationships.
2026-01-30 00:29:31 +01:00

18 lines
622 B
Python

import os
filepath = 'schemas/20251121/linkml/modules/classes/ApproximationStatus.yaml'
with open(filepath, 'r') as f:
content = f.read()
# The error is that appears inside a description string that is formatted as a YAML block.
# This should NOT cause error unless it's being parsed as an example value?
# But showed it in .
# Wait, the grep output showed it on line 28 inside a quoted string.
# However, earlier grep showed:
# schemas/20251121/linkml/modules/classes/CustodianTimelineEvent.yaml: event_date: "2005-04-30"
# This looks like it IS used as a key in inside an example block.
# Let's check .