RDFa Basics video from Manu Sporny

Via Dave Beckett in #swig IRC,  Manu Sporny’s handy 10 minute overview of RDFa Basics (see also other versions, source materials).

Here’s a screen grab of the full FOAF example used. Note that the WG renamed ‘instanceof’ to ‘typeof’ recently.

FOAF example expressed in RDFa

For the video-averse, a full transcript is available. Here’s the full XHTML markup example from the above image:

<body xmlns:foaf="http://xmlns.com/foaf/0.1/">
 <span about="#jane" typeof="foaf:Person"
       property="foaf:name">Jane McJanerson</span>
 <span about="#mac" typeof="foaf:Person"
       property="foaf:name">Mac McJanerson</span>
 <span about="#jane" rel="foaf:knows"
       resource="#mac">Jane is friends with Mac.</span>

Published by danbri

Click here to type

Join the Conversation


  1. Is there anyone but me that wonder why they renamed “instanceof” to “typeof”? I don’t get it. If A is an instance of B how does that translate to A is the type of B? Or am I misinterpreting something?

  2. Little known fact – the 1st RDF spec back in ’97 had ‘instanceOf’, see http://www.w3.org/TR/WD-rdf-syntax-971002/

    It was renamed ‘rdf:type’ pretty early on. I wish we’d renamed subClassOf/subPropertyof to be ‘superClass’,’superProperty’ btw but that’s another story.

    In HTML, the word ‘type’ is already taken, hence ‘typeOf’. Read

    … as “this element describes something that is (an instance) of type Foo”.

Leave a comment