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:    CastError
Message:      Couldn't cast
fact_id: string
topic: string
heading: string
summary: string
keywords: list<item: string>
  child 0, item: string
aliases: list<item: null>
  child 0, item: null
title: string
layer: string
name: string
license: string
stage_bytes: struct<stage1/catalog.jsonl: int64, stage1/index.sqlite: int64, stage2/facts.jsonl: int64, stage2/so (... 19 chars omitted)
  child 0, stage1/catalog.jsonl: int64
  child 1, stage1/index.sqlite: int64
  child 2, stage2/facts.jsonl: int64
  child 3, stage2/sources.jsonl: int64
pack_id: string
version: string
fact_count_by_topic: struct<law.egov: int64>
  child 0, law.egov: int64
reviewed_at: null
verification_policy: string
split_policy: string
language: string
scope: struct<includes: list<item: string>, excludes: list<item: string>>
  child 0, includes: list<item: string>
      child 0, item: string
  child 1, excludes: list<item: string>
      child 0, item: string
created_at: timestamp[s]
total_bytes_excl_manifest_signatures: int64
source_count: int64
domain: string
fact_count: int64
to
{'pack_id': Value('string'), 'name': Value('string'), 'version': Value('string'), 'language': Value('string'), 'domain': Value('string'), 'scope': {'includes': List(Value('string')), 'excludes': List(Value('string'))}, 'created_at': Value('timestamp[s]'), 'reviewed_at': Value('null'), 'fact_count': Value('int64'), 'fact_count_by_topic': {'law.egov': Value('int64')}, 'source_count': Value('int64'), 'license': Value('string'), 'verification_policy': Value('string'), 'split_policy': Value('string'), 'stage_bytes': {'stage1/catalog.jsonl': Value('int64'), 'stage1/index.sqlite': Value('int64'), 'stage2/facts.jsonl': Value('int64'), 'stage2/sources.jsonl': Value('int64')}, 'total_bytes_excl_manifest_signatures': Value('int64')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 151, 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 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 131, 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 574, 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 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, 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 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, 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 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              fact_id: string
              topic: string
              heading: string
              summary: string
              keywords: list<item: string>
                child 0, item: string
              aliases: list<item: null>
                child 0, item: null
              title: string
              layer: string
              name: string
              license: string
              stage_bytes: struct<stage1/catalog.jsonl: int64, stage1/index.sqlite: int64, stage2/facts.jsonl: int64, stage2/so (... 19 chars omitted)
                child 0, stage1/catalog.jsonl: int64
                child 1, stage1/index.sqlite: int64
                child 2, stage2/facts.jsonl: int64
                child 3, stage2/sources.jsonl: int64
              pack_id: string
              version: string
              fact_count_by_topic: struct<law.egov: int64>
                child 0, law.egov: int64
              reviewed_at: null
              verification_policy: string
              split_policy: string
              language: string
              scope: struct<includes: list<item: string>, excludes: list<item: string>>
                child 0, includes: list<item: string>
                    child 0, item: string
                child 1, excludes: list<item: string>
                    child 0, item: string
              created_at: timestamp[s]
              total_bytes_excl_manifest_signatures: int64
              source_count: int64
              domain: string
              fact_count: int64
              to
              {'pack_id': Value('string'), 'name': Value('string'), 'version': Value('string'), 'language': Value('string'), 'domain': Value('string'), 'scope': {'includes': List(Value('string')), 'excludes': List(Value('string'))}, 'created_at': Value('timestamp[s]'), 'reviewed_at': Value('null'), 'fact_count': Value('int64'), 'fact_count_by_topic': {'law.egov': Value('int64')}, 'source_count': Value('int64'), 'license': Value('string'), 'verification_policy': Value('string'), 'split_policy': Value('string'), 'stage_bytes': {'stage1/catalog.jsonl': Value('int64'), 'stage1/index.sqlite': Value('int64'), 'stage2/facts.jsonl': Value('int64'), 'stage2/sources.jsonl': Value('int64')}, 'total_bytes_excl_manifest_signatures': Value('int64')}
              because column names don't match

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.

e-Gov法令 知識パック

日本の現行法令を、条文の「項」単位の事実として収録した知識パック。

内容と範囲

  • 対象:e-Gov法令API Version 1 の現行法令 全9,009件(本則・附則を含む)
  • 事実数:834,583件(1万字超の項 75件は号単位に分割)
  • 除外:別表・図・様式
  • 作成:2026-12-01

出典とライセンス

法令の条文は著作権法第13条により著作権の対象外。データはデジタル庁の e-Gov 法令API Version 1 から取得した(利用申込み不要)。

検証状態

出典が一次資料(公式法令データベース)そのものであるため、収録時点で 「中核」層として扱う。他源との照合による検証とは方法が異なる点に注意。

ファイル構成

  • manifest.json — パックの定義(範囲・出典・ライセンス・検証方針・件数)
  • stage1/catalog.jsonl / stage1/index.sqlite — 出典カタログと検索索引
  • stage2/facts.jsonl — 事実本体(1行=1事実、出典つき)
  • stage2/sources.jsonl — 出典一覧
  • signatures/ — パックの署名情報

系列

Cubeプロジェクトの知識パック群の一つ。日本語版Wikipediaパックは FMA03/jp-wiki-knowledge-pack で公開している。 パック形式は「事実+索引」をモデルへ外付けする設計で、モデルの重みは含まない。

Downloads last month
-