Wikidata:WikidataCon 2017/Notes/Maps in wiki by interlinking Wikidata and OpenStreetMap

From Wikidata
Jump to navigation Jump to search

Title: Maps in wiki by interlinking Wikidata and OpenStreetMap

Note-taker(s): Andy Mabbett, ...

Speaker(s)[edit]

Name or username: Arun Ganesh

Contact (email, Twitter, etc.): User:Planemad

Useful links

https://www.mediawiki.org/wiki/User:Planemad/Kartographer_maps_workshop

SPARQL Basic https://etherpad.wikimedia.org/p/WikidataCon-Query_Wikidata_-_Basics_Workshop

SPARQL Advanced https://etherpad.wikimedia.org/p/WikidataCon-34

https://wiki.openstreetmap.org/wiki/Wikidata

"OpenStreetMap - what is it and what does it mean for Wikimedians?" (2014 pesentation) - https://www.youtube.com/watch?v=D5GKyKujsnM

https://maps.wikimedia.org

comparation: https://mvexel.github.io/thenandnow/

OpenStreetMap tag or key (P1282) - https://www.wikidata.org/wiki/Property:P1282

Abstract[edit]

Abstract: Wikidata (the structured knowledge base) and OpenStreetMap (free and editable map of the world) forms a powerful combination when interlinked with each other. Like Wikidata, OpenStreetMap has an active worldwide community and receives large number of contributions every day. There are more than 700K Wikidata tags already tagged in OSM and are being enriched everyday.

This integration can power interactive maps on wikipedia and unlocks a wide range possibilities such as pulling in additional important properties of a feature, available translations from Wikidata on to the map. Check out these examples showcased where

  1. the map which fetches all translations available for country labels from wikidata onto a map made with OpenStreetMap data in real time.
  2. map shows how geocoder can be combined with a couple of SPARQL queries to display locations’ population, official websites, seals, and even some related movies.

A workshop on interlinking wikidata and OSM would be valuable in,

  1. Increasing the number of embedded maps in Wiki articles
  2. Driving more contributors to the OpenStreetMap project for better free maps for Wikipedia
  3. Getting enriched data from Wikidata onto to the map.
  4. Evaluating quality issues in Wikidata by validating against OpenStreetMap.
  5. Driving more cross-collaborative projects between Wikimedia and OpenStreetMap

Collaborative notes of the session[edit]

Why

You can edit OSM! USe the "ID" editor in-browser (or JOSM as a standalone tool)

OSM has a wiki for documentation

in OSM there are unique IDs for point, ways ect but these tend to change

there is a "relation" in OSM, which an be referred to in Wiidata using property P402

Kartographer MediaWiki extension

Avaialable in:

Wikivoyage

Catalan Wikipedia: https://ca.wikipedia.org/wiki/Pedraforca and https://ca.wikipedia.org/wiki/Passeig_de_Gr%C3%A0cia

Finnish Wikipedia Wiki Loves Monuments lists with Listeria, using also Commons shapes https://fi.wikipedia.org/wiki/Wikiprojekti:Wiki_Loves_Monuments/Uusimaa

...

other MediaWiki instalations with the extension

Use OSM tags ilke artist:wikidata=, brand:wikidata= etc. for things with no 1:1 relation to Wikidata

Find OSM railway=station without wikidata tag http://overpass-turbo.eu/s/sFA

SPARQL

Geoshapes in a map https://twitter.com/generalising/status/924635728721645571

https://wiki.openstreetmap.org/wiki/SPARQL_examples

https://wiki.openstreetmap.org/wiki/Wikidata%2BOSM_SPARQL_query_service

Questions / Answers[edit]

  • http://mapwarper.net/ - allows to georeference map images so that you can use it as OSM overlay for mapping.

For all maps on Commons you may use a Wikimedia instance of MapWarper

  • In Commons, navigate to a map image
  • Check that it has a Map template or change the information template to a Map template by replacing "Information" with "Map". Works in most cases :)
  • It will bring up a big blue button in the image metadata. By cicking on it, you can start warping the map in the Wikimaps Warper
  • Check out the https://meta.wikimedia.org/wiki/Wikimaps_User_Group