glam/QUICK_STATUS_HYPERNYMS_REMOVAL_20251122.md
kempersc 67657c39b6 feat: Complete Country Class Implementation and Hypernyms Removal
- 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.
2025-11-23 13:09:38 +01:00

3.3 KiB

Quick Status: Hypernyms Removal (2025-11-22)

COMPLETE

What Was Done

Removed "Hypernyms:" text from FeatureTypeEnum descriptions:

  • Removed: 279 lines containing "Hypernyms: "
  • Result: Clean descriptions (only Wikidata definitions)
  • Validation: 0 occurrences of "Hypernyms:" remaining

Before:

MANSION:
  description: >-
    very large and imposing dwelling house
    Hypernyms: building    

After:

MANSION:
  description: >-
    very large and imposing dwelling house    

Ontology Mappings Convey Hypernyms

The ontology class mappings adequately express the semantic relationships:

Hypernym Ontology Mapping Count
heritage site crm:E27_Site + dbo:HistoricPlace 227
building crm:E22_Human-Made_Object + dbo:Building 31
structure crm:E25_Human-Made_Feature 20
organisation crm:E27_Site + org:Organization 2
infrastructure crm:E25_Human-Made_Feature 6

How Mappings Replace Hypernyms:

# OLD (with hypernym text):
MANSION:
  description: "very large and imposing dwelling house\nHypernyms: building"

# NEW (ontology conveys "building" hypernym):
MANSION:
  description: "very large and imposing dwelling house"
  exact_mappings:
    - crm:E22_Human-Made_Object  # Human-made physical object
    - dbo:Building               # ← This IS the "building" hypernym!

Why Ontology Mappings Are Better

Aspect Hypernym Text Ontology Mapping
Format Informal annotation Formal RDF
Semantics English text Machine-readable
Language English only 20+ languages via ontology labels
Standard Custom vocabulary ISO 21127 (CIDOC-CRM), W3C, Schema.org
Query Requires NLP parsing SPARQL rdfs:subClassOf inference
Interop Siloed Linked to Wikidata, DBpedia, Europeana

Ontology Classes Used

CIDOC-CRM (Cultural Heritage Standard):

  • crm:E22_Human-Made_Object - Buildings, monuments, objects
  • crm:E25_Human-Made_Feature - Structures, infrastructure
  • crm:E27_Site - Heritage sites, archaeological sites, parks

DBpedia (Linked Data):

  • dbo:Building - Building class
  • dbo:HistoricPlace - Historic places
  • dbo:Park, dbo:Monument, dbo:Monastery - Specialized classes

Schema.org (Web Semantics):

  • schema:LandmarksOrHistoricalBuildings - Historic structures
  • schema:Place - Geographic locations
  • schema:Park, schema:Monument - Specialized classes

W3C Org Ontology:

  • org:Organization - Organizational entities (monasteries, lodges)

Files Modified

Modified (1):

  • schemas/20251121/linkml/modules/enums/FeatureTypeEnum.yaml - Removed 279 "Hypernyms:" lines

Created (1):

  • HYPERNYMS_REMOVAL_COMPLETE.md - Full documentation

Validation

All checks passed:

  • YAML valid: 294 unique feature types
  • Hypernyms removed: 0 occurrences remaining
  • Ontology coverage: 100% (all entries have ontology mappings)
  • Semantic integrity: Hypernym relationships preserved via formal ontology classes

Status: COMPLETE

Hypernyms removed from descriptions. Semantic relationships now fully expressed through formal ontology mappings.

No additional work required.