MusicBrainz Identifier: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(let's be accurate: MBID != UUID)
(Hopefully the third times the charm :))
Line 1: Line 1:
One of MusicBrainz' most fundamental purposes is to enable people and computers to have meaningful conversations about music; however, to truly have a meaningful conversation all involved parties must be able to reliably and unambiguously identify what is being discussed. To this end, MusicBrainz assigns a unique MusicBrainz Identifier (MBID), to all [[Artist|artists]], [[Release Group|release groups]], [[Release|releases]], [[Track|tracks]], and [[Label|labels]] in the [[MusicBrainz Database|MusicBrainz Database]], and uses these MBIDs as a universal [[wikipedia:lingua franca|lingua franca]] for music. These MBIDs, aside from being unique to the specific entity it is associated with, are also a permanent identifier for that entity for as long the entity exists.
One of MusicBrainz' most fundamental purposes is to enable people and computers to have meaningful conversations about music; however, to truly have a meaningful conversation all involved parties must be able to reliably and unambiguously identify what is being discussed. To this end, MusicBrainz assigns a unique MusicBrainz Identifier (MBID), to all [[Artist|artists]], [[Release Group|release groups]], [[Release|releases]], [[Track|tracks]], and [[Label|labels]] in the [[MusicBrainz Database|MusicBrainz Database]], and uses these MBIDs as a universal [[wikipedia:lingua franca|lingua franca]] for music. These MBIDs, aside from being unique to the specific entity it is associated with, are also a permanent identifier for that entity for as long the entity exists.


== Definition ==
A MusicBrainz Identifier is an absolute URI. It has the form <code><nowiki>http://musicbrainz.org/ENTITY/UUID</nowiki></code>, where <code>ENTITY</code> is the type of the music resource (<code>artist</code>, <code>release-group</code>, <code>release</code>, <code>track</code> or <code>label</code>) and <code>UUID</code> is a Universally Unique Identifier in its 36 character ASCII representation.
In situations where the context is clear (such as file tags), just the UUID part can be used, leaving a relative URI.


A MusicBrainz Identifier is an absolute [[wikipedia:Uniform Resource Identifier|Uniform Resource Identifier]].
For example <code><nowiki>http://musicbrainz.org/artist/53b106e7-0cc6-42cc-ac95-ed8d30a3a98e</nowiki></code> is the absolute URI of the MusicBrainz Identifier for [[Artist:53b106e7-0cc6-42cc-ac95-ed8d30a3a98e|John Williams]], and <code>53b106e7-0cc6-42cc-ac95-ed8d30a3a98e</code> is its relative URI.

This URI takes the form <code><nowiki>http://</nowiki>musicbrainz.org/<ENTITY>/<UUID></code>, where <code><ENTITY></code> refers to one of the previously mentioned musical entities (<code>artist</code>, <code>release-group</code>, <code>release</code>, <code>track</code>, or <code>label</code>), and <code><UUID></code> refers to a [[wikipedia:Universally Unique Identifier|Universally Unique Identifier]] assigned to that entity.

=== Examples ===

* <code><nowiki>http://musicbrainz.org/artist/53b106e7-0cc6-42cc-ac95-ed8d30a3a98e</nowiki></code> is the MBID for the artist [[Artist:53b106e7-0cc6-42cc-ac95-ed8d30a3a98e|John Williams]].
* <code><nowiki>http://musicbrainz.org/release/44b7cab1-0ce1-404e-9089-b458eb3fa530</nowiki></code> is the MBID for the release [[Release:44b7cab1-0ce1-404e-9089-b458eb3fa530|Sgt. Pepper's Lonely Hearts Club Band]].
* <code><nowiki>http://musicbrainz.org/track/62c2e20a-559e-422f-a44c-9afa7882f0c4</nowiki></code> is the MBID for the track [[Track:62c2e20a-559e-422f-a44c-9afa7882f0c4|Enter Sandman]].


== Using MusicBrainz Identifiers ==
== Using MusicBrainz Identifiers ==


In situations where the context is clear (such as within the MusicBrainz namespace, or file metadata) the above absolute URIs can be converted into their relative form. These relative URIs consist of just the <code><UUID></code> portion of the MBID.
=== Tagging applications ===


