Giter Club home page Giter Club logo

rrapp-idx's Introduction

RRAPP-IDX

This application reads taxonomic and occurrence data from ElasticSearch as indexed by dwc-bot-es and index analysis such as Extent of Occurrences, Area of Occupancy and others to provide a Extinction Risk Assessment as defined by IUCN methodology criterion B.

Running

Manual

First, start your ElasticSearch 5.0.

Then run the dwc-bot-es.

After dwc-bot-es has indexed the needed data, run this bot.

Run with Docker

Run the docker container

$ docker run -d -volume /etc/biodiv:/etc/biodiv:ro diogok/rrapp-idx

Run the JAR

Download the latest jar from the realases page and run it:

$ java -server -jar rrapp-idx.jar

Configuration

It will look for a configuration file on /etc/biodiv/config.ini or at the file defined by CONFIG environment variable.

The configuration file looks like the following:

ELASTICSEARCH=http://localhost:9200
INDEX=dwc
SOURCE=lista_especies_flora_brasil
LOOP=false

ElasticSearch tells to which elasticsearch server to connect. INDEX tells which ElasticSearch index to use. SOURCE define which checklist use from the Resources indexed. LOOP defines if the rrapp-idx should run in loop(true) or only once(false).

You can set the configuration override to use with environment variables, such as:

$ CONFIG=/etc/biodiv/dwc.ini ELASTICSEARCH=http://localhost:9200 INDEX=dwc java -jar rrapp-idx.jar

Or all options combined:

$ LOOP=true ELASTICSEARCH=http://localhost:9200 INDEX=dwc java -jar rrapp-idx.jar

If not running on a system with environment variables you can also set them using java properties, as such:

$ java -jar -DLOOP=true -DCONFIG=/etc/biodiv/config.ini -DELASTICSEARCH=http://localhost:9200 -DINDEX=dwc rrapp-idx.jar

License

MIT

rrapp-idx's People

Contributors

diogok avatar

Watchers

 avatar  avatar

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.