Giter VIP home page Giter VIP logo

plant-brapi-etl-data-lookup-gnpis's Introduction

Elixir plant Breeding API JSON ETL

  • Extract BrAPI endpoint.
  • Transform extracted data (into Elasticsearch bulk json, into JSON-LD, into RDF)
  • Load JSON into Elasticsearch or RDF into a virtuoso

I. Execution

From linux binary distribution

You can find a binary distribution of the ETL package in dist/plant-brapi-etl-data-lookup-gnpis.tar.gz.

First you will need to extract the archive:

$ tar xzf plant-brapi-etl-data-lookup-gnpis.tar.gz

And then you can simply call the main program:

$ ./etl/main

From source code

Requirements:

  • Python version 3.6.x
  • Python dependencies (pip install -r requirements.txt)

The main.py script can be used to launch the full BrAPI to elasticsearch or BrAPI to virtuoso ETL. To get the usage help run the following command:

$ python3 main.py

II. Configuration

ETL process configurations

The configurations for the ETL process is defined in the ./config folder.

Data sources

The BrAPI data source are described in the ./sources folder in JSON-LD format using the schema.org vocabulary. You can add data sources in this folder using one of the other data source as an example.

Here is an example of data source description:

{
  "@context": {
    "schema": "http://schema.org/",
    "brapi": "https://brapi.org/rdf/"
  },
  "@type": "schema:DataCatalog",
  "@id": "http://pippa.psb.ugent.be",
  "schema:identifier": "VIB",
  "schema:name": "VIB PIPPA",
  "brapi:endpointUrl": "https://pippa.psb.ugent.be/pippa_experiments/brapi/v1/"
} 

The @id field contains the URI identifying the data source (we use the URL of the official web site for convinience), the schema:identifier contains a short identifier for this data source, the schema:name contains the display name and brapi:endpoint contains the URL of the BrAPI endpoint.

The BrAPI endpoint must implement the required calls (also listed in ./config/extract-brapi.json):

  • /brapi/v1/studies-search (in GET or POST)
  • /brapi/v1/studies/{id}
  • /brapi/v1/studies/{id}/germplasm

See README-elasticsearch.md for specific details on BrAPI to elasticsearch ETL.

See README-virtuoso.md for specific details on BrAPI to virtuoso ETL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.