kltng commited on
Commit
5905404
·
verified ·
1 Parent(s): 79af75d

TGAZ SQLite release 20260325

Browse files
Files changed (3) hide show
  1. README.md +68 -0
  2. latest.json +11 -0
  3. tgaz_20260325.zip +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: chgis-tgaz
4
+ license_link: https://chgis.fairbank.fas.harvard.edu/
5
+ pretty_name: TGAZ (Temporal Gazetteer) SQLite
6
+ language:
7
+ - zh
8
+ - en
9
+ - bo
10
+ tags:
11
+ - history
12
+ - gazetteer
13
+ - china
14
+ - historical-gis
15
+ - sqlite
16
+ size_categories:
17
+ - 10K<n<100K
18
+ ---
19
+
20
+ # TGAZ-SQLite
21
+
22
+ The **Temporal Gazetteer (TGAZ)** of the China Historical GIS (CHGIS) as one SQLite file.
23
+ It has 82,117 historical placenames from 763 BCE to 1911 CE, with 245,042 spellings
24
+ (simplified and traditional Chinese, pinyin, Tibetan), jurisdiction links over time,
25
+ and historical notes.
26
+
27
+ ## Files
28
+
29
+ | File | What it is |
30
+ |---|---|
31
+ | `tgaz_20260325.zip` | the database (`tgaz.db`, 228 MB unzipped, 62 MB zipped) |
32
+ | `latest.json` | the current release: file name, SHA-256 checksums, download URL |
33
+
34
+ ## Download
35
+
36
+ The easiest way is the `setup` command of the
37
+ [tgaz-sqlite skill](https://github.com/kltng/humanities-skills/tree/main/tgaz-sqlite):
38
+
39
+ ```bash
40
+ python3 scripts/query_tgaz.py setup # downloads, checks the checksum, unzips
41
+ ```
42
+
43
+ It puts the file at `~/.local/share/sino-authorities/tgaz.db`. By hand:
44
+
45
+ ```bash
46
+ curl -L -o tgaz.zip https://huggingface.co/datasets/kltng/tgaz-sqlite/resolve/main/tgaz_20260325.zip
47
+ unzip tgaz.zip # gives tgaz.db
48
+ ```
49
+
50
+ ## Source and credit
51
+
52
+ - Data: [China Historical GIS](https://chgis.fairbank.fas.harvard.edu/) (Harvard University and
53
+ Fudan University), with records from the Tibetan Buddhist Resource Center (3,587) and the
54
+ Historical Gazetteer of Russia (761).
55
+ - Converted from the MySQL dump in
56
+ [fccs-dci/containerized_tgaz](https://github.com/fccs-dci/containerized_tgaz) with the scripts in
57
+ [kltng/tgaz-sqlite](https://github.com/kltng/tgaz-sqlite). The live API is at
58
+ https://chgis.hudci.org/tgw/.
59
+ - The upstream data has no explicit licence file. Credit CHGIS when you use it, and check the
60
+ CHGIS site for terms of use. The conversion is by Kwok-leong Tang.
61
+
62
+ ## Known data problems
63
+
64
+ - About 6,000 rows (mostly POLYGON records, `hvd_90xxx` IDs) have longitude `0.00000`. On a map
65
+ they land in Africa. The skill's `--good-coords` flag drops them.
66
+ - 251 rows end before they begin (e.g. `hvd_112536`).
67
+ - `mv_pn_srch.parent_vn` is the earliest parent, not the parent in a given year. Use `part_of`
68
+ for a given year.
latest.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "release": "20260325",
3
+ "sqlite_filename": "tgaz.db",
4
+ "format": "sqlite3",
5
+ "sha256": "f01afa80f65a470cfa6ebd557408e17b6dd5b9f45a9271a39c53d9735bf4ffc4",
6
+ "size_bytes": 238755840,
7
+ "archive_filename": "tgaz_20260325.zip",
8
+ "archive_sha256": "7e8745273dc2cdc7cff5c03be327a2ba4307133fc64259177469901abef94eb6",
9
+ "archive_size_bytes": 62156083,
10
+ "download_url": "https://huggingface.co/datasets/kltng/tgaz-sqlite/resolve/main/tgaz_20260325.zip"
11
+ }
tgaz_20260325.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e8745273dc2cdc7cff5c03be327a2ba4307133fc64259177469901abef94eb6
3
+ size 62156083