Wikidata

From MusicBrainz Wiki
Revision as of 20:36, 18 October 2013 by Mineo (talk | contribs) (Wikimedia: fixed some links; added label ids)

From the mouth of the horse: "Wikidata is a free knowledge base that can be read and edited by humans and machines alike. It is for data what Wikimedia Commons is for media files: it centralizes access to and management of structured data, such as interwiki references and statistical information. Wikidata contains data in every language supported by the MediaWiki software." [1]

Wikidata interacts with MusicBrainz in various ways. This page is meant to note these various ways for MusicBrainz editors.

MusicBrainz

Interactions that affect MusicBrainz.

Relationships

Most straight-forward is the URL relationship: Wikidata Relationship Type. A few bots scour MusicBrainz and add Wikidata links to entities, but it can also be done manually.

Areas

Areas that exist in Wikidata will get imported into MusicBrainz by area_bot that runs every 3 hours, assuming a few conditions are set; namely that the Wikidata entry has the properties P31 ("is instance of") and P131 ("is in the administrative unit") set.

The "valid" values for P31 that trigger automatic import are "city" and "town".

There are certain issues with area_bot that cause some valid areas to not get imported. Ping a Location Editor to have them import the area manually if area_bot fails to import it.

Wikimedia

There are several properties in Wikidata for MBIDs: Artist MBID, Label MBID, Work MBID and Release Group MBID, all of which can be used to link an item on Wikidata to MusicBrainz. The template Authority Control on the english Wikipedia will automatically include a link to MusicBrainz if the corresponding item on Wikidata has a claim with property P434. Because MusicBrainz also has MBIDs for people or groups who're not primarily involved in the music business, further restrictions apply: The MusicBrainz Artist ID is currently restricted to items that have p106 set to either

or are an instance of band. This list might not be complete, the complete one can be found in the template documentation or in the module itself. To whitelist further items and properties, a request can be made on the templates talk page.