- Created the Country class with ISO 3166-1 alpha-2 and alpha-3 codes, ensuring minimal design without additional metadata. - Integrated the Country class into CustodianPlace and LegalForm schemas to support country-specific feature types and legal forms. - Removed duplicate keys in FeatureTypeEnum.yaml, resulting in 294 unique feature types. - Eliminated "Hypernyms:" text from FeatureTypeEnum descriptions, verifying that semantic relationships are now conveyed through ontology mappings. - Created example instance file demonstrating integration of Country with CustodianPlace and LegalForm. - Updated documentation to reflect the completion of the Country class implementation and hypernyms removal.
158 lines
6 KiB
YAML
158 lines
6 KiB
YAML
---
|
|
# Invalid LinkML Instance - Temporal Violation
|
|
# ❌ This example demonstrates violations of Rule 1 (Collection-Unit Temporal Consistency)
|
|
# and Rule 4 (Staff-Unit Temporal Consistency).
|
|
#
|
|
# Expected validation errors:
|
|
# - Collection founded BEFORE its managing unit exists
|
|
# - Staff member employed BEFORE their unit exists
|
|
|
|
id: https://w3id.org/heritage/custodian/example/invalid-temporal
|
|
name: Temporal Violation Museum
|
|
description: >-
|
|
A fictional museum with temporal inconsistencies. This example intentionally
|
|
violates temporal consistency rules to demonstrate validator behavior.
|
|
|
|
# Custodian Aspect - Founded in 2000
|
|
custodian_aspect:
|
|
class_uri: cpov:PublicOrganisation
|
|
name: Temporal Violation Museum
|
|
valid_from: "2000-01-01"
|
|
valid_to: null
|
|
has_legal_form:
|
|
id: https://w3id.org/heritage/custodian/example/legal-form-002
|
|
legal_form_code: "3000" # ISO 20275: Foundation
|
|
name: Museum Foundation
|
|
valid_from: "2000-01-01"
|
|
valid_to: null
|
|
|
|
# Organizational Structure - Curatorial department established in 2005
|
|
organizational_structure:
|
|
- id: https://w3id.org/heritage/custodian/example/curatorial-dept-002
|
|
class_uri: org:OrganizationalUnit
|
|
name: Curatorial Department
|
|
unit_type: DEPARTMENT
|
|
valid_from: "2005-01-01" # Established in 2005
|
|
valid_to: null
|
|
part_of_custodian: https://w3id.org/heritage/custodian/example/invalid-temporal
|
|
|
|
- id: https://w3id.org/heritage/custodian/example/research-dept-002
|
|
class_uri: org:OrganizationalUnit
|
|
name: Research Department
|
|
unit_type: DEPARTMENT
|
|
valid_from: "2010-06-01" # Established in 2010
|
|
valid_to: null
|
|
part_of_custodian: https://w3id.org/heritage/custodian/example/invalid-temporal
|
|
|
|
# Collections Aspect - TEMPORAL VIOLATIONS
|
|
collections_aspect:
|
|
# ❌ VIOLATION: Collection founded BEFORE unit exists (2002 < 2005)
|
|
# Rule 1: collection.valid_from >= unit.valid_from
|
|
- id: https://w3id.org/heritage/custodian/example/early-collection
|
|
collection_name: Premature Art Collection
|
|
collection_type: MUSEUM_OBJECTS
|
|
valid_from: "2002-03-15" # ❌ Before curatorial dept (2005-01-01)
|
|
valid_to: null
|
|
managed_by_unit:
|
|
- https://w3id.org/heritage/custodian/example/curatorial-dept-002
|
|
subject_areas:
|
|
- Contemporary Art
|
|
temporal_coverage: "1950-01-01/2020-12-31"
|
|
extent: "100 artworks"
|
|
violation_note: >-
|
|
This collection was supposedly established in 2002, but the Curatorial
|
|
Department that manages it didn't exist until 2005. This violates
|
|
temporal consistency - a collection cannot be managed by a unit that
|
|
doesn't yet exist.
|
|
|
|
# ❌ VIOLATION: Collection founded BEFORE unit exists (2008 < 2010)
|
|
- id: https://w3id.org/heritage/custodian/example/another-early-collection
|
|
collection_name: Research Archive
|
|
collection_type: ARCHIVAL
|
|
valid_from: "2008-09-01" # ❌ Before research dept (2010-06-01)
|
|
valid_to: null
|
|
managed_by_unit:
|
|
- https://w3id.org/heritage/custodian/example/research-dept-002
|
|
subject_areas:
|
|
- Museum History
|
|
temporal_coverage: "2000-01-01/2020-12-31"
|
|
extent: "500 documents"
|
|
violation_note: >-
|
|
This archive claims to have been established in 2008, but the Research
|
|
Department wasn't founded until 2010.
|
|
|
|
# Staff Aspect - TEMPORAL VIOLATIONS
|
|
staff_aspect:
|
|
# ❌ VIOLATION: Employment starts BEFORE unit exists (2003 < 2005)
|
|
# Rule 4: staff.valid_from >= unit.valid_from
|
|
- id: https://w3id.org/heritage/custodian/example/early-curator
|
|
person_observation:
|
|
class_uri: pico:PersonObservation
|
|
observed_name: Alice Timetravel
|
|
role: Chief Curator
|
|
valid_from: "2003-01-15" # ❌ Before curatorial dept (2005-01-01)
|
|
valid_to: null
|
|
employed_by_unit:
|
|
- https://w3id.org/heritage/custodian/example/curatorial-dept-002
|
|
violation_note: >-
|
|
This curator's employment supposedly started in 2003, but the Curatorial
|
|
Department wasn't established until 2005. A person cannot be employed by
|
|
a unit that doesn't exist yet.
|
|
|
|
# ❌ VIOLATION: Employment starts BEFORE unit exists (2009 < 2010)
|
|
- id: https://w3id.org/heritage/custodian/example/early-researcher
|
|
person_observation:
|
|
class_uri: pico:PersonObservation
|
|
observed_name: Bob Paradox
|
|
role: Senior Researcher
|
|
valid_from: "2009-03-01" # ❌ Before research dept (2010-06-01)
|
|
valid_to: "2020-12-31"
|
|
employed_by_unit:
|
|
- https://w3id.org/heritage/custodian/example/research-dept-002
|
|
violation_note: >-
|
|
This researcher's employment date (2009) predates the Research
|
|
Department's founding (2010).
|
|
|
|
# Expected Validation Errors:
|
|
#
|
|
# 1. Collection "Premature Art Collection":
|
|
# - valid_from: 2002-03-15
|
|
# - managed_by_unit valid_from: 2005-01-01
|
|
# - ERROR: Collection founded 2 years and 9 months before its managing unit
|
|
#
|
|
# 2. Collection "Research Archive":
|
|
# - valid_from: 2008-09-01
|
|
# - managed_by_unit valid_from: 2010-06-01
|
|
# - ERROR: Collection founded 1 year and 9 months before its managing unit
|
|
#
|
|
# 3. Staff "Alice Timetravel":
|
|
# - valid_from: 2003-01-15
|
|
# - employed_by_unit valid_from: 2005-01-01
|
|
# - ERROR: Employment started 1 year and 11 months before unit existed
|
|
#
|
|
# 4. Staff "Bob Paradox":
|
|
# - valid_from: 2009-03-01
|
|
# - employed_by_unit valid_from: 2010-06-01
|
|
# - ERROR: Employment started 1 year and 3 months before unit existed
|
|
|
|
# Provenance
|
|
provenance:
|
|
data_source: EXAMPLE_DATA
|
|
data_tier: TIER_4_INFERRED
|
|
extraction_date: "2025-11-22T15:00:00Z"
|
|
extraction_method: "Manual creation for validation testing (intentionally invalid)"
|
|
confidence_score: 0.0
|
|
notes: >-
|
|
This is an INVALID example demonstrating temporal consistency violations.
|
|
It should FAIL validation with 4 errors (2 collection violations, 2 staff violations).
|
|
|
|
locations:
|
|
- city: Temporal City
|
|
country: XX
|
|
latitude: 50.0
|
|
longitude: 10.0
|
|
|
|
identifiers:
|
|
- identifier_scheme: EXAMPLE_ID
|
|
identifier_value: MUSEUM-INVALID-TEMPORAL
|
|
identifier_url: https://example.org/museums/invalid-temporal
|