ATTX-project / provenance-service

ATTX Provenance service for exposing provenance related information.
1 stars 1 forks source link
graph-store provenance provenance-service

Provenance Service

Current directory contains:

VERSION: 0.2

Docker container

Using the Graph Manager Service Docker container:

The version number is specified in src/prov/app.py under version variable.

Overview

The Provenance Service registers provenance Document in the Graph Store either via the Message Broker or the REST API. Processing the provenance related information is done asyncronously.

Full information on how to run and work with the Provenance Service available at: https://attx-project.github.io/Service-Provenance.html

API Endpoints

The Graph Manager REST API has the following endpoints:

Develop

Requirements

  1. Python 2.7
  2. Gradle 3.0+ https://gradle.org/
  3. Pypi Ivy repository either a local one (see https://github.com/linkedin/pygradle/blob/master/docs/pivy-importer.md for more information) or you can deploy your own version using https://github.com/blankdots/ivy-pypi-repo

Building the Artifact with Gradle

Install gradle. The tasks available are listed below:

Run without Gradle

To run the server, please execute the following (preferably in a virtual environment):

pip install -r pinned.txt
python src/prov/provservice.py server
python src/prov/provservice.py queue
python src/prov/provservice.py consumer

For testing purposes the application requires a running Fuseki, RabbitMQ. Also the health endpoint provides information on running services the service has detected: http://localhost:7030/health

The Swagger definition lives here:swagger-provservice.yml.