Revision 3fe76ec539cccabcea18e0f150b9a9f7931320be authored by RichardWallis on 21 July 2020, 09:03:17 UTC, committed by RichardWallis on 21 July 2020, 09:03:17 UTC
1 parent 62316af
Raw File
sdo-userinteraction-examples.txt
TYPES: #interaction-counter-1 InteractionCounter,VideoObject

PRE-MARKUP:
A video has the following interactions:
YouTube: 512 up votes
Twitter: 1024 up votes
Twitter: 2345 tweets
Facebook: 1024 likes
4356 views

MICRODATA:

<div itemid="http://videolectures.net/iswc2013_guha_tunnel/" itemscope itemtype="http://schema.org/VideoObject">
  <h1 itemprop="name">Light at the End of the Tunnel</h1>
  Author: 
    <div itemprop="author" itemscope itemtype="http://schema.org/Person">
      <span itemprop="name">Ramanathan V. Guha</span>
    </div>
  
  <video controls>
    <source src="http://videolectures.net/iswc2013_guha_tunnel/" />
  </video>
  Youtube Like Count:
    <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
      <div itemprop="interactionService" itemscope itemid="https://www.youtube.com" itemtype="http://schema.org/WebSite">
        <meta itemprop="name" content="YouTube" />
      </div>
      <link itemprop="interactionType" href="http://schema.org/LikeAction"/>
      <span itemprop="userInteractionCount">512</span>
    </div>
  
  Twitter Favorite Count:
    <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
      <div itemprop="interactionService" itemscope itemid="https://www.twitter.com" itemtype="http://schema.org/SoftwareApplication">
        <meta itemprop="name" content="Twitter" />
      </div>
      <link itemprop="interactionType" href="https://schema.org/LikeAction"/>
      <span itemprop="userInteractionCount" content="1024">1,024</span>
    </div>
  
  Twitter Tweet Count:
    <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
      <div itemprop="interactionService" itemscope itemid="https://twitter.com" itemtype="http://schema.org/SoftwareApplication">
        <meta itemprop="name" content="Twitter" />
      </div>
      <link itemprop="interactionType" href="http://schema.org/ShareAction"/>
      <span itemprop="userInteractionCount" content="2345">2,345</span>
    </div>
  
  Facebook Like Count:
    <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
      <div itemprop="interactionService" itemscope itemid="https://www.facebook.com" itemtype="http://schema.org/WebSite">
        <meta itemprop="name" content="Facebook" />
      </div>
      <link itemprop="interactionType" href="http://schema.org/LikeAction"/>
      <span itemprop="userInteractionCount" content="1024">1024</span>
    </div>
 
  View Count:
    <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
      <link itemprop="interactionType" href="http://schema.org/WatchAction"/>
      <span itemprop="userInteractionCount" content="4356">4,356</span>
    </div>
  
</div>

RDFA:

<div vocab="http://schema./org/" resource="http://videolectures.net/iswc2013_guha_tunnel/" typeof="VideoObject">
  <h1 property="name">Light at the End of the Tunnel</h1>
  Author: 
    <div property="author" typeof="Person">
      <span property="name">Ramanathan V. Guha</span>
    </div>
  
  <video controls>
    <source src="http://videolectures.net/iswc2013_guha_tunnel/" />
  </video>
  YouTube Like Count:
    <div property="interactionStatistic" typeof="InteractionCounter">
      <div property="interactionService" itemscope itemid="https://www.youtube.com" itemtype="http://schema.org/WebSite">
        <meta property="name" content="YouTube" />
      </div>
      <link property="interactionType" href="http://schema.org/LikeAction"/>
      <span property="userInteractionCount">512</span>
    </div>
  
  Twitter Favorite Count:
    <div property="interactionStatistic" typeof="InteractionCounter">
      <div property="interactionService" itemscope itemid="https://twitter.com" itemtype="http://schema.org/SoftwareApplication">
        <meta property="name" content="Twitter" />
      </div>
      <link property="interactionType" href="http://schema.org/LikeAction"/>
      <span property="userInteractionCount" content="1024">1024</span>
    </div>
  
  Twitter Tweet Count:
    <div property="interactionStatistic" typeof="InteractionCounter">
      <div property="interactionService" itemscope itemid="https://twitter.com" itemtype="http://schema.org/SoftwareApplication">
        <meta property="name" content="Twitter" />
      </div>
      <link property="interactionType" href="http://schema.org/ShareAction"/>
      <span property="userInteractionCount" content="2345">2345</span>
    </div>
  
  Facebook Like Count:
    <div property="interactionStatistic" typeof="InteractionCounter">
      <div property="interactionService" itemscope itemid="https://www.facebook.com" itemtype="http://schema.org/WebSite">
        <meta property="name" content="Facebook" />
      </div>
      <link property="interactionType" href="http://schema.org/LikeAction"/>
      <span property="userInteractionCount" content="1024">1024</span>
    </div>
  
  View Count:
    <div property="interactionStatistic" typeof="InteractionCounter">
      <link property="interactionType" href="http://schema.org/WatchAction"/>
      <span property="userInteractionCount" content="4356">4356</span>
    </div>
  
</div>

JSON:
<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "VideoObject",
  "name": "Light at the End of the Tunnel",
  "@id": "http://videolectures.net/iswc2013_guha_tunnel/",
  "datePublished": "2013-11-28",
  "author": {
    "@type": "Person",
    "name": "Ramanathan V. Guha"
  },
  "interactionStatistic": [
    {
      "@type": "InteractionCounter",
      "interactionService": {
        "@type": "WebSite",
        "name": "YouTube",
        "@id": "https://youtube.com"
      },
      "interactionType": "http://schema.org/LikeAction",
      "userInteractionCount": "512"
    },
    {
      "@type": "InteractionCounter",
      "interactionService": {
        "@type": "SoftwareApplication",
        "name": "Twitter",
        "url": "https://www.twitter.com"
      },
      "interactionType": "http://schema.org/LikeAction",
      "userInteractionCount": "1024"
    },
    {
      "@type": "InteractionCounter",
      "interactionService": {
        "@type": "SoftwareApplication",
        "name": "Twitter",
        "url": "https://twitter.com"
      },
      "interactionType": "http://schema.org/ShareAction",
      "userInteractionCount": "2345"
    },
    {
      "@type": "InteractionCounter",
      "interactionService": {
        "@type": "WebSite",
        "name": "Facebook",
        "url": "https://www.facebook.com"
      },
      "interactionType": "http://schema.org/LikeAction",
      "userInteractionCount": "1024"
    },
    {
      "@type": "InteractionCounter",
      "interactionType": "http://schema.org/WatchAction",
      "userInteractionCount": "4356"
    }
  ]
}
</script>
back to top