Skip to content

Fetching Rules

All rule retrieval goes through the /rules/{rule_id_path} endpoint; /raw returns the original publication instead. This page covers the full range of retrieval patterns.


Fetching a complete rule set

Omit the rule path after the rule set identifier to retrieve the full set as a single response. The rule set node itself is returned with all its rules.

GET /rules/BWBR0015703_2025-07-01_0

Note

Large rule sets can produce substantial responses. For most integration work you will want to target a specific rule or article rather than the full set.


Fetching a specific article

Add the article identifier after the rule set ID, separated by a comma:

GET /rules/BWBR0015703_2025-07-01_0%2C%20Artikel%2020

URL-encoding reference: , โ†’ %2C, space โ†’ %20.

The response is the rule set with the article as its only part, including all the article's sub-rules recursively.


Extend the path with additional comma-separated identifiers:

GET /rules/BWBR0015703_2025-07-01_0%2C%20Artikel%2020%2C%20lid%201%2C%20onderdeel%20a.

The path traversal is depth-first. Non-alphanumeric characters (spaces, periods, parentheses) are stripped from both the path identifier and the graph identifier before matching, so "onderdeel a." and "onderdeel a" match the same rule node.


Skipping intermediate identifiers

Intermediate levels can be omitted if there is no ambiguity. Both of the following reach the same rule:

/rules/BWBR0015703_2025-07-01_0%2C%20Artikel%2020%2C%20onderdeel%20a.
/rules/BWBR0015703_2025-07-01_0%2C%20Artikel%2020%2C%20lid%201%2C%20onderdeel%20a.

CVDR (municipal regulations)

Same pattern, with CVDR identifiers:

GET /rules/CVDR712517_1%2C%20Artikel%205
GET /rules/CVDR712517                        โ† current version
GET /rules/CVDR712517_2025-07-02_latest      โ† valid on date

EU CELLAR (European legislation)

GET /rules/CFMX483e4752e-f2e5-11e8-9982-01aa75ed71a1.0017.02_DOC_2%2C%20Artikel%201

Norms, organisations and DSO decision models

Norms from the IOU Norms API and an organisation from the Register van Overheidsorganisaties:

GET /rules/IOU-NORMS_BWBR0015703_2026-01-01_1?format=turtle
GET /rules/ROO.organisatiecode=gm1926_2026-01-01_1?format=turtle

An STTR decision model from the DSO needs your own DSO API key in the x-api-key header:

curl -H "x-api-key: <your DSO key>" "https://cprmv.open-regels.nl/rules/DSO_14_2026-01-01_1"

Without the key the answer is {"error": "'x-api-key'"}. See Publication Repositories for what each source returns.


Downloading the original publication

/raw takes the rule set id and returns the publication as published, as a file โ€” for BWB the toestand XML:

GET /raw/BWBR0015703_2025-07-01_0

A rule path after the id is ignored. See API Endpoints.


Choosing an output format

Append ?format=turtle (or any supported format value) to change serialisation:

GET /rules/BWBR0015703_2025-07-01_0%2C%20Artikel%2020?format=turtle
GET /rules/BWBR0015703_2025-07-01_0%2C%20Artikel%2020?format=json-ld

See Output Formats for the full list.


Using a custom path delimiter

If a rule identifier contains a comma, override the delimiter with path_delimiter:

GET /rules/BWBR0015703_2025-07-01_0|Artikel%2020?path_delimiter=%7C

Extracting structured values with unformat

When a rule definition contains a parseable pattern, unformat extracts named fields directly:

GET /rules/BWBR0015703_2025-07-01_0%2C%20Artikel%2020%2C%20lid%201%2C%20onderdeel%20a.
    ?unformat=%7Bsituatie%3Aparam_value%7D%3A%20%E2%82%AC%20%7Bnorm%3Aparam_value%7D

Decoded unformat pattern: {situatie:param_value}: โ‚ฌ {norm:param_value}

The response adds the extracted situatie and norm fields to the selected rule, alongside its full rule data. This works in every output format.

See Definition Extraction for more examples.