MusicBrainz Identifier: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
m (Unnecessary line)
(Total rewrite; going back to the 'MBID == UUID' philosophy)
Line 1: Line 1:
One of MusicBrainz' aims is to be the universal lingua franca for music by providing a reliable and unambiguous form of music identification; this music identification is performed through the use of MusicBrainz Identifiers (MBIDs).
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.


In a nutshell, an MBID is a 36 character [[wikipedia:Universally Unique Identifier|Universally Unique Identifier]] that is assigned to each entity in the database, i.e. [[Artist|artists]], [[Release Group|release groups]], [[Release|releases]], [[Track|tracks]], and [[Label|labels]]. For example, the artist [[Artist:53b106e7-0cc6-42cc-ac95-ed8d30a3a98e|John Williams]] has an artist MBID of <code>53b106e7-0cc6-42cc-ac95-ed8d30a3a98e</code> and his [[Release:fff250bd-6c12-4f11-ab9e-a84568a74afb|Greatest Hits 1969-1999]] compilation has a release MBID of <code>fff250bd-6c12-4f11-ab9e-a84568a74afb</code>.
== Definition ==


== Using MusicBrainz Idenfiers ==
A MusicBrainz Identifier is an absolute [[wikipedia:Uniform Resource Identifier|Uniform Resource Identifier]].


MBIDs play an important role when managing a digital music collection and there are several applications that are [[MusicBrainz Enabled Applications|MusicBrainz enabled]].
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 ===
=== Taggers ===


Multiple MBIDs may be written to a file by a MusicBrainz enabled [[MusicBrainz Tagger|tagger application]]. They are commonly used to identify:
* <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]].
* the track itself
* <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]].
* the release
* <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]].
* the label
* the [[Track Artist|track artist]]
* the [[Release Artist|release artist]]


For more information, read the [[MusicBrainz Tag|MusicBrainz tag specification]].
== Using MusicBrainz Identifiers ==


=== Music players ===
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.


Music player applications can take advantage of a file that has been tagged with MBIDs to do things such as:
* <code>53b106e7-0cc6-42cc-ac95-ed8d30a3a98e</code> is the ''relative'' MBID for the artist [[Artist:53b106e7-0cc6-42cc-ac95-ed8d30a3a98e|John Williams]].
* query the [[MusicBrainz Database]] for further information about the file or related entities
* <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]].
* reliably search for related files based on a unique string, instead of by potentially ambiguous strings such as [[Artist Name|artist name]] or [[Release Title|release title]]
* <code>62c2e20a-559e-422f-a44c-9afa7882f0c4</code> is the ''relative'' MBID for the track [[Track:62c2e20a-559e-422f-a44c-9afa7882f0c4|Enter Sandman]].


== Uniform Resource Identifier ==
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 <code><nowiki>http://musicbrainz.org/<ENTITY>/</nowiki></code> 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 <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 [[MusicBrainz Tagger|MusicBrainz Tagger]]s.

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


URIs can be constructed by prefixing the MBID with the address of the MusicBrainz server and the entity type, for example [[Artist:53b106e7-0cc6-42cc-ac95-ed8d30a3a98e|John Williams']] URI becomes http://musicbrainz.org/artist/53b106e7-0cc6-42cc-ac95-ed8d30a3a98e.html, and [[Release:fff250bd-6c12-4f11-ab9e-a84568a74afb|Greatest Hits 1969-1999's]] URI becomes http://musicbrainz.org/release/fff250bd-6c12-4f11-ab9e-a84568a74afb.html.
See [[MusicBrainz Tag|MusicBrainz Tag]] for more detailed information.


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

Revision as of 05:50, 27 June 2010

One of MusicBrainz' aims is to be the universal lingua franca for music by providing a reliable and unambiguous form of music identification; this music identification is performed through the use of MusicBrainz Identifiers (MBIDs).

In a nutshell, an MBID is a 36 character Universally Unique Identifier that is assigned to each entity in the database, i.e. artists, release groups, releases, tracks, and labels. For example, the artist John Williams has an artist MBID of 53b106e7-0cc6-42cc-ac95-ed8d30a3a98e and his Greatest Hits 1969-1999 compilation has a release MBID of fff250bd-6c12-4f11-ab9e-a84568a74afb.

Using MusicBrainz Idenfiers

MBIDs play an important role when managing a digital music collection and there are several applications that are MusicBrainz enabled.

Taggers

Multiple MBIDs may be written to a file by a MusicBrainz enabled tagger application. They are commonly used to identify:

For more information, read the MusicBrainz tag specification.

Music players

Music player applications can take advantage of a file that has been tagged with MBIDs to do things such as:

  • query the MusicBrainz Database for further information about the file or related entities
  • reliably search for related files based on a unique string, instead of by potentially ambiguous strings such as artist name or release title

Uniform Resource Identifier

URIs can be constructed by prefixing the MBID with the address of the MusicBrainz server and the entity type, for example John Williams' URI becomes http://musicbrainz.org/artist/53b106e7-0cc6-42cc-ac95-ed8d30a3a98e.html, and Greatest Hits 1969-1999's URI becomes http://musicbrainz.org/release/fff250bd-6c12-4f11-ab9e-a84568a74afb.html.

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.