[Talk-gb-westmidlands] Mapping Wikipedia artciles

Andy Mabbett andy at pigsonthewing.org.uk
Fri Aug 15 20:11:26 UTC 2014


Hi folks,

I would like to propose a project for our group: that we make the West
Midlands the first county with all of its geotagged Wikipedia
articles, and their equivalent Wikidata entries, added to OSM.

To elaborate, where a building or other feature is the subject of an
article in Wikipedia, we should add two tags. For example, St Paul's
Church, in the Jewellery Quarter of Birmingham:

    http://www.openstreetmap.org/way/34349306

is the subject of:

   https://en.wikipedia.org/wiki/St_Paul%27s_Church,_Birmingham

and so I have already tagged it:

   wikipedia en:St Paul's Church, Birmingham

   wikidata=Q915614

The Wikipedia tag has the base language, "en" for English, and the
title of the article as it appears on the page.

The Wikidata tag has the "Q" value from the URL which appears as a
link in the left-hand column of the article, labelled "Wikidata item":

   https://www.wikidata.org/wiki/Q915614

There are also articles about that church in several other languages,
so we could tag it:

   wikipedia=en:St Paul's Church, Birmingham;ca:Església de Saint Paul
(Birmingham);pl:Kościół św. Pawła w Birmingham

etc., but that's redundant to the Wikidata link. (In truth, even the
en: link is redundant to that, but it's more human-friendly).


We need to think about how to tag things which appear as several,
joined, ways, like rivers or motorways. Best to start with simple, 1:1
relationships.


You can see local, geotagged Wikipedia articles on this map:

https://tools.wmflabs.org/wiwosm/osm-on-ol/kml-on-ol.php?la=en&uselang=en&lon=-1.865&lat=52.450&rang=50&map=1

or they could be listed programmatically, via API, if anyone feels
inclined to do that.


I'm in discussion elsewhere about automating some of this tagging,
globally, but there will still be a need for manual tagging where
there are ambiguities needing intelligent decision making. Running an
manual exercise on a county basis will give us some useful experience
on which to base scripting - I'm expecting a few queries, about "How
do I tag in this case".


The tags are documented at:

   http://wiki.openstreetmap.org/wiki/Key:wikipedia

   http://wiki.openstreetmap.org/wiki/Key:wikidata


What do you think? Any questions? Will you help?

-- 
Andy Mabbett
@pigsonthewing
http://pigsonthewing.org.uk



More information about the Talk-gb-westmidlands mailing list