|author||Lewis John McGibbney <firstname.lastname@example.org>||Mon Dec 02 15:40:12 2019 -0800|
|committer||GitHub <email@example.com>||Mon Dec 02 15:40:12 2019 -0800|
Merge pull request #10 from lewismc/SDAP-214 SDAP-214 Simplify EDGE directory structure
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 and activate a conda environment
conda create --name edge python source activate edge
pip3 install -r requirements.txt
Launch EDGE service
You will need to customize EDGE to work with your existing Apache Solr or ElasticSearch metadata endpoints.
For an ElasticSearch example plugin, see
Copy the plugins/example/elastic plugin into a new directory, for example, plugins/myproject/elastic.
plugin.conf datasetUrl to point to an ElasticSarch index endpoint.
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,
Writer.py to handle these additional parameters by modifying the resulting query sent to ElasticSearch endpoint.
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'])),
Restart EDGE and access the new endpoint at http://localhost:8890/myplugin/es.