Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ArrowInvalid
Message:      JSON parse error: Invalid value. in row 0
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 342, in _generate_tables
                  df = pandas_read_json(f)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
                  return pd.read_json(path_or_buf, **kwargs)
                         ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 791, in read_json
                  json_reader = JsonReader(
                      path_or_buf,
                  ...<16 lines>...
                      engine=engine,
                  )
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 905, in __init__
                  self.data = self._preprocess_data(data)
                              ~~~~~~~~~~~~~~~~~~~~~^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 917, in _preprocess_data
                  data = data.read()
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 838, in read_with_retries
                  out = read(*args, **kwargs)
                File "<frozen codecs>", line 325, in decode
              UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 30-31: invalid continuation byte
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 345, in _generate_tables
                  raise e
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 291, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: Invalid value. in row 0

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

TGAZ-SQLite

The Temporal Gazetteer (TGAZ) of the China Historical GIS (CHGIS) as one SQLite file. It has 82,117 historical placenames from 763 BCE to 1911 CE, with 245,042 spellings (simplified and traditional Chinese, pinyin, Tibetan), jurisdiction links over time, and historical notes.

Files

File What it is
tgaz_20260325.zip the database (tgaz.db, 228 MB unzipped, 62 MB zipped)
latest.json the current release: file name, SHA-256 checksums, download URL

Download

The easiest way is the setup command of the tgaz-sqlite skill:

python3 scripts/query_tgaz.py setup     # downloads, checks the checksum, unzips

It puts the file at ~/.local/share/sino-authorities/tgaz.db. By hand:

curl -L -o tgaz.zip https://huggingface.co/datasets/kltng/tgaz-sqlite/resolve/main/tgaz_20260325.zip
unzip tgaz.zip      # gives tgaz.db

Source and credit

  • Data: China Historical GIS (Harvard University and Fudan University), with records from the Tibetan Buddhist Resource Center (3,587) and the Historical Gazetteer of Russia (761).
  • Converted from the MySQL dump in fccs-dci/containerized_tgaz with the scripts in kltng/tgaz-sqlite. The live API is at https://chgis.hudci.org/tgw/.
  • The upstream data has no explicit licence file. Credit CHGIS when you use it, and check the CHGIS site for terms of use. The conversion is by Kwok-leong Tang.

Known data problems

  • About 6,000 rows (mostly POLYGON records, hvd_90xxx IDs) have longitude 0.00000. On a map they land in Africa. The skill's --good-coords flag drops them.
  • 251 rows end before they begin (e.g. hvd_112536).
  • mv_pn_srch.parent_vn is the earliest parent, not the parent in a given year. Use part_of for a given year.
Downloads last month
29