schemaorg-coda :: Example

eg-0425

From v29.4

JSON-LD

{
  "@context":"https://schema.org",
  "@type":"DiscussionForumPosting",
  "@id":"http://www.reddit.com/r/webdev/comments/2gypch/is_schemaorg_still_a_thing/",
  "headline":"Is Schema.org still a thing?",
  "author": {
    "@type": "Person",
    "name": "haecceity123"
  },
  "interactionStatistic": {
    "@type": "InteractionCounter",
    "interactionType": "https://schema.org/CommentAction",
    "userInteractionCount": 25
  }
}

RDFa

<div vocab="https://schema.org/" typeof="DiscussionForumPosting" resource="http://www.reddit.com/r/webdev/comments/2gypch/is_schemaorg_still_a_thing/">
  <h1 property="headline">Is Schema.org still a thing?</h1>
  <p>Author:
    <span property="author" typeof="Person">
      <span property="name">haecceity123</span>
    </span>
  </p>
  <div property="interactionStatistic" typeof="InteractionCounter">
    <link property="interactionType" href="https://schema.org/CommentAction" />
    <p>Comment count: <span property="userInteractionCount">25</span></p>
  </div>
</div>

Microdata

<div itemid="http://www.reddit.com/r/webdev/comments/2gypch/is_schemaorg_still_a_thing/" itemscope itemtype="https://schema.org/DiscussionForumPosting">
  <h1 itemprop="headline">Is Schema.org still a thing?</h1>
  <p>Author:
    <span itemprop="author" itemscope itemtype="https://schema.org/Person">
      <span itemprop="name">haecceity123</span>
    </span>
  </p>
  <div itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
    <link itemprop="interactionType" href="https://schema.org/CommentAction" />
    <p>Comment count: <span itemprop="userInteractionCount">25</span></p>
  </div>
</div>

Pre-Markup

<h1>Is Schema.org still a thing?</h1>
<p>Author: haecceity123</p>
<p>Comment count: 25</p>