Next Generation Schema / XML

This page has not been reviewed by our documentation team (more info).

These are proposed XML fragments. Now updated to work with the first draft of the 2.0 schema. See codereview 443 for details.

Contents

Artist

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <artist id="c0b2500e-0cef-4130-869d-732b23ed9df5" type="Person">
        <name>Tori Amos</name>
        <sort-name>Amos, Tori</sort-name>
        <gender>Female</gender>
        <country>US</country>
        <life-span>
            <begin>1963-08-22</begin>
        </life-span>
    </artist>
</metadata>

Release Group

<metadata  xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <release-group id="3e499c4b-3a48-36e6-b41e-2d88bd844465" type="Live">
        <title>Tsunami - Crisis In Asia (Live At Bristol)</title>
        <artist-credit>
            <name-credit joinphrase="&amp;">
                <name>Portishead</name>
                <artist id="8f6bd1e4-fbe1-4f50-aa9b-94c450ec0f11">
                    <name>Portishead</name>
                    <sort-name>Portishead</sort-name>
                </artist>
            </name-credit>
            <name-credit>
                <artist id="10adbe5e-a2c0-4bf3-8249-2b4cbf6e6ca8">
                    <name>Massive Attack</name>
                    <sort-name>Massive Attack</sort-name>
                </artist>
            </name-credit>
        </artist-credit>
        <release-list count="1"/>
    </release-group>
</metadata>

Release

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">                                                              
    <release id="f205627f-b70a-409d-adbe-66289b614e80">                             
        <title>Aerial</title>      
        <status>Official</status>
        <disambiguation>UK CD version</disambiguation>
        <packaging>JewelBox</packaging>                                                                                            
        <text-representation>
            <language>eng</language>
            <script>Latn</script>   
        </text-representation>                                                                 
        <artist-credit>                                                                                                        
            <name-credit>                                                                                                      
                <artist id="4b585938-f271-45e2-b19a-91c634b5e396">                                                             
                    <name>Kate Bush</name>                                                                                     
                    <sort-name>Bush, Kate</sort-name>
                </artist>                                                                                                      
            </name-credit>                                                                                                     
        </artist-credit>
        <release-group id="6169f5bc-b5ff-3348-b806-1b0f2a414217" type="Album" />
        <date>2005-11-07</date>
        <country>GB</country>
        <barcode>0094634396028</barcode>
        <asin>B000BHNLX0</asin>                              
        <label-info-list>
            <label-info>
                <catalog-number>343 960 2</catalog-number>
                <label/>
            </label-info>
            <label-info>
                <catalog-number>343492 54</catalog-number>
                <label/>
            </label-info>
        </label-info-list>
        <medium-list>
            <medium>                                              
                <title>Sea of Honey</title>
                <position>1</position>
                <format>CD</format> 
                <track-list>                                                                                               
                    <track>
                        <position>1</position>
                        <title>King of the Mountain in Candyland</title>                                                                    
                        <recording id="54b9d183-7dab-42ba-94a3-7388a66604b8">
                            <title>King of the Mountains</title>
                            <length>293720</length>
                        </recording>
                    </track>                                                                                               
                    <track>     
                        <position>2</position>                                                
                        <recording id="659f405b-b4ee-4033-868a-0daa27784b89">
                            <title>π</title>                                                                                       
                            <length>369680</length>                                                                            
                        </recording>
                    </track>                                                                                               
                    <track>
                        <position>3</position>
                        <recording id="ae674299-2824-4500-9516-653ac1bc6f80">
                            <title>Bertie</title>                                                                                  
                            <length>258839</length> 
                        </recording>
                    </track>                                                                                               
                    <track>
                        <position>4</position>                                                      
                        <recording id="b1d58a57-a0f3-4db8-aa94-868cdc7bc3bb">
                           <title>Mrs. Bartolozzi</title>                                                                         
                           <length>358960</length>                                                                            
                        </recording>
                    </track>                                                                                               
                    <track>      
                        <position>5</position>                                                
                        <recording id="44f52946-0c98-47ba-ba60-964774db56f0">
                            <title>How to Be Invisible</title>                                                                     
                            <length>332613</length>                                                                            
                        </recording>
                    </track>
                    <track>      
                        <position>6</position>                                                
                        <recording id="07614140-8bb8-4db9-9dcc-0917c3a8471b">
                            <title>Joanni</title>      
                            <length>296160</length>        
                        </recording>
                    </track>                               
                    <track>
                        <position>7</position>
                        <recording id="1eb4f672-5ee3-454f-9a67-db85a4478fea">
                            <title>A Coral Room</title>
                            <length>372386</length>
                        </recording>
                    </track>
                 </track-list>
            </medium>
            <medium>                                                                                 
                <title>Sky of Honey</title>
                <position>2</position>
                <format>CD</format>
                <track-list>
                    <!-- ... -->
                </track-list>
            </medium>
        </medium-list>
    </release>
