Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.43 KB

File metadata and controls

38 lines (24 loc) · 1.43 KB

notebook_shape2geosparql

A notebook on the usage of shape2geosparql with a few examples.

Quick start

You need three libraries in order to use this notebook:

  • Python 3 (download page here here);
  • GDAL (installation instructions here);
  • Fuseki GeoSPARQL server (latest downloadable JAR here).

Once you have Python 3 and GDAL installed, run the following:

$ git clone https://github.com/nvitucci/notebook_shape2geosparql
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

If the GDAL bindings cannot be installed, try running $ pip install gdal==<VERSION> where VERSION is the version of GDAL you installed on your system.

When all the packages are installed, run jupyter notebook and navigate to the notebook file. In a separate shell, run the Fuseki GeoSPARQL server as follows:

$ java -jar jena-fuseki-geosparql-3.14.0.jar -u

Data

The data have been downloaded from the Open Data Trentino portal:

The shapefiles have been included in this repository for convenience.