Skip to content

Instantly share code, notes, and snippets.

@pfefferle
Last active February 10, 2017 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfefferle/dc107e919bd4049e43e5cbf19824c4b9 to your computer and use it in GitHub Desktop.
Save pfefferle/dc107e919bd4049e43e5cbf19824c4b9 to your computer and use it in GitHub Desktop.
Websemantics Artikel
<a href="http://jeff.example.org" rel="friend met">...
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>How to complete Memorandum cover sheets</title>
<meta name="dc:creator">John Doe</meta>
</head>
</html>
<div class="h-card">
<a class="p-name u-url" href="http://example.org">John Doe</a>
<a class="u-email" href="mailto:johndoe@example.org">
johndoe@example.org
</a>
</div>
<div vocab="http://schema.org/" typeof="Person">
<a property="url" href="http://example.org">
<span property="name">John Doe</span>
</a>
<span property="email">
johndoe@example.org
</span>
</div>
<div itemscope itemtype="http://schema.org/Person">
<a itemprop="url" href="http://example.org">
<span itemprop="name">John Doe</span>
</a>
<a itemprop="email" href="mailto:johndoe@example.org">
johndoe@example.org
</a>
</div>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Person",
"name": "John Doe",
"url": "http://example.org",
"url": "johndoe@example.org"
}
</script>
{"items": [{
"type": ["h-card"],
"properties": {
"name": ["John Doe"],
"url": ["http:\/\/example.org"],
"email": ["mailto:johndoe@example.org"]
}
}]}
<div itemscope itemtype="http://schema.org/Person">
<span itemprop="name">John Doe</span>
<span itemprop="follows" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">John Doe</span>
</span>
</div>
<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
</head>
</html>
<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Panasonic White 60L Refrigerator</span>
<img src="panasonic-fridge-60l-white.jpg" alt="">
<div itemprop="aggregateRating"
itemscope itemtype="http://schema.org/AggregateRating">
<meter itemprop="ratingValue" min=0 value=3.5 max=5>Rated 3.5/5</meter>
(based on <span itemprop="reviewCount">11</span> customer reviews)
</div>
</div>
<!-- JSON-LD -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "JSON-LD",
"url": "http://example.org"
}
</script>
<!-- Microdata -->
<div itemscope itemtype="http://schema.org/Organization">
<a itemprop="url" href="http://example.org">
<span itemprop="name">Microdata</span>
</a>
</div>
<!-- RDFa -->
<div vocab="http://schema.org/" typeof="Organization">
<a property="url" href="http://example.org">
<span property="name">RDFa</span>
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment