schemaorg-coda :: Example

eg-0342

From v29.4

JSON-LD

{
  "@context": "https://schema.org/",
  "@type": "Message",
  "sender": {
    "@type": "Person",
    "name": "Dom Portwood"
  },
  "recipient": {
    "@type": "Person",
    "name": "Peter Gibbons"
  },
  "about": {
    "@type": "Thing",
    "name": "TPS reports"
  },
  "datePublished": "2016-02-29",
  "dateRead": "2016-03-03",
  "messageAttachment": {
    "@type": "CreativeWork",
    "name": "New coversheet"
  }
}

RDFa

<div vocab="https://schema.org/" typeof="Message">
  <div property="sender" typeof="Person">
    <meta property="name" content="Dom Portwood" />
  </div>
  <div property="recipient" typeof="Person">
    <meta property="name" content="Peter Gibbons" />
  </div>
  <div property="about" typeof="Thing">
    <meta property="name" content="TPS reports" />
  </div>
  <meta property="datePublished" content="2016-02-29" />
  <meta property="dateRead" content="2016-03-03" />
  <div property="messageAttachment" typeof="CreativeWork">
    <meta property="name" content="New coversheet" />
  </div>
</div>

Microdata

<div itemscope itemtype="https://schema.org/Message">
  <div itemscope itemprop="sender" itemtype="https://schema.org/Person">
    <meta itemprop="name" content="Dom Portwood" />
  </div>
  <div itemscope itemprop="recipient" itemtype="https://schema.org/Person">
    <meta itemprop="name" content="Peter Gibbons" />
  </div>
  <div itemscope itemprop="about" itemtype="https://schema.org/Thing">
    <meta itemprop="name" content="TPS reports" />
  </div>
  <meta itemprop="datePublished" content="2016-02-29" />
  <meta itemprop="dateRead" content="2016-03-03" />
  <div itemscope itemprop="messageAttachment" itemtype="https://schema.org/CreativeWork">
    <meta itemprop="name" content="New coversheet" />
  </div>
</div>

Pre-Markup

A message from Dom Portwood to Peter Gibbons about TPS reports.