Collaboration with Wikipedia

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages
Deutsch English русский

Wikipedia the free encyclopaedia, has been an inspiration for many design aspects of OpenStreetMap, but it also offers a lot of scope for cross-project collaboration.

  • There is obvious immediate potential for illustrating Wikipedia articles with rendered maps (This is the main area to focus on)
  • We already link from OSM wiki to Wikipedia
  • There is already a certain amount of linking from Wikipedia to OSM
  • We could also link to Wikipedia articles from within the OSM map data
  • There is an article about OpenStreetMap on Wikipedia

2009 starts the OpenStreetMap-Wikimedia cooperation. 1 server was installed with OSM stuff inside wikimedia cluster (toolserver). Most active is the mailing list maps-l and Toolserver-Wiki .

Why collaborate?

OpenStreetMap stands to benefit. We increase awareness and drive user traffic to OSM. Ultimately we want people to use OpenStreetMap, but at this stage we are particularly interested in attracting more mappers and more developers.

Wikipedia stands to benefit. Linking to street maps is all very well, but a lot of articles about places can be enhanced by having map images embedded alongside the text. OpenStreetMap is the best way to do this, while still presenting only open licensed content on the page -- in fact, it's almost the only way.

Wikipedia WikiProject

There is an (inactive) WikiProject page on Wikipedia which should provide guidance to Wikipedians on how to create map images for use in wikipedia articles. Hopefully this process will be easy enough to be followed for many wikipedia articles.

That page also describes a number of useful templates within WikiPedia, e.g. for labelling OpenStreetMap map images, and also categories that relate to OpenStreetMap.

Note the project page is in addition to the actual Wikipedia article about OpenStreetMap.

Illustrating Wikipedia articles with rendered maps

This is the main area where there's lots of obvious potential. We should get onto Wikipedia and upload images to illustrate some of the articles describing places.

Wikipedians will take offense if we plaster lots of low quality images on there. Obviously we need to pick only areas where we have achieved a good level of mapping coverage, and where the rendering comes out well to produced maps which are actually useful. Note that we can upload quite large images, but it is preferred that an image looks good and is useful in its thumbnailed form, appearing on the article page itself. For maps this might mean the street name text should be readable in the thumbnail. That is actually quite a tricky restriction to work with (pick zoom level and thumbnail size carefully)

The image description page for any such image, must attribute the image to OpenStreetMap and link to our copyright page. This is also a good place to provide good links to openstreetmap. See #Linking from Wikipedia to OSM below.

Attribution requirement

Map images from OSM are covered by the OpenStreetMap License, and so require attribution. More general details can be found on the Legal FAQ.

Technical enhancement to Wikipedia

Wikipedia supports image uploads already, so we should get stuck in and start using this to illustrate articles, but as a future possibility, wikipedia could support a more intelligent embedded map feature powered by OpenStreetMap. We have several MediaWiki extensions available to download. The Simple image MediaWiki Extension, pointed via the wikimedia squid proxies, would be a reasonable recommendation.

Obviously these things need careful assessment by wikipedia people before they roll them out across wikipedia. Tim Starling, lead mediawiki developer and wikipedia administrator, saw a talk by User:Steve and was enthusiastic about these possibilities. That was before the MediaWiki extensions were developed, but also before WikiMiniAtlas came along.

OSM-integration

At the German Wikipedia and others (no.wp, fr.wp and ru.wp) it is now possible for everyone to open an OSM iframe in each article which have a coordinate. See: Wikipedia:Help:OpenStreetMap and follow the mailing list maps-l mailing list. This feature shows Wikipedia articles on the OSM map. This data comes from Wikipedia-World-Project and you can use this map also as standalone WP-on-OSM map.

WIWOSM

WIWOSM is a project to show for a wikipedia article geometric objects from OSM by using Key:wikipedia.

Geohack for OSM

With Geohack for OSM we link to many OSM-maps for one place. This page is accessible from Wikipedia over the normal geohack and over the OSM-Wiki.

Query-to- map

See Query-to-map. The next step would be the inclusion of an openlayers element with special paths into the mediawiki.

