Loading repository data…
Loading repository data…
neveldo / repository
Data-Pesticides is a web application based on Silex PHP microframework that provides a full-featured data-visualization about pesticides concentrations in France.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Data-Pesticides is a web application based on Silex PHP microframework that provides a full-featured data-visualization about pesticides concentrations in France. The web application is available online : https://www.data-pesticides.fr. It has been created in response to a contest launched by the French ministry of ecology, energy and the sea.
### Installation :
All the data required by the application are already bundled within the package datasets/source.tar.gz.
java -server -Xmx4g -jar blazegraph.jar, and create a new namespace named 'datapesticides' (with the mode option set to 'quads'). That's all for the database part.app/config/config.php. Basically, you will need to update the host value with your own local host you have set in your webserver for running the application.install.sh in order to launch composer install, datasets imports and API warm up. It can take a while depending on your computer performanceIn order to import new datasets into the triplestore, you just have to run the command bin/console data-pesticides:load-dataset with the following argument depending on which kind of dataset you want to load :
--type=stations=xxx : pesticides|roles|departments|station_statements|station_statements_total, the type of dataset you want to import--file=/path/to/dataset.csv : The path to the dataset you want to import--year=xxxx : The year related to the dataset (only for station_statements and station_statements_total types)You can also launch the command without any parameter in order to enter into the interactive mode. You an take a look at the ìnstall.sh script in order to see some examples of commands.
In order to refresh all the data served by the API, you can run the following command :
bin/console data-pesticides:warmup-api
If you only want to refresh a particular API method, you can call it through your browser and add ?refresh at the end of the URL, for instance www.yourlocaldomain.com/api/data/getStations?refresh.
Copyright (C) 2017 Vincent Brouté
Data-pesticides is licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.