1
0

Valsts budžets kā kods v0.1: shēma, 2025. un 2026. gada budžeta likumi kā dati

Loģisks budžeta modelis (Source, Provision, Parameter, Actor, Purpose, Indicator, Rule, ClassItem, Allocation),
nevis likuma pielikumu izkārtojuma kopija. Abi likumi: teksts un visi 12 pielikumi.
Atpakaļsaderība: 2026 — 58 457 no 58 457, 2025 — 55 677 no 55 677 pielikumos drukāto skaitļu atjaunoti tikai no XML.
Avoti (likumi.lv, klasifikāciju MK noteikumi), rīki, datu līgums B15, dokumentācija.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016679RwmHsuTFfxt26wP6rk
This commit is contained in:
2026-10-10 22:34:28 +00:00
commit 71250e7b0e
56 changed files with 26144 additions and 0 deletions

View File

@@ -0,0 +1,133 @@
{
"xsd_valid": true,
"allocations": 6322,
"annexes": {
"1": {
"checks": 252,
"ok": 252,
"mismatch": 0,
"not_computed": 0
},
"2": {
"checks": 216,
"ok": 216,
"mismatch": 0,
"not_computed": 0
},
"3": {
"checks": 5944,
"ok": 5944,
"mismatch": 0,
"not_computed": 0
},
"4": {
"checks": 7863,
"ok": 7863,
"mismatch": 0,
"not_computed": 0
},
"5": {
"checks": 233,
"ok": 233,
"mismatch": 0,
"not_computed": 0
},
"6": {
"checks": 3,
"ok": 3,
"mismatch": 0,
"not_computed": 0
},
"7": {
"checks": 3,
"ok": 3,
"mismatch": 0,
"not_computed": 0
},
"8": {
"checks": 5,
"ok": 5,
"mismatch": 0,
"not_computed": 0
},
"9": {
"checks": 2,
"ok": 2,
"mismatch": 0,
"not_computed": 0
},
"10": {
"checks": 1,
"ok": 1,
"mismatch": 0,
"not_computed": 0
},
"11": {
"checks": 41155,
"ok": 41155,
"mismatch": 0,
"not_computed": 0
}
},
"total": 55677,
"reproduced": 55677,
"parser_report": {
"block_fallback": [
"03 62.00.00",
"03 63.00.00",
"03 70.00.00",
"03 73.00.00",
"03 74.00.00",
"08 63.00.00",
"08 70.00.00",
"08 74.00.00",
"10 22.00.00",
"10 70.00.00",
"10 73.00.00",
"11 70.00.00",
"11 96.00.00",
"12 26.00.00",
"12 27.00.00",
"12 29.00.00",
"12 60.00.00",
"12 62.00.00",
"12 63.00.00",
"12 67.00.00",
"12 69.00.00",
"12 70.00.00",
"12 74.00.00",
"13 31.00.00",
"13 38.00.00",
"13 39.00.00",
"13 41.00.00",
"13 62.00.00",
"13 63.00.00",
"13 67.00.00",
"13 70.00.00",
"13 71.00.00",
"13 72.00.00",
"13 73.00.00",
"13 74.00.00",
"13 75.00.00",
"14 02.00.00",
"14 06.00.00",
"14 11.00.00",
"14 38.00.00",
"… +116"
],
"a11_new_programme": [
"12 60.02.00 Atmaksas valsts pamatbudžetā par Eiropas infrastru"
],
"class_parent_votes": [
"revenue:18400 Valsts pamatbudžetā saņemtie transferti no valsts votes {'revenue:18000': 8, 'law:A500': 1} -> revenue:18000"
],
"parent_rejected_by_structure": [
"revenue:21200 Ārvalstu finanšu palīdzība atmaksām vals: not under ['revenue:21100']"
],
"residual_allocations": [
"annex 3-block-split: 4",
"annex 3: 6",
"annex 4: 4"
]
}
}

View File

@@ -0,0 +1,135 @@
{
"xsd_valid": true,
"allocations": 6400,
"annexes": {
"1": {
"checks": 253,
"ok": 253,
"mismatch": 0,
"not_computed": 0
},
"2": {
"checks": 217,
"ok": 217,
"mismatch": 0,
"not_computed": 0
},
"3": {
"checks": 6241,
"ok": 6241,
"mismatch": 0,
"not_computed": 0
},
"4": {
"checks": 8160,
"ok": 8160,
"mismatch": 0,
"not_computed": 0
},
"5": {
"checks": 233,
"ok": 233,
"mismatch": 0,
"not_computed": 0
},
"6": {
"checks": 3,
"ok": 3,
"mismatch": 0,
"not_computed": 0
},
"7": {
"checks": 3,
"ok": 3,
"mismatch": 0,
"not_computed": 0
},
"8": {
"checks": 5,
"ok": 5,
"mismatch": 0,
"not_computed": 0
},
"9": {
"checks": 2,
"ok": 2,
"mismatch": 0,
"not_computed": 0
},
"10": {
"checks": 1,
"ok": 1,
"mismatch": 0,
"not_computed": 0
},
"11": {
"checks": 43339,
"ok": 43339,
"mismatch": 0,
"not_computed": 0
}
},
"total": 58457,
"reproduced": 58457,
"parser_report": {
"block_fallback": [
"03 62.00.00",
"03 63.00.00",
"03 70.00.00",
"03 73.00.00",
"03 74.00.00",
"08 63.00.00",
"08 74.00.00",
"10 22.00.00",
"10 70.00.00",
"10 73.00.00",
"11 70.00.00",
"11 96.00.00",
"12 26.00.00",
"12 29.00.00",
"12 60.00.00",
"12 62.00.00",
"12 63.00.00",
"12 67.00.00",
"12 69.00.00",
"12 70.00.00",
"12 74.00.00",
"13 31.00.00",
"13 38.00.00",
"13 39.00.00",
"13 41.00.00",
"13 61.00.00",
"13 62.00.00",
"13 63.00.00",
"13 67.00.00",
"13 70.00.00",
"13 72.00.00",
"13 73.00.00",
"13 74.00.00",
"13 75.00.00",
"14 02.00.00",
"14 06.00.00",
"14 11.00.00",
"14 38.00.00",
"14 40.00.00",
"14 62.00.00",
"… +114"
],
"a11_new_programme": [
"12 60.02.00 Atmaksas valsts pamatbudžetā par Eiropas infrastru",
"17 60.51.00 Atmaksas valsts pamatbudžetā par Eiropas transport",
"12 67.02.00 Atmaksas valsts pamatbudžetā par Eiropas Kopienas "
],
"class_parent_votes": [
"revenue:18400 Valsts pamatbudžetā saņemtie transferti no valsts votes {'revenue:18000': 8, 'law:A500': 1} -> revenue:18000"
],
"parent_rejected_by_structure": [
"revenue:21200 Ārvalstu finanšu palīdzība atmaksām vals: not under ['revenue:21100']"
],
"residual_allocations": [
"annex 3-block-split: 4",
"annex 3: 6",
"annex 4: 4"
]
}
}