Thus, the above MBIDs in their relative form produce:
MBIDs play an important role when tagging music files with metadata with any of the various [[MusicBrainz Tagger]]s.
* <code>53b106e7-0cc6-42cc-ac95-ed8d30a3a98e</code> is the ''relative'' MBID for the artist [[Artist:53b106e7-0cc6-42cc-ac95-ed8d30a3a98e|John Williams]].
* <code>44b7cab1-0ce1-404e-9089-b458eb3fa530</code> is the ''relative'' MBID for the release [[Release:44b7cab1-0ce1-404e-9089-b458eb3fa530|Sgt. Pepper's Lonely Hearts Club Band]].
* <code>62c2e20a-559e-422f-a44c-9afa7882f0c4</code> is the ''relative'' MBID for the track [[Track:62c2e20a-559e-422f-a44c-9afa7882f0c4|Enter Sandman]].


Using a relative MBID is OK as long as you qualify it or it has been given context. For example, relative MBIDs are used on entity pages.
When writing metadata, a MusicBrainz enabled tagger application will write several different MBIDs to each file, one for each of the following:

* the [[Track|track]] itself
When the MBID is listed in relative form it can be converted back to its absolute form by prepending <code><nowiki>http://musicbrainz.org/<ENTITY>/</nowiki></code> to it.
* the [[Track Artist|track artist]]

* the [[Release Artist|release artist]]
=== Entity pages on the website ===
* the [[Release|release]]

The URI that makes up an MBID is ''not'' the same as the URL that is required to visit an entity's page on the MusicBrainz website.

To get the valid web address add <code>.html</code> to the end of an absolute MBID like so:
* <code>http://musicbrainz.org/artist/53b106e7-0cc6-42cc-ac95-ed8d30a3a98e.html</code> is the URL for [[Artist:53b106e7-0cc6-42cc-ac95-ed8d30a3a98e|John Williams']] artist page.
* <code>http://musicbrainz.org/release/44b7cab1-0ce1-404e-9089-b458eb3fa530.html</code> is the URL for [[Release:44b7cab1-0ce1-404e-9089-b458eb3fa530|Sgt. Pepper's Lonely Hearts Club Band's]] release page.
* <code>http://musicbrainz.org/track/62c2e20a-559e-422f-a44c-9afa7882f0c4.html</code> is the URL for [[Track:62c2e20a-559e-422f-a44c-9afa7882f0c4|Enter Sandman's]] track page.

The upcoming server release, scheduled for release in 2010, will address this issue and the canonical MBID will resolve to the appropriate page.

=== Tagging applications ===


MBIDs play an important role when tagging music files with metadata with any of the various [[mb:MusicBrainz Tagger|MusicBrainz Tagger]]s.
See [[MusicBrainz Tag]] for more detailed information.


When writing metadata, a MusicBrainz enabled tagger application will write several different ''relative'' MBIDs to each file, one for each of the following:
=== Uniform Resource Identifier ===
* the [[mb:Track|track]] itself
* the [[mb:Track Artist|track artist]]
* the [[mb:Release|release]]
* the [[mb:Release Artist|release artist]]


See [[mb:MusicBrainz Tag|MusicBrainz Tag]] for more detailed information.
Each musical entity that is assigned an MBID also has a permanent unique URI that can be constructed from that MBID to identify and find more information about a given music resource.
* Artist MBIDs have a canonical URI in the form of <code><nowiki>http://musicbrainz.org/artist/<MBID></nowiki></code>.
* Label MBIDs have a canonical URI in the form of <code><nowiki>http://musicbrainz.org/label/<MBID></nowiki></code>.
* Release MBIDs have a canonical URI in the form of <code><nowiki>http://musicbrainz.org/release/<MBID></nowiki></code>.
* Release group MBIDs have a canonical URI in the form of <code><nowiki>http://musicbrainz.org/release-group/<MBID></nowiki></code>.
* Track MBIDs have a canonical URI in the form of <code><nowiki>http://musicbrainz.org/track/<MBID></nowiki></code>.


== See also ==
== See also ==

Revision as of 08:30, 28 February 2010

One of MusicBrainz' most fundamental purposes is to enable people and computers to have meaningful conversations about music; however, to truly have a meaningful conversation all involved parties must be able to reliably and unambiguously identify what is being discussed. To this end, MusicBrainz assigns a unique MusicBrainz Identifier (MBID), to all artists, release groups, releases, tracks, and labels in the MusicBrainz Database, and uses these MBIDs as a universal lingua franca for music. These MBIDs, aside from being unique to the specific entity it is associated with, are also a permanent identifier for that entity for as long the entity exists.

Definition

A MusicBrainz Identifier is an absolute Uniform Resource Identifier.

This URI takes the form http://musicbrainz.org/<ENTITY>/<UUID>, where <ENTITY> refers to one of the previously mentioned musical entities (artist, release-group, release, track, or label), and <UUID> refers to a Universally Unique Identifier assigned to that entity.

Examples

  • http://musicbrainz.org/artist/53b106e7-0cc6-42cc-ac95-ed8d30a3a98e is the MBID for the artist John Williams.
  • http://musicbrainz.org/release/44b7cab1-0ce1-404e-9089-b458eb3fa530 is the MBID for the release Sgt. Pepper's Lonely Hearts Club Band.
  • http://musicbrainz.org/track/62c2e20a-559e-422f-a44c-9afa7882f0c4 is the MBID for the track Enter Sandman.

Using MusicBrainz Identifiers

In situations where the context is clear (such as within the MusicBrainz namespace, or file metadata) the above absolute URIs can be converted into their relative form. These relative URIs consist of just the <UUID> portion of the MBID.

Thus, the above MBIDs in their relative form produce:

Using a relative MBID is OK as long as you qualify it or it has been given context. For example, relative MBIDs are used on entity pages.

When the MBID is listed in relative form it can be converted back to its absolute form by prepending http://musicbrainz.org/<ENTITY>/ to it.

Entity pages on the website

The URI that makes up an MBID is not the same as the URL that is required to visit an entity's page on the MusicBrainz website.

To get the valid web address add .html to the end of an absolute MBID like so:

The upcoming server release, scheduled for release in 2010, will address this issue and the canonical MBID will resolve to the appropriate page.

Tagging applications

MBIDs play an important role when tagging music files with metadata with any of the various MusicBrainz Taggers.

When writing metadata, a MusicBrainz enabled tagger application will write several different relative MBIDs to each file, one for each of the following:

See MusicBrainz Tag for more detailed information.

See also

There are several other identifiers that MusicBrainz uses:

  • Disc ID: An ID calculated from the TOC of a CD.
  • PUID: The IDs used in the proprietary MusicDNS audio fingerprinting system operated by MusicIP.
  • Barcode: Machine-readable numbers used as stock control mechanisms by retailers.
  • ISRC: The International Standard Recording Code, an identification system for audio and music video recordings.