Go to file
philipp 36e6a45674
Some checks failed
CI/CD Pipeline / test (push) Failing after 8s
switch to image with nodejs
2024-01-26 17:21:29 +01:00
.gitea/workflows switch to image with nodejs 2024-01-26 17:21:29 +01:00
data fix ci 2023-11-06 17:35:56 +01:00
src add kschg 2023-11-09 13:14:58 +01:00
.gitignore empty rust project 2023-11-03 13:45:25 +01:00
.gitlab-ci.yml run live test on ci 2023-11-06 13:36:33 +01:00
Cargo.lock update deps 2024-01-26 16:50:44 +01:00
Cargo.toml add hacks for abgb 2023-11-07 09:51:08 +01:00
download_all_pars_from_list.sh create test for full urhg for overview parsing 2023-11-06 12:00:20 +01:00
README.md trigger ci 2024-01-26 16:55:15 +01:00

RISolve

History

Goals

  • I want to have the text of the law.
  • I want to see the structure (proper headers) of the law.
  • I want to be able to make comments (e.g. Erschöpfung) on certain parts
  • I want to see since when this paragraph is in use.
  • [~] Lawtext should be updateable

Technical

  • I don't want to restrict myself with a parser combinators but code it myself using recursive descent parser.
  • Be strict in what I process. Fail if anything unexpected happens. The user should handle this case. It's fine if one decides to ignore the new/unexpected field, but it should be done deliberately.

Progress / Functions

  • Parse structure of law into struct using Deserilize trait, pot. multiple requests (if > 100 paragraphs)
  • Parse risdok using own RD parser, again strict: fail if anything not expected happens, not sure (yet) if I want to operate on strings, or first parse using off-the-shelve XML reader (prob. 2nd option)

Next step

  • Parse ABGB
  • Create config files for laws
    • law_id
    • replace stuff
    • headers
  • Create argument parse
    • --law mschg.conf

Naming

  • Law ("Gesetz"): e.g. UHG, TEG, ABGB
  • Section ("Paragraph")
  • Subsection ("Absatz")
  • Item ("Ziffer")
  • Heading-{1,2,3,...}

"Scripts"

  • Retrieve overview law: curl -X POST "https://data.bka.gv.at/ris/api/v2.6/Bundesrecht" -H "Content-Type: application/x-www-form-urlencoded" -d "Applikation=BrKons" -d "Gesetzesnummer=10001899" -d "DokumenteProSeite=OneHundred" -d "Seitennummer=1" -d "Fassung.FassungVom=2023-11-03" | jq . > law.json