GithubHelp home page GithubHelp logo

isabella232 / incubator-sdap-edge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/sdap-edge

0.0 0.0 0.0 210 KB

Mirror of Apache sdap (Incubating)

License: Apache License 2.0

Shell 0.08% Python 79.35% TSQL 20.57%

incubator-sdap-edge's Introduction

The Extensible Data Gateway Environment (EDGE)

The Extensible Data Gateway Environment (EDGE) is a data integration platform designed to facilitate high-performance geospatial data discovery and access with the ability to support multimetadata standard specifications. EDGE is designed with two main building blocks: data aggregation service and enterprise geospatial indexed search cluster. The data aggregation service provides web service interfaces for searches, metadata packaging, and data access. Aggregation often involves retrieving data from two or more sources and packaging the resulting sets into a single response to the requestor. It could also serve as a proxy to other local/remote services to reduce the number of interfaces a requestor has to access. The enterprise geospatial indexed search cluster, which currently supports Apache Solr and ElasticSearch, is a horizontal scale cluster for faceted search with geospatial support.

Setup

  1. Setup and activate a conda environment

    conda create --name edge python
    source activate edge
    
  2. Install dependencies

    pip3 install -r requirements.txt
    
  3. Update pythonpath

    source edge-env.bash
    
  4. Launch EDGE service

    python3 server.py
    

Adding Custom Plugin

You will need to customize EDGE to work with your existing Apache Solr or ElasticSearch metadata endpoints.

ElasticSearch

For an ElasticSearch example plugin, see plugins/example/elastic

  1. Copy the plugins/example/elastic plugin into a new directory, for example, plugins/myproject/elastic.

  2. Update plugin.conf datasetUrl to point to an ElasticSarch index endpoint.

  3. Update template.xml to modify the response XML. Metadata values for each document returned are stored in the doc variable dictionary, for example, doc['ShortName'].

    To handle additional search parameters, update plugin.conf parameters to include additional parameters, for example,

    parameters=keyword,bbox,startTime,endTime
    

    Update Writer.py to handle these additional parameters by modifying the resulting query sent to ElasticSearch endpoint.

  4. Update server.py to add a new endpoint that will invoke the newly created plugin, for example,

    (r"/myplugin/es", GenericHandler, dict(pluginName='myplugin', format=['elastic'])),
    
  5. Restart EDGE and access the new endpoint at http://localhost:8890/myplugin/es.

incubator-sdap-edge's People

Contributors

lewismc avatar echyam avatar mayadebellis avatar fgreg 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.