Skip to content

Instantly share code, notes, and snippets.

@deckool
Created July 28, 2016 09:08
Show Gist options
  • Save deckool/4774cb0f9ca4b92ed6262a3ef500e2ea to your computer and use it in GitHub Desktop.
Save deckool/4774cb0f9ca4b92ed6262a3ef500e2ea to your computer and use it in GitHub Desktop.
full and tested rdfa article
<body vocab="http://schema.org/">
...
<div property="breadcrumb">
<a href="http://www.ibm.com/developerworks/">IBM developerWorks</a> >
<a href="http://www.ibm.com/developerworks/web/">Web development</a> >
<a href="http://www.ibm.com/developerworks/views/web/library.jsp"
>Technical library</a>
</div>
<div typeof="Article">
<div property="image" typeof="ImageObject">
<link property="url" href="image.jpg" />
<meta property="height" content="50" />
<meta property="width" content="50" />
</div>
<link property="publisher" href="#Organization" />
<div property="name headline">An introduction to RDF</div>
<p property="author" resource="#uche.ogbuji" typeof="Person">
by <span property="name">Uche Ogbuji</span>, <span property="jobTitle">Partner</span>,
<span property="worksFor">Zepheira</span>.
</p>
<div vocab="http://schema.org/" resource="#Organization" typeof="Organization">
<span property="name">L'Amourita Pizza</span>
Located at
<div property="address" typeof="PostalAddress">
<span property="streetAddress">123 Main St</span>,
<span property="addressLocality">Albuquerque</span>,
<span property="addressRegion">NM</span>.
</div>
<div property="logo" typeof="imageobject">
<img property="url" src="http://example.com" />
</div>
Phone: <span property="telephone">206-555-1234</span>
<a href="http://pizza.example.com/" property="url">http://pizza.example.com</a>
</div>
<div>Published: <span property="datePublished dateModified">01 Dec 2000</span></div>
<div property="description">
<b>Summary</b>: This article introduces Resource Description Framework (RDF),
developed by the W3C for Web-based metadata, using XML as an interchange syntax.
RDF's essential aim is to make work easier for autonomous agents,
which would refine the Web by improving search engines and service directories.
Author Uche Ogbuji gives an overview of RDF aspects from schemas to usage scenarios.
The article assumes that you are already familiar with XML.
</div>
<div>Tags for this article:
<span property="keywords">introduction</span>,
<span property="keywords">rdf</span>,
<span property="keywords">tutorial</span>
.</div>
<div property="mainEntityOfPage">
This article's texts is suitable for a wide audience, with a Fog index of.
</div>
</div>
...
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment