houritsu README

项目的 README,来自 github.com/Kohei-Wada/houritsu。合并为一个 markdown 文件:README.md。

houritsu

日本語

Every Japanese law (法令) as git history. One commit is one amending law coming into force: git log laws/act/415/415AC0000000057.md is the amendment history of the Personal Information Protection Act, and git show <commit> is what one amendment changed.

Commit SHAs are not stable. The history is rebuilt from e-Gov's data and force-pushed. Refer to a law by path, enforcement date and amending law number; see Limits.

Layout

Limits

Finding a law

File names are e-Gov law IDs, which stay the same when a title changes. Search the frontmatter by title:

git grep -l '^title: "個人情報の保護に関する法律"' -- laws

Following one article

Heading depth depends on the chapters around an article, so match any depth:

git log -L '/^##*  *第十六条/,/^##*  *第十七条/:laws/act/415/415AC0000000057.md'

This takes the first match, the main text. For an article of a 附則, start the range at that 附則's heading, which names its amending law: /^## 附 則(令和二年/,/^## 附 則/.

出典 / Source

This section states where the data comes from and what was changed. It is separate from the licence terms in the next section.

出典:e-Gov法令検索(https://laws.e-gov.go.jp/)、PDL1.0(https://www.digital.go.jp/resources/open_data/public_data_license_v1.0)

e-Gov法令検索の法令データ(法令API v2)を houritsu-builder(Kohei-Wada)が markdown に加工して作成。 条文の文字は変更していない(markdown のための見出し記号とエスケープ、図へのリンクを加えた)。正本は官報。改正履歴は e-Gov が提供する範囲に限る。

議案との対応:衆議院議案データベース(smartnews-smri、MIT)。議案番号と本文ページへのリンクのみ使用。

The characters of the statute text are unchanged; headings, markdown escapes and figure links are added. This is not the official text; the official text is the 官報. Revision history is limited to what e-Gov provides.

License

The statute text is not copyrighted (著作権法第13条), and neither is its mechanical conversion to markdown. You may use them without permission; CC BY 4.0 adds no restriction on using them.

CC BY 4.0 applies only to whatever in this repository the author holds copyright or other licensable rights in. It applies to nothing else.

If you reuse the data, a credit to houritsu (https://github.com/Kohei-Wada/houritsu) is appreciated. Where no licence is needed, this is a request, not a requirement.

No warranty: this is not legal advice, and the text may be out of date or wrong. Check e-Gov or the 官報 before relying on it.

Lint

uvx [email protected] check

houritsu (Kohei-Wada/houritsu)

正在搜索数据库…

这是什么?把日本的每一部法律都做成一个 git 仓库:每次提交(commit)对应一次修正法生效,数据来自 e-Gov 法令 API 构建。
这是代码库,还是只是一组文本文件?这是数据仓库,不是程序。每部法律都是一个开头带 YAML frontmatter 的 Markdown 文件,git 历史就是修法的时间线。
我怎样查看一部法律随时间是如何修改的?克隆仓库后,对该法律的文件运行 git log,例如对《个人信息保护法》运行 git log laws/act/415/415AC0000000057.md。用 git show 可以查看某一次修正改了哪些内容。
除了 git 还需要别的东西吗?不需要。README 中的示例只用到 git log 和 git show,没有提到需要账号、API 密钥或额外安装。
提交日期能反映每部法律真正的制定时间吗?不完全能。历史大约从 2015 年开始,所以提交日期既反映法律本身,也反映 e-Gov 数据的覆盖范围。git blame 显示的是文本被收录的时间,而不是撰写时间。
main 分支和 upcoming 分支有什么区别?main 存放已经生效的修订版本。upcoming 存放已公布但尚未施行的法律,其最后一次提交的日期为 2117-12-31,因为施行日期尚未确定。
如果只知道法律名称,怎么找到它?文件名是 e-Gov 法令 ID,即使名称改变也保持不变,所以请在 YAML frontmatter 中搜索法律名称。
被废止的法律,它的文件会怎样?其文件会在废止该法的法律的提交中被删除,但旧路径的历史仍可通过 git log 查看。
旧的检出版本会包含所有法律吗?不会。e-Gov 只从较晚日期开始覆盖的法律,不会出现在较早的检出版本中。2010-01-01 时约有 2,800 部法律,现在约有 9,000 部。
大小
148.7 MB
星标
757
更新
提交Nov 05
时长
1个月
提交 · 90 天