# vzn: the town's generally binding regulations (VZN)

164 posts of the town's register of generally binding regulations (všeobecne záväzné nariadenia, VZN) on senec.sk,
as the town publishes them at <https://www.senec.sk/vzn/>, built 2026-11-29 by `scripts/build_vzn.py` from the posts
harvested into `senec.db` by `scripts/senec_content.py` (<https://www.senec.sk/wp-json/wp/v2/regulations>). The town's
withdrawn drafts are left out. Each record links the town's page of the VZN (`source_url`) and its document
(`document_url`).

The ordinances are the town's own published documents (Act 211/2000 § 3 ods. 5; Act 185/2015 § 5: official
decisions are not protected), so this extract is CC BY 4.0: credit Mesto Senec and Som Senec.

## What is the town's and what is ours

- The town's fields, as it publishes them: `post_id`, `number`, `title`, `approved_at`, `declared_at`,
  `effective_from`, `valid_until`, `town_label`, `document_url`, `replaces` (its own link between two posts),
  `posted`, `town_modified`.
- `town_label` is the town's category. It labels 158 posts „Účinné“, also those a later VZN repealed (VZN 3/2009,
  repealed by VZN 10/2023), so it is kept beside `status`, never instead of it.
- Ours: `kind`, `amends` and `repeals` are read from the VZN's title („…, ktorým sa mení a dopĺňa VZN č. 9/2023“,
  „…, ktorým sa ruší VZN č. 5/2024“, „Dodatok č. 1 k VZN č. 5/2012“) and, for repeals, from the repeal clause of
  its text („Týmto nariadením sa ruší všeobecne záväzné nariadenie č. 8/2019 …“). Only a whole VZN counts: a clause
  that repeals an article, a paragraph or an annex does not. `repeals_read_from` says `title` or `text` (`text` when
  at least one repeal is not in the title: 44 posts). The text is read from 132 of the 158 documents; a scan without
  a text layer is not read, so a repeal it holds is missing here. 6 posts have no document.
- `amended_by`, `repealed_by` and `replaced_by` are the inverses, as `record_id`s. A repeal names a number, and every
  post with that number is marked (a VZN and its „Dodatok“ share it). 56 posts are repealed by another;
  15 repeals name a VZN that is not on the town's list (all but one older than the list).
- Numbers are taken as printed. VZN 14/2025 repeals „č. 11/2014 … schválené dňa 29.10.2024“, a number no post has;
  the town's own link `replaces` names VZN 11/2024, which is therefore `nahradene`.
- `number`: the town's field. When the town gives none, the number in the title (`number_from_title` true). One post
  whose field holds the number of the VZN it amends has `number` null.

## Status

`status` is worked out from the fields above on the day of the build; `repealed_from` is the earliest
`effective_from` of the VZN that repeal it (its `declared_at`, else `approved_at`, where the town gives no
`effective_from`).

| `status` | Meaning | Posts |
| --- | --- | --- |
| `ucinne-podla-mesta` | the town labels it „Účinné“ and no later VZN on its list repeals or replaces it | 105 |
| `ucinnost-neskor` | adopted, in effect from a later day (`effective_from`) | 0 |
| `zrusene` | a later VZN repeals it, by its title or its repeal clause, and that one is in effect (`repealed_by`) | 56 |
| `nahradene` | the town links a later VZN as its replacement (`replaced_by`) | 1 |
| `meni-zrusene` | it amends a VZN that a later one repealed | 2 |
| `platnost-skoncila` | the town's `valid_until` has passed | 0 |
| `bez-oznacenia` | the town gives it no label and nothing above applies | 0 |

It says what the town's list and the VZN's own words show, not a legal opinion: an ordinance can also lapse by a
change of the law, which nothing here reads.

## Slugs

`record_id` is the number („vzn-3-2026“), or the post id where there is none („vzn-91523“). A second post with a
number already taken gets the post id after it („vzn-5-2021-90816“): the town publishes some VZN twice and gives a
„Dodatok“ the number of the VZN it amends. A `record_id` once published stays with its post.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `record_id` | string | Stable slug (see above). |
| `post_id` | integer | The post's id on senec.sk. |
| `number` | string or null | „3/2026“: number and year. |
| `number_from_title` | boolean | `number` is read from the title, the town's field being empty. |
| `kind` | string | `nariadenie`, `dodatok` (an addendum) or `oprava` (a correction), from the title. |
| `title` | string | As the town publishes it. |
| `approved_at`, `declared_at`, `effective_from`, `valid_until` | date or null | The town's dates: adopted by the council, declared (posted), in effect from, valid until. |
| `town_label` | string or null | The town's category (`Účinné`). |
| `status` | string | See „Status“. |
| `document_url` | string or null | The VZN's document (PDF, else .docx). |
| `document_has_text` | boolean or null | The document has text to read; null without a document. |
| `amends`, `repeals` | list of strings | Numbers of the VZN this one amends or repeals (CSV: joined by „ | “). |
| `repeals_read_from` | string or null | `title` or `text`. |
| `replaces` | list of strings | `record_id`s the town links as replaced by this one. |
| `amended_by`, `repealed_by`, `replaced_by` | list of strings | `record_id`s of the posts that amend, repeal or replace this one. |
| `repealed_from` | date or null | The earliest day a repeal takes effect. |
| `source_url` | string | The VZN's page on senec.sk. |
| `posted`, `town_modified` | date | When the town posted it and last changed the post. |
| `last_update` | date | When this record last changed in this dataset. |

## License

Published by Som Senec under the Creative Commons Attribution 4.0 International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. You may use it for any purpose, commercial use included, if you credit "Som Senec, somsenec.sk". The source documents that each record links to keep their own terms.
