[uf-discuss] Microformats and keyword spamming

Toby Inkster mail at tobyinkster.co.uk
Tue Jun 2 03:36:56 PDT 2009


On Tue, 2009-06-02 at 00:01 -0700, Elli Albek wrote:
> 3. Alternative formats: RDF? 

RDFa is pretty good at avoiding repetition. e.g.

<body xmlns:r="http://purl.org/stuff/rev#"
      xmlns:foaf="http://xmlns.com/foaf/0.1/">
  <div typeof="foaf:Organization">
    <h1 property="foaf:name">Maharishi Ayurveda Health Spa</h1>
    <ul rel="r:hasReview">
      <li typeof="r:Review">
        <h2 property="r:title">Awesomeness!</h2>
        <p rel="r:reviewer">
          <a rel="foaf:homepage" href="http://bob.example.com/"
            property="foaf:name">Bob</a>
        </p>
        <p property="r:text">This spa is very good!</p>
        <p property="r:rating" content="4">★★★★☆</p>
      </li>
      <li typeof="r:Review">
        <h2 property="r:title">Awfulness!</h2>
        <p rel="r:reviewer">
          <a rel="foaf:homepage" href="http://joe.example.com/"
            property="foaf:name">Joe</a>
        </p>
        <p property="r:text">This spa is horrible!</p>
        <p property="r:rating" content="1">★☆☆☆☆</p>
      </li>
    </ul>
  </div>
</body>

-- 
Toby Inkster <mail at tobyinkster.co.uk>



More information about the microformats-discuss mailing list