Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Validating XHTML+RDFa 1.0 with hCard and XFN example document
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "">
<html xmlns="" version="XHTML+RDFa 1.0"
<title>Tom Morris</title>
<div about="" typeof="foaf:Person v:vCard" class="vcard">
<!-- This document contains both RDFa and the hCard and XFN microformats. -->
<h1 property="foaf:name v:fn" class="fn">Tom Morris</h1>
<dd><a href="" class="email v:email" rel="foaf:mbox"></a></dd>
<dd property="foaf:gender">male</dd>
<address class="adr">
<span class="region">East Sussex</span>,
<span class="country-name">United Kingdom</span>
<dd><a rel="foaf:schoolHomepage" href="">Heythrop College</a>,
<a rel="foaf:schoolHomepage" href="">University of London</a></dd>
<dt>closest airport</dt>
<dd><a href="" rel="foaf:based_near">London Gatwick</a></dd>
<a class="url" property="foaf:jabberID" href=""></a>
<a class="url" property="foaf:aimChatID" href="aim:goim?screenname=tommorris">tommorris</a>
<dt>yahoo im</dt>
<a class="url" property="foaf:yahooChatID" href="ymsgr:sendIM?tom.morris">tom.morris</a>
<p>I am a <a href=""
about="" typeof="veg:Ovo-LactoVegetarian" rel="tag">vegetarian</a> (and not one
of those silly ones who eats fish or chicken and calls themselves a vegetarian),
an <a href="" rel="tag"
about="" typeof="umbel:Atheist">atheist</a>, and am planning to
start a research degree in <a href="" rel="foaf:interest">philosophy</a>,
specifically the <a href="" rel="foaf:interest">problem of universals</a>,
<a href="" rel="foaf:interest tag">trope theory</a>.
<li><a class="vcard fn url" href="" rel="friend met colleague foaf:knows">Jeremy Keith</a></li>
<li><a class="vcard fn url" href="" rel="friend met colleague foaf:knows">Dan Brickley</a></li>
<li><a class="vcard fn url" href="" rel="friend met colleague foaf:knows">Ian Davis</a></li>
@prefix : <> .
<> a <>,
:fn "Tom Morris"@en;
<> "tommorris"@en;
<> <>;
<> "male"@en;
<> <>,
<> ""@en;
<> <>,
<> <>;
<> "Tom Morris"@en;
<> <>,
<> "tom.morris"@en .
<?xml version="1.0 ?>
<foaf:Person rdf:about="">
<rdf:type rdf:resource=""/>
<rdf:type rdf:resource=""/>
<rdf:type rdf:resource=""/>
<rdf:type rdf:resource=""/>
<foaf:aimChatID xml:lang="en">tommorris</foaf:aimChatID>
<foaf:based_near rdf:resource=""/>
<foaf:gender xml:lang="en">male</foaf:gender>
<foaf:interest rdf:resource=""/>
<foaf:interest rdf:resource=""/>
<foaf:interest rdf:resource=""/>
<foaf:jabberID xml:lang="en"></foaf:jabberID>
<foaf:knows rdf:resource=""/>
<foaf:knows rdf:resource=""/>
<foaf:knows rdf:resource=""/>
<foaf:mbox rdf:resource=""/>
<foaf:name xml:lang="en">Tom Morris</foaf:name>
<foaf:schoolHomepage rdf:resource=""/>
<foaf:schoolHomepage rdf:resource=""/>
<foaf:yahooChatID xml:lang="en">tom.morris</foaf:yahooChatID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.