Quick links to OSM

See quick links to Google Maps, Yandex Maps and OpenStreetMap from Template:Coord in Russian Wikipedia.

Wikipedia-articles in the map

Wikipedia-articles in the map

OpenSeaMap links worldwide 1.7 mio. Wikipedia-articles directly in the map. Concerning to the browser options, articles will be displayed automatic in the corresponding language and writing system. Actually there are 285 languages. Optionally the articles can also be displayed as photo gallery (ichoose in the menue "Display" the display as "Thumbnails"). By mouse over you will get a popup with the title of the article and a informative picture. By click you jump directly to the corresponding Wikipedia-article.

Link from OSM wiki to Wikipedia

We already do this on many of our Places pages (pages linked from the Mapping projects page).

Many of them using Template:Place, which includes a Wikipedia link. In other cases we should just add a link in the text.

Use [[wikipedia:article]] or [[wikipedia:lang:article]] syntax to add a Wikipedia link in OSM wiki.

Linking from Wikipedia to OSM

The best place to link from Wikipedia to OSM is on image description pages for the map images we upload there. It's a good idea to link to the map, with a 'permalink' pointing at the relevant place on the map (URL with lat/lon/zoom)

The image description page must link to www.openstreetmap.org/copyright.

To simplify setting up image descriptions there are various templates which you might like to use. See wikipedia:Wikipedia:WikiProject OpenStreetMap#Templates

sl.wikipedia has some templates set up too : List of streets in Ljubljana (using a template)

Some wikipedia articles, like rivers and long streets, may be enhanced by linking to the OSM object, for example wikipedia:Jukskei River.

The French and English wikipedias (and many others) now include a "coord" template inserted in the article (with the geographic coordinates and a suitable zoom parameter) that allows displaying links showing coordinates at the top of the article page. One of this link will bring you to a generic page allowing you to search the location on various mapping services (including OpenStreetmap), and another link showing a slippy map (rendered on Wikimedia tile servers) within a closable panel appearing directly on top of the article itself. Many articles now include the call to the "coord" template (usually inserted at the top, or preferably ar the bottom of the article). Other templates may be inserted to show other coordinates for other more specific locations discussed in the body of the article, that will link to the generic page for choosing your online mapping service.

