tommorris (owner)

Revisions

gist: 138115 Download_button fork
public
Description:
Validating XHTML+RDFa 1.0 with hCard and XFN example document
Public Clone URL: git://gist.github.com/138115.git
Embed All Files: show embed
HTML #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.0"
    xml:lang="en"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:umbel="http://umbel.org/umbel/sc/"
    xmlns:v="http://www.w3.org/2006/vcard/ns#"
    xmlns:veg="http://www.mindswap.org/2003/vegetarian.owl#">
    <head>
        <title>Tom Morris</title>
    </head>
    <body>
        <div about="http://tommorris.org/#me" 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>
            <dl>
                <dt>e-mail</dt>
                <dd><a href="mailto:tom@tommorris.org" class="email v:email" rel="foaf:mbox">tom@tommorris.org</a></dd>
                <dt>gender</dt>
                <dd property="foaf:gender">male</dd>
                <dt>location</dt>
                <dd>
                    <address class="adr">
                        <span class="region">East Sussex</span>,
                        <span class="country-name">United Kingdom</span>
                    </address>
                </dd>
                <dt>university</dt>
                <dd><a rel="foaf:schoolHomepage" href="http://www.heythrop.ac.uk/">Heythrop College</a>,
                    <a rel="foaf:schoolHomepage" href="http://www.london.ac.uk">University of London</a></dd>
                <dt>closest airport</dt>
                <dd><a href="http://sws.geonames.org/2648767/" rel="foaf:based_near">London Gatwick</a></dd>
                <dt>jabber/xmpp/gtalk</dt>
                <dd>
                    <a class="url" property="foaf:jabberID" href="xmpp:bbtommorris@gmail.com">bbtommorris@gmail.com</a>
                </dd>
                <dt>aim</dt>
                <dd>
                    <a class="url" property="foaf:aimChatID" href="aim:goim?screenname=tommorris">tommorris</a>
                </dd>
                <dt>yahoo im</dt>
                <dd>
                    <a class="url" property="foaf:yahooChatID" href="ymsgr:sendIM?tom.morris">tom.morris</a>
                </dd>
            </dl>
            
            <p>I am a <a href="http://en.wikipedia.org/wiki/Ovo-lacto_vegetarianism"
                    about="http://tommorris.org/#me" 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="http://en.wikipedia.org/wiki/Atheism" rel="tag"
                    about="http://tommorris.org/#me" typeof="umbel:Atheist">atheist</a>, and am planning to
                start a research degree in <a href="http://plato.stanford.edu/" rel="foaf:interest">philosophy</a>,
                specifically the <a href="http://www.iep.utm.edu/u/universa.htm" rel="foaf:interest">problem of universals</a>,
                <a href="http://plato.stanford.edu/entries/tropes/" rel="foaf:interest tag">trope theory</a>.
            </p>
            
            <h2>Friends</h2>
            <ul>
                <li><a class="vcard fn url" href="http://adactio.com/" rel="friend met colleague foaf:knows">Jeremy Keith</a></li>
                <li><a class="vcard fn url" href="http://danbri.org/" rel="friend met colleague foaf:knows">Dan Brickley</a></li>
                <li><a class="vcard fn url" href="http://iandavis.com/" rel="friend met colleague foaf:knows">Ian Davis</a></li>
            </ul>
            
        </div>
    </body>
</html>
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
     @prefix : <http://www.w3.org/2006/vcard/ns#> .
    
    <http://tommorris.org/#me> a <http://umbel.org/umbel/sc/Atheist>,
                <http://www.mindswap.org/2003/vegetarian.owl#Ovo-LactoVegetarian>,
                :vCard,
                <http://xmlns.com/foaf/0.1/Person>;
         :fn "Tom Morris"@en;
         <http://xmlns.com/foaf/0.1/aimChatID> "tommorris"@en;
         <http://xmlns.com/foaf/0.1/based_near> <http://sws.geonames.org/2648767/>;
         <http://xmlns.com/foaf/0.1/gender> "male"@en;
         <http://xmlns.com/foaf/0.1/interest> <http://plato.stanford.edu/>,
                <http://plato.stanford.edu/entries/tropes/>,
                <http://www.iep.utm.edu/u/universa.htm>;
         <http://xmlns.com/foaf/0.1/jabberID> "bbtommorris@gmail.com"@en;
         <http://xmlns.com/foaf/0.1/knows> <http://adactio.com/>,
                <http://danbri.org/>,
                <http://iandavis.com/>;
         <http://xmlns.com/foaf/0.1/mbox> <mailto:tom@tommorris.org>;
         <http://xmlns.com/foaf/0.1/name> "Tom Morris"@en;
         <http://xmlns.com/foaf/0.1/schoolHomepage> <http://www.heythrop.ac.uk/>,
                <http://www.london.ac.uk>;
         <http://xmlns.com/foaf/0.1/yahooChatID> "tom.morris"@en .
 
XML #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0 ?>
<rdf:RDF
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:v="http://www.w3.org/2006/vcard/ns#">
 
    <foaf:Person rdf:about="http://tommorris.org/#me">
        <rdf:type rdf:resource="http://www.mindswap.org/2003/vegetarian.owl#Ovo-LactoVegetarian"/>
        <rdf:type rdf:resource="http://umbel.org/umbel/sc/Atheist"/>
        <rdf:type rdf:resource="http://www.w3.org/2006/vcard/ns#vCard"/>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
        <foaf:aimChatID xml:lang="en">tommorris</foaf:aimChatID>
        <foaf:based_near rdf:resource="http://sws.geonames.org/2648767/"/>
        <foaf:gender xml:lang="en">male</foaf:gender>
        <foaf:interest rdf:resource="http://plato.stanford.edu/"/>
        <foaf:interest rdf:resource="http://plato.stanford.edu/entries/tropes/"/>
        <foaf:interest rdf:resource="http://www.iep.utm.edu/u/universa.htm"/>
        <foaf:jabberID xml:lang="en">bbtommorris@gmail.com</foaf:jabberID>
        <foaf:knows rdf:resource="http://adactio.com/"/>
        <foaf:knows rdf:resource="http://danbri.org/"/>
        <foaf:knows rdf:resource="http://iandavis.com/"/>
        <foaf:mbox rdf:resource="mailto:tom@tommorris.org"/>
        <foaf:name xml:lang="en">Tom Morris</foaf:name>
        <foaf:schoolHomepage rdf:resource="http://www.heythrop.ac.uk/"/>
        <foaf:schoolHomepage rdf:resource="http://www.london.ac.uk"/>
        <foaf:yahooChatID xml:lang="en">tom.morris</foaf:yahooChatID>
    </foaf:Person>
</rdf:RDF>