- Introduced `test_nlp_extractor.py` with unit tests for the InstitutionExtractor, covering various extraction patterns (ISIL, Wikidata, VIAF, city names) and ensuring proper classification of institutions (museum, library, archive). - Added tests for extracted entities and result handling to validate the extraction process. - Created `test_partnership_rdf_integration.py` to validate the end-to-end process of extracting partnerships from a conversation and exporting them to RDF format. - Implemented tests for temporal properties in partnerships and ensured compliance with W3C Organization Ontology patterns. - Verified that extracted partnerships are correctly linked with PROV-O provenance metadata.
29 lines
635 B
Python
29 lines
635 B
Python
"""
|
|
Global Heritage Custodian Identifier (GHCID) System.
|
|
|
|
This module provides persistent identifiers for worldwide heritage institutions.
|
|
"""
|
|
|
|
from .ghcid import (
|
|
GHCIDComponents,
|
|
GHCIDGenerator,
|
|
GHCIDHistoryEntry,
|
|
InstitutionType,
|
|
extract_abbreviation_from_name,
|
|
)
|
|
from .lookups import (
|
|
get_city_locode,
|
|
get_province_code,
|
|
get_ghcid_components_for_dutch_city,
|
|
)
|
|
|
|
__all__ = [
|
|
"GHCIDComponents",
|
|
"GHCIDGenerator",
|
|
"GHCIDHistoryEntry",
|
|
"InstitutionType",
|
|
"extract_abbreviation_from_name",
|
|
"get_city_locode",
|
|
"get_province_code",
|
|
"get_ghcid_components_for_dutch_city",
|
|
]
|