Node service using the treeCG actor-init-ldes-client for harvesting Linked Data Event Streams containing data related to Design Museum Gent. These streams are transformed into fragments, containing the Linked Data of a single entity. This service transforms the eventstreams into fragments are then stored into a postgres database that acts as a backend for the museums' REST-API.
This service runs daily (at 23:00) - piping into the dmg-rest-api and dmg-resolver.
- node-service-eventstream-apihttps://github.com/StadGent/node_service_eventstream-api)
- eventstream-client
- Postgres DB
Make sure you have Node installed on your device.
npm install --save
add .env at top level containing the credentials to connect with PG. (we are running our instance on a Supabase)
BASE_URI="https://data.designmuseumgent.be/"
SUPABASE_KEY= *****
SUPABSASE_URL = *****
(if harvesting for the first time, make sure to use "harvest from start").
define which eventstream to harvest:
- objects
- agents
- archive
- concepts
- exhibitions
to run the service, use the following commands in the terminal.
node index.js