UserPreferences

DefaultFormatInXmlVersionThree


<?xml version="1.0" encoding="UTF-8"?>

<!-- Audit trail:

     June 7, 2004: Fix malformed <location></locator> pair. 

     May 12, 2004: Added //playlist@version.

     April 28, 2004: Change namespace to http://xspf.org/ns/0/.

     April 23, 2004: Introduced <meta> and re-introduced <identifier> and <location> -Matthias

     April 15, 2004: Remove cc: namespace and replace with "link
     rel=license" syntax.  Note that the license I selected is
     http://creativecommons.org/licenses/by-sa/1.0/, which is a
     decision that members of the playlist WG may want to read and
     vet.  Change Track to track and Playlist to playlist.

     April 4, 2004: Forked this from DefaultVersionInRdfVersionFour.
     Add link rel="info|location|identifier|image".  -Lucas

     March 30, 2004: Made osp: the default namespace to simplify things even more. Switched to
     plain XML. -Matthias

     March 29, 2004: Forked this from DefaultFormatInRdfVersionTwoB.  Radical simplifications:
     absorbed dc: and mm: into osp namespace.  New osp:annotation and osp:title tags.  Many 
     other changes!  -Lucas

     March 27, 2004: Added osp:comment on head and tracks.  Changed
     dc:creator to proposed new syntax.  Corrected namespace URI for
     osp namespace so that our predicates are resolvable URLs.
     Tidied dc:title and dc:description contents.  -Lucas

     March 24, 2004: I repaired the licensing section and removed the DTD reference. I heard we
     want to use XML Schema anyway. Now it's OK according to the W3 validator. -Matthias

     March 23, 2004: mayhem removed a stray comma from the namespace decl and added the foaf namespace.
     Removed double - in comments. Changed a rdf:descriptoin to rdf:description. Mostly parses
     in the W3 online validator. The CC license stuff has an about it complains about and it
     doesn't like the DOCTYPE decl

     March 22, 2004: danbri created DefaultFormatInRdfVersionTwoB, fixed dates in audit trail,
     and changed list syntax from rdf:li/Seq to use Collections. I changed the first 
     osp:attribution block, and also dropped use of dc:source since it didn't parse right even 
     in the original, and isn't clear here what two things the dc:source property would be relating 
     to each other. -danbri

     March 21, 2004: added cc: qualifiers on Agent.  Moved attribution
     dc:source elements into an osp:attribution element.  deleted
     dc:rights.  changed dc:creator to contain a foaf:Person.  Forked new
     file DefaultFormatInRdfVersionTwo from DefaultFormatInRdf -LucasGonze

     March 13, 2004: created DefaultFormatInRdf -LucasGonze
                                                  
                                                -->

<playlist version="0" xmlns="http://xspf.org/ns/0/">

    <title>A Sample Playlist</title>

    <annotation>An example of the default format playlist expressed in XML.</annotation>

    <!-- element content is name of the author.  Text, not HTML.  -->
    <creator>The Portable Playlist Working Group</creator>

    <!-- a web page to find out more about this playlist.  Likely to
         be homepage of the author, and would be used to find out more
         about the author and to find more playlists by the author.
         -->
    <info>http://playlist.musicbrainz.org/playlist/moin.cgi/FrontPage</info>

    <!-- source URL for this playlist -->
    <location>http://playlist.musicbrainz.org/playlist/moin.cgi/DefaultFormatInXmlVersionThree</location>

    <!-- canonical ID for this playlist -->
    <identifier>urn:experimental:foo</identifier>

    <!-- album art to display -->
    <image>http://example.org/foo.jpg</image>

    <!-- additional link, user defined -->
    <link rel="http://whatever.org/sponsor">nobody</link> 

    <!-- additional metadata, user defined -->
    <meta property="http://example.org/key">value</meta>

    <!-- Creation date -->
    <date>2004-03-21</date>

    <!-- If you make a modified copy of a playlist, move its 
         <location> element to the top of this list.  -->
    <attribution>
       <location>http://playlist.musicbrainz.org/playlist/moin.cgi/DefaultFormatInXmlVersionTwo</location>
       <location>http://playlist.musicbrainz.org/playlist/moin.cgi/DefaultFormatInRdfVersionFour</location>
       <location>http://playlist.musicbrainz.org/playlist/moin.cgi/DefaultFormatInRdfVersionTwoB</location>
       <location>http://playlist.musicbrainz.org/playlist/moin.cgi/DefaultFormatInRdf</location>
       <location>http://www.stud.uni-karlsruhe.de/~uy7l/playlist/example3.xml</location>
    </attribution>

    <!-- The URL of a document that describes the license under 
         which this playlist was released.  -->
    <license>http://creativecommons.org/licenses/by-sa/1.0/</license>

    <trackList>

          <track>

            <!-- We have this song on disk -->
            <location>file:///mp3s/tori/space_dog.mp3</location>

            <!-- An image to display while the song is playing -->
            <image>http://example.org/bar.mp3</image>

            <!-- any kind of comment on the song. -->
            <annotation>My mom loves this song.  This is weird.</annotation>

            <!-- ALL of this is sloppy.  It is here for fuzzy lookups, not to be canonical.  -->
            <creator>Tori Amos</creator>
            <title>Space Dog</title>
            <album>Under the Pink</album>
            <trackNum>11</trackNum>
            <duration>313</duration> <!-- in seconds -->

          </track>

          <track>

            <!-- We know the MusicBrainz id of this song and we also know where 
                 it can be bought. An application (or content resolver) could check
                 the prefixes to see if it supports that kind of identifier. -->
            <identifier>http://musicbrainz.org/track/28af4859-5f9e-483f-8ff3-3dc1e5a6f19d</identifier>

            <!-- A place where this song can be bought or more info can be found.  -->
            <info>http://some.webshop.invalid/songs?id=xyz</info>

          </track>

          <track>

            <!-- We know where to find this song on the web -->
            <location>http://www.mafr.de/not_there/find_the_river.mp3</location>

            <!-- A canonical identifier for this song, perhaps it can be
                 used to find a bag of bytes containing the song.  -->
            <identifier>http://musicbrainz.org/track/c6b633b9-5d94-426a-aad1-1b394e2be75</identifier>

          </track>

          <track>

            <!-- We don't have this song on disk (or don't know where it
                 is) and we don't know a URL for it, but we do have a
                 canonical identifier that may help find it. -->
            <identifier>urn:sha1:01c2f6b84888970732259dad9faa8b42e2e31f6b</identifier>

          </track>

          <!-- The most simple applications could create this kind of
               entry.  When parsing playlists, everything except the
               file:/// ids can be ignored. That way conversion
               from/to m3u is simple. -->
          <track>
             <location>file:///mp3s/Bob_Dylan/Visions_Of_Johanna.mp3</location>
             <meta property="http://some.domain.invalid/tempo">slow</meta>
          </track>

 
    </trackList>

</playlist>