Skip to content

service that transforms event-streams in fragments and stores them in a Postgres DB

License

Notifications You must be signed in to change notification settings

DesignMuseumGent/dmg-ldes-supabase

Repository files navigation

ldes-supabase

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.

dependencies

setup

Make sure you have Node installed on your device.

install dependencies

npm install --save

setup environment

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 = *****

set paramaters

set range

(if harvesting for the first time, make sure to use "harvest from start").

define event-stream

define which eventstream to harvest:

  • objects
  • agents
  • archive
  • concepts
  • exhibitions

run service

to run the service, use the following commands in the terminal.

node index.js

About

service that transforms event-streams in fragments and stores them in a Postgres DB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published