MusicComposition

A musical composition.

Example eg-0388

Without Markup (source lint)

A MusicComposition Example. The following JSON-LD models
the composition A Day in the Life by Lennon and McCartney,
regardless of who performs or records the song.

RDFa (source lint)

Not available yet.

microdata (source lint)

Not available yet.

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "MusicComposition",
    "@id": "http://musicbrainz.org/work/fd1aa4f2-ba26-3a05-b72d-4392c35a073c",
    "name": "A Day in the Life",
    "composer": [
        {
            "@type": "Person",
            "name": "John Lennon",
            "@id": "http://musicbrainz.org/artist/4d5447d7-c61c-4120-ba1b-d7f471d385b9"
        },
        {
            "@type": "Person",
            "name": "Paul McCartney",
            "@id": "http://musicbrainz.org/artist/ba550d0e-adac-4864-b88b-407cab5e76af"
        }
    ],
    "iswcCode": "T-010.140.236-1",
    "inLanguage": "EN",
    "publisher": {
        "@type": "Organization",
        "name": "Northern Songs, Ltd.",
        "@id": "http://musicbrainz.org/label/26df054d-78cf-4d83-9bb1-a41816125528"
    },
    "datePublished": "1967",
    "lyrics": {
      "@type": "CreativeWork",
      "text": "I  read the news today oh boy..."
    }
}
</script>

structured

@id http://musicbrainz.org/work/fd1aa4f2-ba26-3a05-b72d-4392c35a073c(0)
rdf:type schema:MusicComposition
schema:composer
  • rdf:type schema:Person
    schema:name John Lennon
  • rdf:type schema:Person
    schema:name Paul McCartney
schema:datePublished 1967
schema:inLanguage EN
schema:iswcCode T-010.140.236-1
schema:lyrics
rdf:type schema:CreativeWork
schema:text I read the news today oh boy...
schema:name A Day in the Life
schema:publisher
@id http://musicbrainz.org/label/26df054d-78cf-4d83-9bb1-a41816125528(1)
rdf:type schema:Organization
schema:name Northern Songs, Ltd.

Example eg-0390

Without Markup (source lint)

An example of some of the tracks on the Beatles White Album.

RDFa (source lint)

Not available yet.

microdata (source lint)

Not available yet.

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "MusicRecording",
    "@id": "http://musicbrainz.org/recording/3566e453-8f10-4a45-ac85-2c72eb183ca1",
    "name": "Back in the U.S.S.R.",
    "producer": {
        "@type": "Person",
        "name": "George Martin"
    },
    "duration": "PT2M43S",
    "recordingOf": {
        "@type": "MusicComposition",
        "name": "Back in the U.S.S.R",
        "iswcCode": "T-010.140.236-1"
    }
}
</script>

structured

@id http://musicbrainz.org/recording/3566e453-8f10-4a45-ac85-2c72eb183ca1(0)
rdf:type schema:MusicRecording
schema:duration 2 minutes and 43 seconds
schema:name Back in the U.S.S.R.
schema:producer
rdf:type schema:Person
schema:name George Martin
schema:recordingOf
rdf:type schema:MusicComposition
schema:iswcCode T-010.140.236-1
schema:name Back in the U.S.S.R

Example eg-0391

Without Markup (source lint)

<!-- Uses both the "Book" and "Product" item types to support Offer relationships -->

 <div>
   <h3>Le concerto</h3>
   <div>
       Bibliographic Details
       <table>
         <tr>
           <th>Main Author: </th>
           <td>Ferchault, Guy</td>
         </tr>
       </table>
   </div>
 </div>

 <div>
     Holdings details from Anytown City Library
     <table>
       <!-- Example of a copy available for loan -->
       <tr>
         <th>Copy </th>
         <td>Available
           <div>Barcode: <span>CONC91000937</span></div>
           <div>Call number: <span>780 R2</span></div>
           <div>Library: <span>Anytown City Library</span></div>
         </td>
       </tr>
     <table>
 </div>

RDFa (source lint)

<!-- Uses both the "Book" and "Product" item types to support Offer relationships -->
<div vocab="https://schema.org/" resource="#record" typeof="Book Product">
    <h3 property="name">
        Le concerto
    </h3>
    <div>
        Bibliographic Details
        <table>
            <tr>
                <th>
                    Main Author:
                </th>
                <td property="author">
                    Ferchault, Guy
                </td>
            </tr>
        </table>
    </div>
</div>
<div>
    Holdings details from Anytown City Library
    <table vocab="https://schema.org/">
        <!-- Example of a copy available for loan -->
        <tr typeof="Offer">
            <th>
                Copy
            </th>
            <td>
                Available
                <div>
                    Barcode: <span property="serialNumber">CONC91000937</span>
                </div>
                <div>
                    Call number: <span property="sku">780 R2</span>
                </div>
                <div>
                    Library: <span property="offeredBy" typeof="Library" resource="http://library.anytown.gov.uk">Anytown City Library</span>
                </div>
            </td>
        </tr>
    </table>
</div>

microdata (source lint)

<!-- Uses both the "Book" and "Product" item types to support Offer relationships -->

 <div itemscope itemtype="https://schema.org/Book" itemid="#record">
   <link itemprop="additionalType" href="https://schema.org/Product"/>
   <h3 itemprop="name">Le concerto</h3>
   <div>
       Bibliographic Details
       <table>
         <tr>
           <th>Main Author: </th>
           <td itemprop="author">Ferchault, Guy</td>
         </tr>
       </table>
   </div>
 </div>

 <div>
     Holdings details from Anytown City Library
     <table>
       <!-- Example of a copy available for loan -->
       <tr itemscope itemtype="https://schema.org/Offer">
         <th>Copy </th>
         <td>Available
           <link itemprop="availability" href="https://schema.org/InStock">
           <div>Barcode: <span itemprop="serialNumber">CONC91000937</span></div>
           <div>Call number: <span itemprop="sku">780 R2</span></div>
           <div>Library: <span itemprop="offeredBy" itemscope itemtype="https://schema.org/Library" itemid="http://library.anytown.gov.uk" >Anytown City Library</span></div>
           <link itemprop="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
           <link itemprop="itemOffered" href="#record">
         </td>
       </tr>
     </table>
 </div>

JSON-LD (source lint)

<script type="application/ld+json">
{
  "@context":  "https://schema.org/",
  "@id": "#record",
  "@type": "Book",
  "additionalType": "Product",
  "name": "Le concerto",
  "author": "Ferchault, Guy",
  "offers":{
      "@type": "Offer",
      "availability": "https://schema.org/InStock",
      "serialNumber": "CONC91000937",
      "sku": "780 R2",
      "offeredBy": {
          "@type": "Library",
          "@id": "http://library.anytown.gov.uk",
          "name": "Anytown City Library"
      },
      "businessFunction": "http://purl.org/goodrelations/v1#LeaseOut",
      "itemOffered": "#record"
    }
}
</script>

structured

@id http://library.anytown.gov.uk(1)
rdf:type schema:Library
schema:name Anytown City Library
rdf:type schema:Offer
schema:availability https://schema.org/InStock
schema:businessFunction http://purl.org/goodrelations/v1#LeaseOut
schema:itemOffered #record
schema:offeredBy http://library.anytown.gov.uk
schema:serialNumber CONC91000937
schema:sku 780 R2