Logged on users on Wikipedia may also configure their account to avoid the generic selection page and display directly the map on the mapping service of their choice (there are plugins available for this that uers may activate in their own Wikipedia account preferences), or create their own personal extension (using javascript stored in their own personal subpages, and named according to their selected skin (such as "Special:Userpage/Vector.js" or "Special:Userpage/Monobook.js").

Link to Wikipedia articles from within the OSM map data

We can link features of the map (especially "Place" nodes) to Wikipedia articles.

See Key:wikipedia.

How these links might be rendered/used, is a something people can decide on their own external projects/websites. The obvious use would be 'pins' with links on a Slippy Map. For Wikipedia it would be interesting to draw the real OSM-objects (that were linked to Wikipedia-article) in a map inside the Wikipedia-article.

Other usages will be translations by using Wikipedia Interwikilinks or to exchange other data.

A tool to create such links is JOSM/Plugins/RemoteControl/Add-tags.

You can also link to Wikimedia Commons, the free media repository, using media:commons.

Using pictures from Wikipedia for tag description/Map_Features

Auto importing of images from Wikimedia commons is now enabled on this wiki. If you enter an [[Image:xxxxx]] reference matching the name of any image in wikimedia's "commons" repository, then it gets used within the wiki complete with remote image description details. You can use pictures from Wikipedia if the license is Public Domain or CC-BY as well as CC-BY-SA. Simply reference the name of an image if it is in commons. Other images can be uploaded explicitly, but you must copy the license text and the original author's name onto our wiki image description page. A link to the original picture is also required.

Note: The license of the OSM-Wiki is CC-BY-SA, and we have more strict community acceptance criteria regarding map images. You are NOT allowed to use pictures with GNU-License like GFDL or GPL. In this case you can contact the author and ask if he wants to make his picture available in CC-BY-SA for osm. You should probably not use any map image from wikimedia, even where they are pronounced cc-by-sa on wikipedia, because this community applies more strict criteria regarding derivative works.

Importing geodata from Wikipedia

Wikipedia articles are often geocoded, and it has been suggested a number of times that we should import data from wikipedia (for example, using the pages on villages in a particular country to add place=village nodes). However, it is believed that a proportion of wikipedia's coordinate data is derived from Google Maps, and so isn't actually available under the stated license. For this reason, it is an established principle in OpenStreetMap that we don't import geodata from wikipedia.

There seems a high potential to use the interwikilinks of Wikipedia to translate geographical objects in different languages. Also other data like the population of a city could be check with help of Wikipedia. For such a usage there should be no legal problems.

Data checking

Find malformed or not found wikipedia tags

The rule is that the value of a wikipedia=* tag must not be a full URL (starting by http:// or https://), it must not contain the domain name and leading path (/wiki/), and it must not be URL-encoded (it should not contain any underscore, or UTF-8 encoded bytes represented by %nn hexadecimal values).

It must be prefixed by a language code (the supported codes are those used on Wikipedia for its interwiki links, and in a few remaining cases this code does not match a standard BCP47 language code used as suffixes for tags like name:*=* : not all possible language supported in BCP47 are supported for Wikipedia linguistic edition codes, because there's currently no defined Wikipedia edition for that language). Many (but not all) of these Wikiepdia language codes are 2 or 3 lowercase ASCII letters. The language code must be followed by a colon (:) and then by the actual name of the article, without substitution of spaces as underscores (don't copy the final part of the URL, use the effective name of the article page, normally shown at the top of the rendered page (sometimes, for technical reasons, the effective article name is different from the title displayed because the article name cannot contain a few reserved characters, and the title displayed has been replaced by a special template to change the displayed title ; these cases are extremely exceptional on Wikipedia and are usually signaled by a small notice below the display titled).

If the article is on the English edition of Wikipedia, use the "en:" language prefix explicitly before the article name (often the article may be found on English Wikipedia with the supplied name, but there's no warranty that it will match the actual location, as the language code may have been forgotten and could bring to a desambiguation page at best, or to an article speaking about a location elsewhere in the world with the same name).

The value may also supply an optional anchor pointing to a location within the article page, by appending an hash character (#) followed by the effective title of a section heading (here also there must be no underscores - use regular spaces instead -, and the heading must not be anchor-encoded). Alternatively, you may also specify an anchor matching the value of an HTML id attribute (in that case use the identifier as it is encoded within the article rendered in HTML): this may be useful if there are several identical subheadings in a long Wikipedia article (in the Wikipedia article, make sure this supplied id is readable, unique within the rendered page, and that it does not contain any space or underscore ; these additional anchor identifiers should preferably only contain letters, digits, and punctuations).

Toolserver activities

The rules on http://toolserver.org are now so that OpenStreetMap- developer have the same rights like developer for Wikimedia projects[1]. So every developer is very welcome to request an account. There is also a list of projects on toolsever.

Warning: The maintainers of Toolserver and the Wikimedia Foundation have recently announced (in December 2012) that Toolserver will stop running no later than June 2014 (due to the reduction of budgets to support and maintain its infrastructure); the most important services currently hosted on Toolserver should be replaced in 2014 by equivalent services hosted by Wikimedia Labs. The migration of essential and stable services from Toolserver to Wikimedia Labs has now started (but not all services on Toolserver will survive, except possibly for development or experimental projects not needing a live computing and networking infrastructure). See the announcement and discussions on Wikimedia Meta: Future of Toolserver. As a consequence, it is no longer possible to request a new user account on Toolserver (except possibly to help the migration of existing services).

Identifying users

  • To identify yourself as an OSM editor on Wikipedia, place {{User OSM}} on your Wikipedia user page.
  • To identify yourself as a Wikipedia editor on OSM, place {{Wikipedia user}} on your OSM wiki user page, with the Wikipedia's language and your Wikipedia username, thus: {{Wikipedia user|en|Pigsonthewing}}.
  • To find other Wikipedia editors on this OSM wiki, see Category:Wikipedians.

See also