Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.55 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.55 KB

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