Informasjonsforvaltning / fdk-reasoning-service

Apache License 2.0
0 stars 1 forks source link

fdk-reasoning-service

A service that extends and enriches graphs of harvested resources, before other parts of FDK handles the data.

Develop and run locally

Requirements

Run tests

mvn verify

Run locally

docker-compose

docker-compose up -d rabbitmq
docker-compose up -d mongodb
mvn spring-boot:run -Dspring-boot.run.arguments="--spring.profiles.active=develop"

In another terminal:

docker-compose up -d

Alternatively run only one of the harvesters, e.g.

docker-compose up -d {relevant-harvester}

When reasoning is completed send request (log message contains "Successfully sent reasoning completed message for {CATALOG-TYPE}")

curl http://localhost:8080/{catalog-type}

Example - Datasets

docker-compose up -d rabbitmq
docker-compose up -d mongodb
mvn spring-boot:run -Dspring-boot.run.arguments="--spring.profiles.active=develop"

In a seperate terminal

docker-compose up -d dataset-harvester

Wait for successful reasoning, then run

curl http://localhost:8080/datasets