I'm using Rich Snippets to markup my content according to the collections on schema.org. I am using RDFa Lite to do so and am now having a problem with the rel
attribute. Some of my links do have the rel="nofollow"
attribute/value. As RDFa Lite is a subset of RDFa, the rel
attribute gets recognised as additional markup. Please see this upload to Google's Structured Data Testing Tool for the extracted data for the following markup:
<div vocab="http://schema.org/" typeof="SportsTeam">
<span property="name">San Francisco 49ers</span>
<div property="member" typeof="OrganizationRole">
<div property="member" typeof="http://schema.org/Person">
<span property="name">Joe Montana</span>
</div>
<span property="startDate">1979</span>
<span property="endDate">1992</span>
<span property="namedPosition">Quarterback</span>
<a rel="nofollow" href="http://www.google.com/">A Paid Link</a>
</div>
The problem is of course, that the Paid Link shouldn't appear in the structured markup. Any ideas how to solve this?
One possibility is to use prefixes for your Schema.org usage. Because the RDFa Core Initial Context defines
schema
forhttp://schema.org/
, you can even use it without specifying it in aprefix
attribute first:You can add an empty
vocab=""
on (or around) the elements that userel
for purposes outside of RDFa. Like:(Also note that you can use custom (non-URI)
rel
values alongside RDFa in HTML if you just add aproperty
on the same element (this makes an RDFa processor ignore therel
, as defined in extension 7 of RDFa 1.1 in HTML). E.g. by addingproperty="author"
next torel="me"
.)