Looks up Taiwan's library authority data (LDT@Library) for Chinese personal name authorities with variants and sources, Chinese Subject Headings, and Chinese classification via reconciliation API and SPARQL endpoint.
Ships in taiwan-ldt-authorities. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Look up Taiwan's name authorities, Chinese subject headings, and Chinese classification. No API key needed.
LDT@Library (臺灣鏈結資源系統, https://ld.ncl.edu.tw) publishes the authority files used by Taiwan's libraries as linked data (MADS/RDF and SKOS). It has three kinds of records:
| Kind | URI pattern | Example |
|---|---|---|
| Personal names (and corporate names) | /authority/{id} | 王守仁, 1472-1528 with 29 variants (王陽明, 伯安, Wang Yang-ming, …) and 7 sources with page numbers |
| Subject headings (Chinese Subject Headings, csht) | /subject/{id} | 孔廟 (local id (ChTaNC)sh01473) |
| Chinese classification (中文圖書分類法) | /classification/{id} | 王守仁 with notation T中國作家時代區分表…--6.6 |
These are the authorities behind the Taiwan records in alma-sru-catalogs (subjects with $2 csht, call numbers with $2 ncsclt).
Two public interfaces:
https://ld.ncl.edu.tw/reconcile. Ranked fuzzy matches.https://ld.ncl.edu.tw/fuseki/lod/query. Exact data.For 王守仁 the reconciliation API ranks a modern scholar who wrote about him (張祥浩, 1945-) above 王守仁, 1472-1528, and match is usually false. The right record is normally in the top few. Read the name and uri, or confirm with lookup/get. The service still calls itself "(Test)".
Personal-name labels look like 王守仁, 1472-1528. An exact lookup for 王守仁 finds only the classification entry. Use --mode prefix for names. Subject headings have no dates, so exact works (孔廟).
Labels are stored as "孔廟"@en (tagged English even when Chinese). Matching the tagged literal takes under 1 second; FILTER(STR(?label) = "孔廟") takes 5+ seconds. The script's exact mode does this for you.
lookup mode | What it matches | Time |
|---|---|---|
exact | preferred label equals the text | < 1 s |
prefix | preferred label starts with the text | 1–2 s |
variant | a variant name starts with the text (e.g. 王陽明 → 王守仁) | ~15 s |
Queries that scan the whole store (counts over all records, unrestricted CONTAINS) time out. Keep queries anchored to a label or URI.
Subject records link related headings (hasReciprocalAuthority) through blank nodes; the script returns their labels with an empty uri. Look them up by label to get their records.
python scripts/ldt_api.py reconcile 王守仁 --type authority --limit 5
python scripts/ldt_api.py lookup 孔廟 # subject heading, exact
python scripts/ldt_api.py lookup 王守仁 --mode prefix # names: use prefix
python scripts/ldt_api.py lookup 王陽明 --mode variant # find the authorized form from a variant
python scripts/ldt_api.py get https://ld.ncl.edu.tw/authority/114743
python scripts/ldt_api.py get subject/89443
python scripts/ldt_api.py sparql 'SELECT ?s ?l WHERE { ?s madsrdf:authoritativeLabel "孔廟"@en }'
from scripts.ldt_api import LDTAPI
ldt = LDTAPI()
hits = ldt.lookup("王陽明", mode="variant") # -> 王守仁, 1472-1528
person = ldt.get(hits[0]["uri"])
print(person["label"], person["variants"], person["sources"])
ldt.lookup("孔廟") # Taiwan subject heading
ldt.reconcile("金庸", type="authority", limit=5)
ldt.sparql('SELECT ?v WHERE { <https://ld.ncl.edu.tw/authority/114743> madsrdf:hasVariant/madsrdf:variantLabel ?v }')
get() returns uri, label, kind (PersonalName, CorporateName, Topic, Classification, …), variants, sources (source, note = page, status), notes, notation (class number), local_id, lccn, marc_key (the MARC heading, e.g. 1001 $a王守仁,$d1472-1528), related, and url.
Reconciliation types: authority (personal names; sub-types authority>prefname, authority>altname, …), topic, classification.
Authorized form of a name from any variant: lookup(variant, mode="variant"), then get() for dates, variants, and sources. Cross-check with cbdb-local for biography.
Compare subject headings across traditions: find a book in alma-sru-catalogs at a Taiwan library and at a US library; compare subject_headings (csht vs lcsh); look up the csht heading here.
Reconcile a column of names in OpenRefine: add https://ld.ncl.edu.tw/reconcile as a standard reconciliation service.
get() before trusting them.https://ld.ncl.edu.tw/authority/…) when you report an authority.The HKCAN Chinese name authority linked-data service (hkcan.julac.org) is valuable but its robots.txt says Disallow: / and its documented SPARQL endpoint (http://hkcan.julac.org/lod/sparql) did not respond on 2026-10-26. Ask JULAC before building on it.
references/api_reference.md — endpoints, data model (MADS/RDF, SKOS), SPARQL patterns, reconciliation protocolscripts/ldt_api.py — client and CLI (zero dependencies)tests/test_ldt_api.py — offline testsReport a problem. This skill is part of the public repository kltng/humanities-skills. If it fails (an API changed, a script errors, or these instructions are wrong), report it as a GitHub issue:
gh issue list --repo kltng/humanities-skills --state all --search "taiwan-ldt-authorities"gh issue create --repo kltng/humanities-skills --label bug --title "[taiwan-ldt-authorities] <short summary>" --body "<details>". Without gh, give the user this link: https://github.com/kltng/humanities-skills/issues/new?template=skill-problem.ymlCredit the source. The data comes from LDT@Library (臺灣鏈結資源系統), built by the National Central Library (國家圖書館) and National Taiwan University Library (國立臺灣大學圖書館) with partner libraries. The site states no open licence; its footer reserves all rights (checked 2026-11-14). Looking up and citing single records is ordinary scholarly use: give the record URI and name LDT@Library and the two libraries. Ask them before you copy or republish the data in bulk.
Cite. If this skill helped work that is published, please cite it, together with the source credited above:
Tang, Kwok-leong. humanities-skills: taiwan-ldt-authorities (version ). GitHub, . https://github.com/kltng/humanities-skills
When you help a user write up results that relied on this skill, remind them once about this citation and the credit above.
What SKILL.md sets; muted values are Claude Code's defaults
/taiwan-ldt-authorities:taiwan-ldt-authoritiesfrom taiwan-ldt-authorities
npx claudepluginhub kltng/humanities-skills --plugin taiwan-ldt-authoritiesOther plugins' skills for the same job