</metadata>

Recording

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <recording id="e97f805a-ab48-4c52-855e-07049142113d">
        <title>Strangers</title>
        <length>238000</length>
        <disambiguation>Studio version</disambiguation>
        <artist-credit>
            <name-credit>
                <artist id="8f6bd1e4-fbe1-4f50-aa9b-94c450ec0f11">
                    <name>Portishead</name>
                    <sort-name>Portishead</sort-name>
                </artist>
            </name-credit>
        </artist-credit>
    </recording>
</metadata>

Label

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <label id="49b58bdb-3d74-40c6-956a-4c4b46115c9c" type="Publisher">
        <name>Virgin</name>
        <sort-name>Virgin</sort-name>
        <label-code>3098</label-code>
        <disambiguation>UK/worldwide</disambiguation>
        <country>GB</country>
        <life-span>
            <begin>1973</begin>
        </life-span>
    </label>
</metadata>

Work

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <work id="4ff89cf0-86af-11de-90ed-001fc6f176ff" type="Composition">         
        <title>Symphony No. 5</title>
        <artist-credit>
            <name-credit>
                <artist id="1f9df192-a621-4f54-8850-2c5373b7eac9">
                    <name>Ludwig van Beethoven</name>
                    <sort-name>Beethoven, Ludwig van</sort-name>
                </artist>
            </name-credit>
        </artist-credit>
        <iswc>T-101779304-1</iswc>
    </work>
</metadata>

Annotation

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <annotation-list>
       <annotation type="artist">         
           <entity>f7fda030-0ba1-42e9-a385-3deebc939bc9</entity>
           <name>Some annotation about Carlos Santana</name>
           <text>Note that only solo releases of Carlos Santana are listed here. The band Santana is a separate artist: http://musicbrainz.org/artist/9a3bf45c-347d-4630-894d-7cf3e8e0b632.html</text>
       </annotation>
   </annotation-list>
</metadata>

CD Stub

Single artist CD and various artist CD example:

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <cdstub-list>
       <cdstub id="qA87dKURKperVfmckD5b_xo8BO8-">         
          <title>Doo Doo First</title>
          <artist>Doo Doo</artist>
          <barcode>837101029193</barcode>
          <comment>CD Baby id:vozzolo</comment>
          <track-list>
             <track>
                <title>Top Doo</title>
                <length>282000</length>
             </track>
             <track>
                <title>Bottom Doo</title>
                <length>321000</length>
             </track>
          </track-list>
       </cdstub>
       <cdstub id="pA87dKURKperVfmckD5b_xo8BO8-">
          <title>Flooo Boo</title>
          <barcode>737101029193</barcode>
          <comment>CD baby id:floooboo</comment>
          <track-list>
             <track>
                <title>Never Doo</title>
                <artist>Too Too</artist>
                <length>282000</length>
             </track>
             <track>
                <title>Bottom Poo</title>
                <artist>Doo Doo</artist>
                <length>321000</length>
             </track>
          </track-list>
       </cdstub>
    </cdstub-list>
</metadata>

FreeDB

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
    <freedb-disc-list>
       <freedb-disc id="34b5a8ca">         
          <title>Doo Doo First</title>
          <artist>Doo Doo</artist>
          <category>reggae</category>
          <year>2001</year>
          <track-list>
             <track>
                <title>Top Doo</title>
                <length>282000</length>
             </track>
             <track>
                <title>Bottom Doo</title>
                <length>321000</length>
             </track>
          </track-list>
       </freedb-disc>
    </freedb-disc-list>
</metadata>