I'm having trouble figuring out if I did it right with RDFa and the schema.org blog type. My blog had a list of posts that looked like this:
<h2><a href="essays/why-orm-divides-us.html">Why ORM Divides Us</a></h2> <h2><a href="essays/heretic-calculus.html">A Heretical Calculus</a></h2>
When trying to increase it using RDFa information, in particular Blog and BlogPosting , I came up with the following:
<div vocab="http://schema.org/" typeof="Blog"> <h2 property="blogPosting" typeof="BlogPosting" resource="essays/why-orm-divides-us.html"> <a property="url" href="essays/why-orm-divides-us.html"> <span property="name">Why ORM Divides Us</span> </a> </h2> <h2 property="blogPosting" typeof="BlogPosting" resource="essays/heretic-calculus.html"> <a property="url" href="essays/heretic-calculus.html"> <span property="name">A Heretical Calculus</span> </a> </h2> ...
As far as I can tell with the Google Rich Snippets Testing Tool, it looks like it parses correctly, but I can't say. I have two more attempts:
<div vocab="http://schema.org/" typeof="Blog"> <h2 property="blogPosting" typeof="BlogPosting" resource="essays/why-orm-divides-us.html"> <a href="essays/why-orm-divides-us.html" property="name">Why ORM Divides Us</a> </h2> <h2 property="blogPosting" typeof="BlogPosting" resource="essays/heretic-calculus.html"> <a href="essays/heretic-calculus.html" property="name">A Heretical Calculus</a> </h2> ... <div vocab="http://schema.org/" typeof="Blog" rel="blogPosting"> <h2 typeof="BlogPosting" resource="essays/why-orm-divides-us.html"> <a property="url" href="essays/why-orm-divides-us.html"> <span property="name">Why ORM Divides Us</span> </a> </h2> <h2 typeof="BlogPosting" resource="essays/heretic-calculus.html"> <a property="url" href="essays/heretic-calculus.html"> <span property="name">A Heretical Calculus</span> </a> </h2> ...
So, I ask for a few pieces of information:
- How do you know if you have achieved compliance with one of these patterns?
- Which of my alternatives is right, and why?
- Why does it seem to me that you need to specify the resource directly when I find the link?
- Why is the
<a> tag so painted in the RDFa demo tool and Google Rich Snippets testing tool?
source share