Skip to content

5. Convert LCSH headings to GeoNames

Michelle Janowiecki edited this page Aug 17, 2020 · 13 revisions

Set-up

To complete this step, you need:


Run addGeoNames.py

Transformations in this script:

  • In step 3, extractMARCToGeoCSV.py extracted geographic-related components of subject headings from the 600 fields of the MARC record. It divided these subjects into likely FAST subject headings ("Maryland--Baltimore") and likely LCNAF subject headings ("Baltimore (Md.)"). This script transforms those geographic headings into hierarchical string headings based on GeoNames. Therefore, "Maryland--Baltimore" and "Baltimore (Md.)" are both transformed to Baltimore, Maryland, United States.
    • This is done by finding "sameAs" references to GeoNames within the FAST authority files.