{"id":50717069,"url":"https://github.com/scriptogre/romanian-law-data","last_synced_at":"2026-06-09T19:30:26.708Z","repository":{"id":360864701,"uuid":"1252028918","full_name":"scriptogre/romanian-law-data","owner":"scriptogre","description":"Romanian legal corpus (legislatie.just.ro → parquet). Daily releases of acts, articles, paragraphs. Powers intreaba-legea.","archived":false,"fork":false,"pushed_at":"2026-05-28T08:11:07.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T08:13:06.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scriptogre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T06:02:10.000Z","updated_at":"2026-05-28T08:11:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/scriptogre/romanian-law-data","commit_stats":null,"previous_names":["scriptogre/romanian-law-data"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/scriptogre/romanian-law-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fromanian-law-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fromanian-law-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fromanian-law-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fromanian-law-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scriptogre","download_url":"https://codeload.github.com/scriptogre/romanian-law-data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fromanian-law-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34123169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-09T19:30:25.506Z","updated_at":"2026-06-09T19:30:26.703Z","avatar_url":"https://github.com/scriptogre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Romanian Law Data\n\nZstd-compressed Parquet exports of the Romanian legal corpus (acts, articles, paragraphs) for use with [DuckDB](https://duckdb.org/). Sourced from [legislatie.just.ro](https://legislatie.just.ro/) (Ministry of Justice) via its public SOAP API.\n\nAutomated daily via GitHub Actions. Download from [Releases](https://github.com/scriptogre/romanian-law-data/releases).\n\n## Tables\n\n| Table | Content | Rows |\n|---|---|---|\n| **acte** | One row per act (LEGE, OUG, HG, ORDIN, DECIZIE, …) with metadata + full text | ~187k |\n| **articole** | One row per article (parsed from `acte.content`) | ~993k |\n| **alineate** | One row per paragraph — the finest citation unit (e.g. `art. 188 alin. (1)`) | ~1.96M |\n\nTables use Romanian legal vocabulary (`acte`, `articole`, `alineate`); columns use English SQL convention (`type`, `published_at`, `gazette_number`, …) with Romanian `COMMENT ON` metadata in [`create_views.sql`](create_views.sql).\n\n## Subject lenses\n\n`create_views.sql` also exposes pre-filtered views over `acte` for each canonical code and for jurisprudence:\n\n| View | Filters |\n|---|---|\n| `constitutie` | Constituția României (1991, republicată 2003) |\n| `cod_civil` | Legea 287/2009 |\n| `cod_penal` | Legea 286/2009 |\n| `cod_muncii` | Legea 53/2003 (republicată) |\n| `cod_procedura_civila` | Legea 134/2010 (republicată) |\n| `cod_procedura_penala` | Legea 135/2010 |\n| `cod_fiscal` | Legea 227/2015 |\n| `jurisprudenta` | CCR + ÎCCJ decisions |\n\n## Usage\n\n```bash\n# Download the latest bundle\ngh release download -R scriptogre/romanian-law-data\ntar xzf laws.tar.gz -C data/\n```\n\n```python\nimport duckdb\nconn = duckdb.connect()\nconn.execute(open(\"data/create_views.sql\").read())\nconn.execute(\"\"\"\n    SELECT act_citation, link, article_citation, content\n    FROM articole\n    WHERE act_id IN (SELECT id FROM cod_penal)\n      AND article_number = 188\n\"\"\").fetchall()\n```\n\n## Pipeline\n\n```\ncollect.py    SOAP API → data/raw_acts.jsonl\nnormalize.py  fix encoding, dedup, extract dates + gazette → stdout\nparse.py      extract articles + alineate                  → stdout\nexport.py     write parquet bundle + sha256                ← stdin\n```\n\n`collect` checkpoints `raw_acts.jsonl` (SOAP is slow + rate-limited, worth caching). `normalize → parse → export` is one pipe — no intermediate JSONL on disk.\n\n```bash\nuv sync\nuv run python -m scripts.collect\nuv run python -m scripts.normalize \\\n  | uv run python -m scripts.parse \\\n  | uv run python -m scripts.export\n```\n\n## License\n\nThe corpus is published by the Romanian Ministry of Justice and is public information. This repository only provides format conversion + pipeline tooling.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptogre%2Fromanian-law-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptogre%2Fromanian-law-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptogre%2Fromanian-law-data/lists"}