OSM-Wikidata Map Framework
OSM-Wikidata Map Framework | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Author: | User:Danysan | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
License: | GNU GPL (free of charge) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Platform: | Web | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Status: | Active | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Language: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Source code: | GitLab (primary)
GitHub (mirror) GitHub | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Programming languages: | Python, TypeScript, HTML, and CSS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Merge data from OpenStreetMap and Wikidata to map information about entities and points of interest |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Framework for creating interactive thematic maps that combine details about geographic features from OpenStreetMap and Wikidata and optionally associated entities.
Available back-ends
APIs updated minutely:
- Overpass API (OpenStreetMap & OpenHistoricalMap)
- Wikidata Query Service
- Overpass API + Wikidata Query Service
APIs updated weekly:
- QLever (OpenStreetMap & OpenHistoricalMap)
Updated manually:
- Custom vector tiles
- the only back-end that also allows to view data at low zoom
- initialized and updated semi-automatically with Apache Airflow, served through PMTiles
Example instances
Open Architect Map
architect.dsantini.it - Interactive map showing the architects who created buildings and structures.
Examples:
- World Trade Center (New York, USA)
- Porta Nuova (Milano, Italy)
- Shinjuku (Tokyo, Japan)
- Lujiazui (Shangai, China)
- Central (Hong Kong, China)
- San Francisco, USA
Used preset: architect
Open Artist Map
artist.dsantini.it - Interactive map showing the artists who created artworks and memorials.
Examples:
Used preset: artist
OSM-Wikidata Map
osmwd.dsantini.it - Map combining elements from OpenStreetMap and Wikidata.
Used preset: base
Open Burial Map
burial.dsantini.it - Interactive map that shows notable people in burial places.
Examples:
- Verano (Rome, Italy)
- Northern Cemetery (Stockholm, Sweden)Wikidata:WikiProject Northern Cemetery Stockholm Q252312
- Père-Lachaise (Paris, France)
- Arlington (Virginia, USA)
- San Isidro (Madrid, Spain)
- Staglieno (Genova, Italy)
Used preset: burial
Open Etymology Map
etymology.dsantini.it - Interactive map that shows the etymology of names of streets and points of interest.
Examples:
- Moers (Germany), with source statistics
- Moers (Germany), with gender statistics
- Moers (Germany), with type statistics
- San Francisco (USA), with occupation statistics
- San Francisco (USA), with birth century statistics
- San Francisco (USA), with death century statistics
Used preset: etymology
Wiki.NYC map
wikinyc.wmcloud.org - Instance dedicated to New York City, includes also details from WikiSpore.
Used presets: etymology
, burial
, artist
, green_spaces
Available presets
Each preset available to be used in the framework is specified in a JSON file in this folder. Each file must be a JSON object whose keys are documented in this file.
If you would like to have a new preset don't hesitate to open an issue (or pull request) on GitHub or GitLab.
architect
Displays the architects who created buildings and structures
Keys and properties used to find the associated entities which represent the architect/organization which designed the feature:
- architect:wikidata=*
- wikidata=* + P84 (architect)
- wikidata=* + P287 (designed by)
Elements from OSM that have only linked architects through wikidata=* are shown only if they also have one of the following tags:
See it in action on Open Architect Map
artist
Shows the artists who designed artworks and memorials.
Keys and properties used to find the associated entities which represent the artist(s) which realized the feature:
- artist:wikidata=*
- wikidata=* + P170 (creator)
- wikidata=* + P50 (author)
Elements from OSM that have only linked artist through wikidata=* are shown only if they also have one of these tags:
See it in action on Open Artist Map or Wiki.NYC map
base
Shows all geographic features with a link between OpenStreetMap and Wikidata, without filters or linked entities.
See it in action on OSM-Wikidata Map
brand
Shows the brand of shops and amenities.
Keys and properties used to find the associated entities which represent the brand(s) of the feature:
- brand:wikidata=*
- wikidata=* + P1716
Elements from OSM that have only linked brand through wikidata=* are shown only if they also have one of these tags:
burial
Displays details about burial places and notable people buried in them
Keys and properties used to find the associated entities which represent who is buried inside the feature:
- buried:wikidata=*
- subject:wikidata=*
- wikidata=* + P119 (place of burial)
Elements from OSM that have only buried people through subject:wikidata=* or wikidata=* are shown only if they also have one of the following tags:
Images of burial places are also obtained with P1442 (image of grave) on linked entities.
See it in action on Open Burial Map or Wiki.NYC map
etymology
Displays the etymology of names of streets and points of interest.
Keys and properties used to find the associated entities which represent what the feature is named after:
- name:etymology:wikidata=*
- subject:wikidata=*
- wikidata=* + P138 (named after)
- wikidata=* + P825 (dedicated to)
- wikidata=* + P547 (commemorates)
Elements from OSM that have only etymologies through subject:wikidata=* or wikidata=* are shown only if they also have the name=* key.
See it in action on Open Etymology Map or Wiki.NYC map
green_spaces
All green spaces from OpenStreetMap and Wikidata, without linked entities.
Elements from OSM are shown only if they include one of the following tags:
Entities from Wikidata are shown only if they are instance of (P31) one of the following classes or one of their immediate subclasses (P279):
- Q1107656 (garden)
- Q22652 (green space)
- Q22698 (park)
- Q22746 (urban park)
- Q16023747 (state park of the United States)
See it in action on Wiki.NYC map
holy_well_etymology
Displays the etymology of names of holy wells (see this video for some context).
Keys and properties used to find the associated entities which represent what the feature is named after:
- name:etymology:wikidata=*
- subject:wikidata=*
- wikidata=* + P138 (named after)
- wikidata=* + P825 (dedicated to)
- wikidata=* + P547 (commemorates)
Elements from OSM are shown only if they include the tag place_of_worship=holy_well.
Entities from Wikidata are shown only if they are instance of (P31) one of the following classes or one of their immediate subclasses (P279):
- Q1371047 (holy well)
- Q126443332 (Holy Well Semantic Concept)
holy_wells
All holy wells from OpenStreetMap and Wikidata, without linked entities (see this video for some context).
Elements from OSM are shown only if they include the tag place_of_worship=holy_well.
Entities from Wikidata are shown only if they are instance of (P31) one of the following classes or one of their immediate subclasses (P279):
- Q1371047 (holy well)
- Q126443332 (Holy Well Semantic Concept)
protected_areas
All protected areas from OpenStreetMap and Wikidata, without linked entities.
Elements from OSM are shown only if they include one of the following tags:
Entities from Wikidata are shown only if they are instance of (P31) one of the following classes or one of their immediate subclasses (P279):
Configuration
The types of geographic features and related entities to show are choosen by editing a configuration file and automatically handled by the framework.
The available configurations are documented in .env.example. Instantiation, configuration and Database initialization instructions can be found at this link.