Skip to content

Commit c6af1b0

Browse files
committed
feat: support wikidata for local terms
regenerate subjects map
1 parent 4061e30 commit c6af1b0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

migrate/mk_subjects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def main(file: str):
5959
subject["id"] = get_uuid(term)
6060
subject["scheme"] = "cca_local"
6161

62-
# ULAN subjects are added to cca_local but with their ULAN URI as the ID
63-
if auth.upper() == "ULAN":
62+
# ULAN or Wikidata subjects are added to cca_local but with their ULAN URI as the ID
63+
if auth.upper() in ("ULAN", "WIKIDATA"):
6464
if not row["Auth URI"]:
6565
raise ValueError(
6666
f"No Auth URI for ULAN subject: {term}\nAll ULAN subjects must have an Auth URI."

migrate/subjects_map.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,15 @@
278278
"makanna, philip, 1940-": "https://id.loc.gov/authorities/names/n79075429",
279279
"black lives matter movement in art": "https://id.loc.gov/authorities/subjects/sh2023000218.html",
280280
"ohlone indians": "https://id.loc.gov/authorities/subjects/sh85033230.html",
281+
"breed, london": "https://www.wikidata.org/wiki/Q6669880",
282+
"calas, lorna meyer": "d36b9b5d-df12-52f4-b7a8-d0b205ee8483",
283+
"jenkins, jeremiah": "2e92889f-0630-5378-84f3-6b0aac74ac66",
284+
"bardge, alyssa": "2ae2145f-9216-5421-b2c6-2e73622d26df",
285+
"thomas, lava": "https://id.loc.gov/authorities/names/no2018143559.html",
286+
"takemoto, t. t.": "https://id.loc.gov/authorities/names/no2022083455.html",
287+
"howse, david c.": "https://www.wikidata.org/wiki/Q131593045",
288+
"executive orders": "https://id.loc.gov/authorities/subjects/sh85046285.html",
289+
"fund raising": "https://id.loc.gov/authorities/subjects/sh85052363.html",
281290
"acona, samuel": "a97b12f2-cd0c-50ab-8bcc-1debba741d23",
282291
"acosta hern\u00e1ndez, juvenal": "58aae4f7-2b3a-5f08-b069-025c753280ed",
283292
"adames, nicole": "b3d3d412-da5c-5b64-a56d-bed6f6f99000",

0 commit comments

Comments
 (0)