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-репозитория: каждый коммит соответствует одной поправке к закону, вступившей в силу. Данные собраны из API законов e-Gov.
Это библиотека кода или просто набор текстовых файлов?Это хранилище данных, а не программа. Каждый закон записан в виде файла markdown с YAML-заголовком, а история 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, которые не меняются при смене названия, поэтому ищите название в YAML-заголовке.
Что происходит с файлами отменённого закона?Его файл удаляется в коммите закона, который его отменяет, но история остаётся видимой в git log по старому пути.
Будут ли в старой копии репозитория все законы?Нет. Закон, который e-Gov охватывает только с более поздних дат, в старых копиях не появится. На 1 января 2010 года существует около 2 800 законов, сейчас — 9 000.
Какие есть похожие проекты?romania-law, leis, global-law, ganjoor-data, git-flight-rules, dmca, akshare, public-api-lists
Автор
Kohei-Wada
Размер
148.7 MB
Звёзды
757
Обновлён
КоммитNov 05
Возраст
1 мес
Коммиты · 90 дней