From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — Key: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 · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · भोजपुरी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · བོད་ཡིག · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ‎ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 中文(繁體)‎ · 吴语 · 粵語 · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް
Public-images-osm logo.svg wikidata
The ID of the Wikidata item about the feature.
Group: Annotation
Used on these elements
may be used on nodesmay be used on waysmay be used on areasmay be used on relations
See also
Status: draftPage for proposal

The ID of the Wikidata item about the feature (for example, Q9141 represents the Way Taj Mahal). Like wikipedia=* only entries which are 'about the feature' should be linked. A link from St Paul's Cathedral in London to an entry about St Paul's Cathedral is fine. A link from a bus depot to the company that operates should use operator:wikidata=* instead, link from monument to event that is memorialized should use subject:wikidata=* instead.

For entries with both wikipedia=* and wikidata=* these links should be equivalent, except if Wikidata has a more precise entry, which corresponds better to the OSM object than the Wikipedia article does. In that case the relation between both (The Wikidata entry and its parent wikidata entry, connected to the WP entry) should be described on Wikidata, through a "part of" property.

See: Proposed features/Wikidata.

Finding a Wikidata ID

In order to add a Wikidata tag, you first have to find the item ID. An ID always begins with Q, followed by numbers. There are several ways to do so.

Wikidata Search

Search on the Wikidata homepage: Now you can copy the id from that page. Alternatively you can extract the ID from a Wikidata URL:

Wikipedia search

Find a wikipedia article. If the article has a corresponding Wikidata item, you can click the "Wikidata item" button on the side menu. (See the image)

Link to Wikidata on Wikipedia

Editor integration


iD, the default osm web editor, automatically adds the corresponding wikidata key when the wikipedia=* key is updated. You just need to paste a Wikipedia article full url without choosing the language. See this video for an example: (note that you don't need to remove the previous wikipedia key)


The Wikipedia plugin for JOSM displays geo-tagged wikidata items or wikipedia articles in your area, allowing you to conveniently add them without explicit searching.

Adding missing items to Wikidata

Wikidata is a separate project which is freely editable in a similar fashion to OSM. If an item does not exist in Wikidata itself, you can create it But please read the notability guidelines first.


Wikidata values are now clickable on the OSM main site, and they link to the corresponding Wikidata item. example: Way 369161987 (iD, JOSM, Potlatch2, history, XML)

Secondary Wikidata links

You may tag secondary attributes of the feature by preceding the wikidata key with the name of the attribute, separated by a colon (:). The value of such a key would be the same as the normal wikidata key, but referring to the appropriate wikidata entry.

For example, brand:wikidata=Q38076 on a McDonald's fast food unit (but don't forget to also tag brand=McDonald's, because the former tag doesn't replace the latter).

Common secondary wikidata tags:

Operator (not franchise) of a restaurant, shop, bank or some other customer service or office. Entity type must be [W]organization
Network of public transport routes.
Brand of product (car, bicycle..) that a retailer sells or workshop repairs. e.g. BMW (Q26678) for a vehicle dealership/ service centre; or McDonalds (Q38076) for a fast food franchise outlet.
The architect (or architectural firm) of a building or structure. It should be an instance of [W]human or [W]company.
The artist/maker of statue or other artwork or memorial. It should be an instance of [W]human (well, the way elephants are painting, we shouldn't constrain this one too much).
The subject of a statue, artwork or memorial (a person, event, geographical feature, ...)
The person, event, geographical feature or other subject that an entity (e.g. a street, airport or building) is named after. If the street has old_name=*, use old_name:etymology:wikidata=*

For a list of all secondary attributes currently being tagged with this key, see taginfo.

It may be more useful to store certain data on Wikidata. For example instead of using name:etymology:wikipedia=* or name:etymology:wikidata=* one may follow the Wikidata link and use

Occasionally, a feature may have one or more secondary links, but no primary link. For example, a memorial depicting a famous event may have only a secondary subject:wikidata=* link. Monuments, memorials, statues and similar features should have wikidata=* only if they have their own Wikidata article. The same applies to chain stores.

The same may be done with wikipedia=* - see Key:wikipedia#Secondary Wikipedia links

See also