Open Raadsinformatie (ORI) aims to collect and standardize governmental decision making documents of Dutch municipalities (gemeenten, provincies, waterschappen). Open Raadsinformatie is a collaborative effort of the Open State Foundation, Ontola and VNG Realisatie.
- Docs for API
- Search engine
- Open Raadsinformatie homepage
- Official source code repository
- Issue tracker
See this guide to install the Open Raadsinformatie API using Docker, Vagrant or manually. There are also a few usage commands to get you started. Check out the maintenance guide for info on how to manage this project in production.
Latest docker version uses "-" as separator when creating container names instead of "_". You can still get the old functionality by adding "--compatibility" to docker compose. So when using the latest Docker in development, use the following to start the containers:
docker compose --compatibility -f docker-compose.yml -f docker-compose.dev.yml up --build -d
The Nginx container was installed separately in production. To mimic this in development, clone https://github.com/openstate/nginx-load-balancer/
, follow the instructions in INSTALL.txt
and start the container with docker compose --compatibility up -d
The log file was made persistent and is located in Docker volume ori_oridata
. To prevent this file from growing
indefinitely, add the following to /etc/logrotate.d/orilog
:
/var/lib/docker/volumes/ori_oridata/_data/ori.log
{
rotate 30
daily
maxsize 100M
missingok
notifempty
compress
delaycompress
copytruncate
}
In development Flower provides insight in the queues of Celery. You can access the Flower dashboard via http://localhost:81/workers
.
The following commands build and start the Docker containers, empty the PostgreSQL and Redis databases and Elastic Search index
for a fresh start and then import a municipality for a certain date range.
Change the start_date
, end_date
and source_path
as desired.
- docker compose --compatibility -f docker-compose.yml -f docker-compose.dev.yml up --build -d
- docker exec ori_backend_1 bin/purge_dbs.sh
- docker exec ori_redis_1 redis-cli -n 1 set _all.start_date "2025-01-14"
- docker exec ori_redis_1 redis-cli -n 1 set _all.end_date "2025-01-15"
- docker exec ori_backend_1 ./manage.py extract load_redis 'all daily monthly'
- docker exec ori_backend_1 ./manage.py extract process all --source_path=ori.notubiz.haarlem
The next lines were copied from the Github workflow (which never actually ran):
docker compose --compatibility -f docker-compose.yml -f docker-compose.test.yml up --build -d
docker exec ori_backend_1 bin/run_tests.sh 2>&1
docker exec ori_backend_1 pylint ocd_backend -E -sy
See script manual_retrieval.py (WIP) See also the Troubleshooting section in the maintenance_guide.
To get data from iBabs in development you need to use a proxy:
- edit
/etc/hosts
and add a line linking your IP address tohost.docker.internal
, e.g.:192.168.121.174 host.docker.internal
- start proxy with
ssh -gD 8090 wolf
PROXY_HOST
andPROXY_PORT
are always set in development (docker-compose-dev.yml
)
Data extraction support is available for the following source systems:
Get in touch with Sander Bakker from VNG Realisatie. Your griffie (municipality clerk) needs to formally agree that the data becomes open data, and the source system might need some configuration.
- openbesluitvorming, the new search interface.
Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.
Have a bug or a feature request? Please first read through and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.
The Open Raadsinformatie API was originally based on the Open Cultuur Data API.
Authors and contributors of both projects are:
- Bart de Goede (@bartdegoede)
- Justin van Wees (@justin_v_w)
- Breyten Ernsting (@breyten)
- Sicco van Sas (@siccovansas)
- Jurrian Tromp (@jurrian, @ontola)
- Jorrit van Belzen (@jorritb, @ontola)
- Joep Meindertsma (@joepio)
- Rob van Dijk (@robvandijk)
Contributors:
The Open Raadsinformatie project is distributed under the MIT license.