Wikidata

From OpenStreetMap Wiki
(Redirected from $1)
Jump to: navigation, search
Available languages — Wikidata
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Basa Sunda · Baso Minangkabau · bosanski · brezhoneg · català · čeština · corsu · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tagalog · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · भोजपुरी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · བོད་ཡིག · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ‎ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 中文(繁體)‎ · 吴语 · 粵語 · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް
Wikidata-logo-en.svg

Wikidata is a free knowledge base driven by a community and initiated by the Wikimedia Foundation. as well as providing a repository for linked, open data, it aims to support Wikipedia and its sibling projects (such as Wikivoyage) by providing a centralized database.

wikidata=*

Linking from OSM to Wikidata

In OpenStreetMap Wikidata entities can be linked on every kind of osm object using the wikidata key. An other way to link objects is by using Key:wikipedia. Tools like WIWOSM are supporting this way. With wikidata tag, data can be easily checked with the Wikidata+OSM SPARQL query service, which could show any discrepancies and errors.

Tools

wikidata=* IDs can be added by using:

Validation tools:

Note that in certain cases, wikidata=* should be used as a suffix of another key. For example, if you want to link an OSM shop to the Wikidata object of the brand, you can use brand:wikidata=*; a statue can be tagged artist:wikidata=* and subject:wikidata=*, etc.

Wikidata user scripts

Wikidata's "Overpass" user script adds, to a Wikidata item page, a map showing features tagged, in OSM, with the ID of that Wikidata item.

The "MapView" script displays an OSM-derived map on Wikidata item page with coordinates.

Linking from Wikidata to OSM

  • A way is to link from Wikidata entities to OpenStreetMap relations by using Property P402 (there is no method to link ways and nodes).
  • A list of all currently linked OSM relations can be found here: Special:WhatLinksHere/Property:P402.
  • This may be problematic, since OSM's IDs are not stable

OSM Tags and Keys

For a list of OSM tags' and keys' equivalent items in Wikidata, see Property:P1282.

Reuse

Wikipedia etc

Wikimedia Foundation projects, including each language's Wikipedia, are now displaying maps using OSM data. If an entity in OSM has been tagged with a Wikidata ID, its outline can be highlighted on the map. At the moment, there is no POI support. Only shapes and lines can be shown this way. See [1].

Umap

http://umap.openstreetmap.fr/en/map/wikidata-map-live_14808#14/52.5088/-1.9158

Reasonator

Reasonator, which puts a human-friendly front end on Wikidata, is now showing two links for geotagged entries, to TagInfo and Overpass turbo, querying these tags

For example, the Reasonator page:

http://tools.wmflabs.org/reasonator/?q=Q915614

has links to:

http://taginfo.openstreetmap.org/tags/wikidata=Q915614
http://overpass-turbo.eu/?w=%22wikidata%22%3D%22Q915614%22+global&R

You'll see them just below the map images.

Why link to Wikidata?

Sir Tim Berners-Lee devised the "five stars of open data", the fifth, and highest, level of which is "link your data to other data to provide context". By including a Wikidata ID (which software understands as a URI), in an OSM object (and indeed in a tag-definition page on the OSM wiki), we link that object to an object (item) on Wikidata, and from there, directly and indirectly, to items in many other systems. That makes OSM part of the Linked Open Data graph, rather than an isolated system, separate from it.

More pragmatically, it allows anyone querying OSM to retrieve additional data, and links to other databases, about an OSM object, which OSM does not store. That might, for example, be the population of a town, both current and various periods in its history, or the birth date and place of the architect of a building, and their portrait, or a link to a system showing the last week's rainfall in a nature reserve. Not to mention, in time, more complex queries, like "all the scientific papers written by people born in this village, sorted by how many other papers cite them".

Querying Wikidata and OSM

Wikidata data can be retrieved in a number of ways, one of which is SPARQL. Since OSM data can also be queried suing SPARQL, Wikidata "Wikidata:SPARQL_query_service/ Federated_queries federates" the two, allowing them to be queried jointly.

Specific OSM-based services which Wikidata federates with include:

Importing data

Importing data from OSM into Wikidata

Copying data from OSM to Wikidata (or even from other Wikimedia projects) is not allowed because Wikidata uses the public-domain style Creative Commons CC0 license which does not contain any attribution or share-alike provisions.

Importing data from Wikidata into OSM

Wikidata has CC0 license but does not allow to import of all data. Note that significant part of Wikidata data was harvested from Wikipedia, what includes for example coordinates from sources on licenses conflicting with OSM. Copying from Google Maps is not OK, and copying Wikidata coordinates (that were copied from Wikipedia, sourced to Google Maps) is also not OK.

Import are OK only for Wikidata content that was imported from sources compatible with OSM - what excludes for example coordinates obtained from Wikipedia.

OpenStreetMap tries to be whiter than white, and data should be legally usable in any country[1]. Therefore OpenStreetMap acknowledges sui generis database right. As a conclusion, an import of information from Wikidata into OSM is generally not permitted because Wikidata has lower standards in terms of copyright than OSM. In addition, Wikidata contains some data from sources we are not allowed to use [2].

In rare situations, when it is possible to verify that data has acceptable copyright status it is possible to use part of Wikidata data.

Templates

Past activities

  • 2013-09-12: There was a proposal to automatically add Wikidata IDs to a number of OSM objects.
  • 2016-10-27: Mapbox has proposed a procedure for importing, but has yet to get community feedback on it and thus reverted in the meantime.
  • 2016-11-17: There has been a Mapbox inspired mass-edit but has also been put on hold until further community discussion.

See also