MusicRecording

(Difference between revisions)

Jump to: navigation, search

 
m
m
Line 12: Line 12:
   
 
=== Using RDFa 1.1 Lite ===
 
=== Using RDFa 1.1 Lite ===
  +
  +
<source lang="html5">
  +
<div vocab ="http://schema.org/" typeof="MusicRecording">
  +
  <span property="byArtist">
  +
    <span typeof="MusicGroup">
  +
      British rock band
  +
      <span property="name">Queen</span>
  +
    </span>
  +
  </span>
  +
  for their <span property="inAlbum">
  +
    <span typeof="MusicAlbum">
  +
      <span property="dateCreated">1977</span> album 
  +
      <span property="name">News of the World</span>
  +
    </span>
  +
  </span>.
  +
<p>
  +
  <strong>Genre:</strong> <span property="genre">Rock</span><br />
  +
  Listen here:<br />
  +
  <p typeof="AudioObject">
  +
    <script type="text/javascript">
  +
      var
  +
-#160-#160-#160-fo-new-flashobject-quot-http-google.com-flash-preview-player.swf-quot-,-quot-flashplayer_719-quot-,-quot-358-quot-,-quot-16-quot-,-quot-6-quot-,-quot-#ffffff-quot-<-ins><-div><-td><-tr>

+
      fo.addVariable("url","http://freemedia.org/WeAreTheChampions.mp3");
  +
      fo.addVariable("autostart", "0");
  +
      fo.write("flashcontent_719");
  +
    </script>
  +
    <meta itemprop="encodingFormat" content="mp3" />
  +
    <meta itemprop="contentURL" content="http://freemedia.org/WeAreTheChampions.mp3" />
  +
</p>
  +
  <p><a href="download.htm" property="offers">Download this song</a></p>
  +
</p>
  +
</div>
  +
</source>
   
 
=== Using Microdata ===
 
=== Using Microdata ===
  +
 
<source lang="html5">
 
<source lang="html5">
 
<div itemscope itemtype="http://schema.org/MusicRecording">
 
<div itemscope itemtype="http://schema.org/MusicRecording">

Revision as of 15:13, 22 March 2012

File:MusicRecording.png

MusicRecording UML Diagram
Supertypes = Thing, CreativeWork
Subtypes = none
Inherited properties = description:Text, image:URL, name:Text, url:URL, about:Thing, accountablePerson:Person, aggregateRating:AggregateRating, alternativeHeadline:Text, associatedMedia:MediaObject, audio:AudioObject, author🙁Person or Organization), awards:Text, comment:UserCooments, contentLocation:Place, contentRating:Text, contributor🙁Person or Organization), copyrightHolder🙁Person or Organization), copyrightYear:Number, creator🙁Person or Organization), dateCreated:Date, dateModified:Date, datePublished:Date, discussionUrl:URL, editor:Person, encodings:MediaObject, genre:Text, headline:Text, inLanguage:Text, interactionCount:Text, isFamilyFriendly:Boolean, keywords:Text, mentions:Thing, offers:Offer, provider🙁Person or Organization), publisher:Organization, publisherPrinciples:URL, reviews:Review, sourceOrganization:Organization, thumbnailUrl:URL, version:Number, video:VideoObject
Properties = byArtist:MusicGroup, duration:Duration, inAlbum:MusicAlbum, inPlaylist:MusicPlaylist
Defined by = http://schema.org/MusicRecording
Install RuleTheWeb! the Firefox extension using Schema.org annotations!

Contents

Description

Description of a song.

Examples

Using RDFa 1.1 Lite

<div vocab ="http://schema.org/" typeof="MusicRecording">   <span property="byArtist">      <span typeof="MusicGroup">       British rock band        <span property="name">Queen</span>      </span>   </span>   for their <span property="inAlbum">      <span typeof="MusicAlbum">        <span property="dateCreated">1977</span> album         <span property="name">News of the World</span>     </span>   </span>. <p>   <strong>Genre:</strong> <span property="genre">Rock</span><br />   Listen here:<br />   <p typeof="AudioObject">      <script type=-quot-text-javascript-quot-<-span>-gt-<-span> -var- -fo-new-flashobject-quot-http-google.com-flash-preview-player.swf-quot-,-quot-flashplayer_719-quot-,-quot-358-quot-,-quot-16-quot-,-quot-6-quot-,-quot-#ffffff-quot "sc2"></script>      <meta itemprop="encodingFormat" content="mp3" />      <meta itemprop="contentURL" content="http://freemedia.org/WeAreTheChampions.mp3" />  </p>   <p><a href="download.htm" property="offers">Download this song</a></p> </p> </div>

Using Microdata

<div itemscope itemtype="http://schema.org/MusicRecording">   <span itemprop="byArtist">      <span itemscope itemtype="http://schema.org/MusicGroup">       British rock band        <span itemprop="name">Queen</span>      </span>   </span>   for their <span itemprop="inAlbum">      <span itemscope itemtype="http://schema.org/MusicAlbum">        <span itemprop="dateCreated">1977</span> album         <span itemprop="name">News of the World</span>     </span>   </span>. <p>   <strong>Genre:</strong> <span itemprop="genre">Rock</span><br />   Listen here:<br />   <p itemscope itemtype="http://schema.org/AudioObject">      <script type=-quot-text-javascript-quot-<-span>-gt-<-span> -var- -fo-new-flashobject-quot-http-google.com-flash-preview-player.swf-quot-,-quot-flashplayer_719-quot-,-quot-358-quot-,-quot-16-quot-,-quot-6-quot-,-quot-#ffffff-quot "sc2"></script>      <meta itemprop="encodingFormat" content="mp3" />      <meta itemprop="contentURL" content="http://freemedia.org/WeAreTheChampions.mp3" />  </p>   <p><a href="download.htm" itemprop="offers">Download this song</a></p> </p> </div>

=== Using Microformats

Personal tools

Namespaces

Variants

Actions

Navigation

Toolbox