Register Sources DK is a shared library for the OpenOwnership Register project. It is designed for use with the beneficial ownership data in the Central Business Register published by the Danish Business Authority in Denmark
The primary purposes of this library are:
- Providing typed objects for the JSON-line data. It makes use of the dry-types and dry-struct gems to specify the different object types allowed in the data returned.
- Persisting the DK records using Elasticsearch. This functionality includes creating a mapping for indexing the possible fields observed as well as functions for storage and retrieval.
Install and boot Register.
Configure your environment using the example file:
cp .env.example .env
Run the tests:
docker compose run sources-dk test