schemaorg-coda :: Example

eg-0209

From v29.4

JSON-LD

{
  "@context": "https://schema.org",
  "@type": ["ItemList", "CreativeWork"],
  "name": "Top 5 covers of Bob Dylan Songs",
  "author": "John Doe",
  "about": {
    "@type": "MusicRecording",
    "byArtist": {
      "@type": "MusicGroup",
      "name": "Bob Dylan"
    }
  },
  "itemListOrder": "https://schema.org/ItemListOrderAscending",
  "numberOfItems": 5,
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 5,
      "item": {
        "@type": "MusicRecording",
        "name": "If Not For You",
        "byArtist": {
          "@type": "MusicGroup",
          "name": "George Harrison"
        }
      }
    },
    {
      "@type": "ListItem",
      "position": 4,
      "item": {
        "@type": "MusicRecording",
        "name": "The Times They Are A-Changin'",
        "byArtist": {
          "@type": "MusicGroup",
          "name": "Tracy Chapman"
        }
      }
    },
    {
      "@type": "ListItem",
      "position": 3,
      "item": {
        "@type": "MusicRecording",
        "name": "It Ain't Me Babe",
        "byArtist": [
          {
            "@type": "MusicGroup",
            "name": "Johnny Cash"
          },
          {
            "@type": "MusicGroup",
            "name": "June Carter Cash"
          }
        ]
      }
    },
    {
      "@type": "ListItem",
      "position": 2,
      "item": {
        "@type": "MusicRecording",
        "name": "Don't Think Twice It's Alright",
        "byArtist": {
          "@type": "MusicGroup",
          "name": "Waylon Jennings"
        }
      }
    },
    {
      "@type": "ListItem",
      "position": 1,
      "item": {
        "@type": "MusicRecording",
        "name": "All Along the Watchtower",
        "byArtist": {
          "@type": "MusicGroup",
          "name": "Jimi Hendrix"
        }
      }
    }
  ]
}

RDFa

<div vocab="https://schema.org/" typeof="ItemList CreativeWork">
    <h1 property="name">
        Top 5 covers of Bob Dylan Songs
    </h1>
    <div property="author" typeof="Person">
        by <span property="name">John Doe</span>
    </div>
    <div property="about" typeof="MusicRecording">
        <div property="byArtist" typeof="MusicGroup">
            <meta property="name" content="Bob Dylan">
        </div>
    </div>
    <link property="itemListOrder" href="https://schema.org/ItemListOrderAscending">
    <meta property="numberOfItems" content="5">
    <div property="itemListElement" typeof="ListItem">
        <span property="position">5</span>
        <div property="item" typeof="MusicRecording">
            <span property="name">If Not For You</span>
            <div property="byArtist" typeof="MusicGroup">
                <span property="name">George Harrison</span>
            </div>
        </div>
    </div>
    <div property="itemListElement" typeof="ListItem">
        <span property="position">4</span>
        <div property="item" typeof="MusicRecording">
            <span property="name">The Times They Are A-Changin'</span>
            <div property="byArtist" typeof="MusicGroup">
                <span property="name">Tracy Chapman</span>
            </div>
        </div>
    </div>
    <div property="itemListElement" typeof="ListItem">
        <span property="position">3</span>
        <div property="item" typeof="MusicRecording">
            <span property="name">It Ain't Me Babe</span>
            <div property="byArtist" typeof="MusicGroup">
                <span property="name">Johnny Cash</span>
            </div>
            <div property="byArtist" typeof="MusicGroup">
                <span property="name">June Carter Cash</span>
            </div>
        </div>
    </div>
    <div property="itemListElement" typeof="ListItem">
        <span property="position">2</span>
        <div property="item" typeof="MusicRecording">
            <span property="name">Don't Think Twice It's Alright</span>
            <div property="byArtist" typeof="MusicGroup">
                <span property="name">Waylon Jennings</span>
            </div>
        </div>
    </div>
    <div property="itemListElement" typeof="ListItem">
        <span property="position">1</span>
        <div property="item" typeof="MusicRecording">
            <span property="name">All Along the Watchtower</span>
            <div property="byArtist" typeof="MusicGroup">
                <span property="name">Jimi Hendrix</span>
            </div>
        </div>
    </div>
</div>

Microdata

<div itemscope itemtype="https://schema.org/ItemList https://schema.org/CreativeWork">
  <h1 itemprop="name">Top 5 covers of Bob Dylan Songs</h1>
  <div itemprop="author" itemscope itemtype="https://schema.org/Person">
    by <span itemprop="name">John Doe</span>
  </div>
  <div itemprop="about" itemscope itemtype="https://schema.org/MusicRecording">
    <div itemprop="byArtist" itemscope itemtype="https://schema.org/MusicGroup">
      <meta itemprop="name" content="Bob Dylan" />
    </div>
  </div>
  <link itemprop="itemListOrder" href="https://schema.org/ItemListOrderAscending" />
  <meta itemprop="numberOfItems" content="5" />
  <div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <span itemprop="position">5</span>
    <div itemprop="item" itemscope itemtype="https://schema.org/MusicRecording">
      <span itemprop="name">If Not For You</span>
      <div itemprop="byArtist" itemscope itemtype="https://schema.org/MusicGroup">
        <span itemprop="name">George Harrison</span>
      </div>
    </div>
  </div>
  <div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <span itemprop="position">4</span>
    <div itemprop="item" itemscope itemtype="https://schema.org/MusicRecording">
      <span itemprop="name">The Times They Are A-Changin'</span>
      <div itemprop="byArtist" itemscope itemtype="https://schema.org/MusicGroup">
        <span itemprop="name">Tracy Chapman</span>
      </div>
    </div>
  </div>
  <div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <span itemprop="position">3</span>
    <div itemprop="item" itemscope itemtype="https://schema.org/MusicRecording">
      <span itemprop="name">It Ain't Me Babe</span>
      <div itemprop="byArtist" itemscope itemtype="https://schema.org/MusicGroup">
        <span itemprop="name">Johnny Cash</span>
      </div>
      <div itemprop="byArtist" itemscope itemtype="https://schema.org/MusicGroup">
        <span itemprop="name">June Carter Cash</span>
      </div>
    </div>
  </div>
  <div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <span itemprop="position">2</span>
    <div itemprop="item" itemscope itemtype="https://schema.org/MusicRecording">
      <span itemprop="name">Don't Think Twice It's Alright</span>
      <div itemprop="byArtist" itemscope itemtype="https://schema.org/MusicGroup">
        <span itemprop="name">Waylon Jennings</span>
      </div>
    </div>
  </div>
  <div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <span itemprop="position">1</span>
    <div itemprop="item" itemscope itemtype="https://schema.org/MusicRecording">
      <span itemprop="name">All Along the Watchtower</span>
      <div itemprop="byArtist" itemscope itemtype="https://schema.org/MusicGroup">
        <span itemprop="name">Jimi Hendrix</span>
      </div>
    </div>
  </div>
</div>

Pre-Markup

Top 5 covers of Bob Dylan Songs
by John Doe
5. If Not for You -- George Harrison
4. The Times They Are A-Changin' -- Tracy Chapman
3. It Ain't Me, Babe -- Johnny Cash and June Carter Cash
2. Don't Think Twice, It's Alright -- Waylon Jennings
1. All Along the Watchtower -- Jimi Hendrix