/register-ingester-dk

Register Ingester DK is an application designed for use with beneficial ownership data from Denmark's Central Business Register published by the Danish Business Authority

Primary LanguageRubyApache License 2.0Apache-2.0

Register Ingester DK

Register Ingester DK is a data ingester for the OpenOwnership Register project. It processes bulk data published in the Central Business Register published by the Danish Business Authority in Denmark, and ingests records into Elasticsearch. Optionally, it can also publish new records to AWS Kinesis. It uses raw records only, and doesn't do any conversion into the Beneficial Ownership Data Standard (BODS) format.

Installation

Install and boot Register.

Configure your environment using the example file:

cp .env.example .env
  • DK_CVR_PASSWORD: DK Elasticsearch source password
  • DK_CVR_USERNAME: DK Elasticsearch source username
  • DK_STREAM: AWS Kinesis stream to which to publish new records (optional)

Create the Elasticsearch indexes:

docker compose run ingester-dk create-indexes

Testing

Run the tests:

docker compose run ingester-dk test

Usage

To ingest the bulk data:

docker compose run ingester-dk ingest-bulk