The redirection layer for the linked-data-demo project for plants. It is an intermediate layer for enabling communication between the server hosting the linked data demo website and the server where the data is hosted.
- Create a folder named
LDD_middle_layerunder/var/www/, and move the contents of this folder there. - Copy
LDD_middle_layer.confto/etc/apache2/sites-available/. - Make sure
flaskis installed. This runs on Python 2.7. - Register the wsgi:
sudo a2ensite LDD_middle_layer. If this leads to server crash, de-register it withsudo a2dissite LDD_middle_layer. - Reload Apache:
sudo service apache2 reload - Test site: https://www.plantbreeding.wur.nl/ld-demonstrator/
Likely to need modification:
-
ServerNamein/etc/apache2/sites-available/LDD_middle_layer.conf. This is the hostname where the query is submitted. It is assumed that this isplantbreeding.wur.nl, which should also be in the hosts file. Multiple ServerNames can be declared, each on a separate line. -
line 12 in
__init__.py:base_sparql_url = 'http://snowball:9999/blazegraph/namespace/ldd-demo/sparql'indicating the address of the machine hosting Blazegraph.