Skip to content

ngachung/incubator-sdap-edge

 
 

Repository files navigation

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.

About

Mirror of Apache sdap (Incubating)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%