A source code for loading semantic annotations into a property database and performing semantic queries.
...
README Contents
- Prerequisites
- Data Description
- Purpose of the Python Scripts
- [Loading data](#Loading Data in the Graph Database)
- [Semantic Queries](#Performing Semantic Queries)
- [Special thanks](#Special thanks)
- Development
- Acknowledgments
-
A Neo4j database and a user with the appropriate permissions have been created. The database version used is 5.24. You also need to install the following plugin: APOC (5.24.2).
-
Some Python scripts use the QGIS API and therefore need to be run in the QGIS Python console.
Multiple datasets are required to load the database.
1/ Version 2.0 of the Ontology of LandmaRks, provided in the file oor_v2_0_0.owl in the data directory, with its updates referenced in the GitHub repository: https://github.com/umrlastig/landmark-ontology
2/ The Landmarks are separated according to their representations: POIs and topographic features.
- The 5 CSV files containing the POIs are extracted from the dataset
published on Zenodo.
- The 5 shapefiles containing the topographic features come from the BDTOPO dataset (https://geoservices.ign.fr/bdtopo)
3/ The dataset of semantic annotations and routes is deposited on the open data repository Zenodo: .
-
The 13 routes, derived from diverse collaborative sources, are stored in the file routes.csv. The geometries of the routes were map-matched to the BDTOPO road network representing the mobility network and are stored in the mobilite layer of the GeoPackage. The map-matching process is described in: https://doi.org/10.1080/23729333.2019.1615730.
-
The semantic annotations of the routes are also stored in the GeoPackage in the following layers:
-
pii_balcons for route segments running along balconies,
-
pii_lacet for route segments consisting of a series of hairpin bends,
-
pii_foret for segments running along or through forests,
-
pii_lac for route segments running along lakes,
-
pii_pont for segments crossing bridges.
-
The first three scripts can be run in a standard Python console, whereas the following ones must be run in the QGIS Python console. For all scripts, you only need to update the data file paths in the script and the database connection parameters.
-
1_ontoloy.py: loads the landmark ontology into the database.
-
2_route.py: loads the routes, including their titles and data sources.
-
3_objrepere.py: loads the POIs.
-
4_objgeo.py: loads the topographic features.
Ce travail a été publié dans ce rapport technique:
License: MIT LICENSE
Institute: LASTIG, Univ Gustave Eiffel, Geodata-Paris, IGN
Authors: Marie-Dominique Van Damme
This work was supported by the ANR research project IntForOut: Multisource spatial data INTegration FOR the Monitoring of Ecosystems under the pressure of OUTdoor recreation (ANR-23-CE55-0003).