Relationships: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(→‎History: Merge history from here and ARHistory, turning bullets/etc into something readable.)
Line 39: Line 39:


==History==
==History==
Advanced Relationships were first officially proposed [[How Advanced Relationships Works|here]]. The [[Advanced Relationship Type Development|original set of relationship types]] makes for interesting reading. [[Simple Advanced Relationships Interface]] describes the initial development of the UI and model for editing relationships, while [[Fancy Advanced Relationships Interface]] describes some then-future ideas for development of that relationships UI and model.
Advanced Relationships were first officially proposed [[How Advanced Relationships Works|here]]. [[User:DaveEvans|DaveEvans]] created the database structure to allow relationships, and wrote tools for allowing the user to define a type of relationship. However, the code for linking two entities together and the UI to manipulate relationships themselves was left undone.

In November of 2004, [[User:RobertKaye|Robert Kaye]] took over working on the user interface and [[User:DonRedman|Don Redman]] became the [[Proposals|Idea Champion]] for advanced relationships. The design documents of the time, including the [[Advanced Relationship Type Development|original set of relationship types]], make for interesting reading: [[Simple Advanced Relationships Interface]] describes the initial development of the UI and model for editing relationships, while [[Fancy Advanced Relationships Interface]] describes some then-future ideas for development of that relationships UI and model.

On April 10, 2005, development was completed, and advanced relationship support was officially added to the database.


[[Category:Advanced Relationships]]
[[Category:Advanced Relationships]]

Revision as of 07:46, 7 March 2010

An advanced relationship is a way to represent all the various inter-relationships between entities, as well as relationships from entities to information and resources found outside of the MusicBrainz database.

For example:

All of this information is stored in a single table in the database, and there is a single user interface for adding new information. In this way, MusicBrainz has a fairly simple way to deal with extremely complicated data.

Getting Started

There is a tutorial at How To Make Relationships.

Advanced Relationship Types

Each relationship entered by a user belongs to one Advanced Relationship Type. These types define:

  • Which entities will be related (artists, albums, tracks, etc)
  • What Advanced Relationship Attributes go along with the relationship
  • The link phrases of the relationships, which describe relationship information in an English sentence.

For example, the relationship type "Performer Relationship Type" can be used to link an artist (for example, Eric Clapton) to a track on which they performed (for example, Runaway Train). The definition of Performer Relationship Type allows an optional attribute to specify the instrument he played (Instrument Relationship Attribute), so you can say if he played guitar. The definition also says how to construct an English sentence out of this data, so that the website can display the words "Runaway Train was performed by Eric Clapton".

These Advanced Relationship Types are themselves simply entries in another database table. This means that new ones can be defined, old ones deleted, and existing ones modified through a relatively simple user-interface which does not require hacking the database internals. Since this data is much more important than any other individual entries, editing of Advanced Relationship Types is limited to selected users, called Relationship Editors. There are more relationship editors than developers, and the process of adding a new relationship type is much simpler than adding a new database table, so this is a very fast way to expand and improve the MusicBrainz Database.

A list of all of the relationship types defined so far is kept at Advanced Relationship Types. That page also links to documentation for each individual type.

Style

Please see Advanced Relationship Style.

History

Advanced Relationships were first officially proposed here. DaveEvans created the database structure to allow relationships, and wrote tools for allowing the user to define a type of relationship. However, the code for linking two entities together and the UI to manipulate relationships themselves was left undone.

In November of 2004, Robert Kaye took over working on the user interface and Don Redman became the Idea Champion for advanced relationships. The design documents of the time, including the original set of relationship types, make for interesting reading: Simple Advanced Relationships Interface describes the initial development of the UI and model for editing relationships, while Fancy Advanced Relationships Interface describes some then-future ideas for development of that relationships UI and model.

On April 10, 2005, development was completed, and advanced relationship support was officially added to the database.