If you ever did a google search and wondered “how do you put those stars in the search results?” Then you want to know what RDFa is and how it works.
The focus of this post is not to present the RDFa, but its practical use in Magento. In this article we will talk more specifically about the use of RDFa in product evaluation. That will generate an organic search result like this:

RDFa Rating Magento
Got your attention!?
Quick introduction
I need to explain quickly what we’ll do next, so it does not look like something out of this world.
RDFa is a text markup, just like HTML is. So what we will do is something very simple… just mark the text with the equivalent tags. To learn more about RDFa go to:
https://support.google.com/webmasters/answer/146898?hl=en-EN
It would be very useful if the Magento development team already created this RDF markup natively in the themes, but unfortunately so far this does not exist. So we must take the steps below.
RDFa product evaluation markup
There are several types of RDFa content marking, at this moment we will see how to use RDFa marking to display the evaluation of our products in organic search results.
To begin, let’s edit the summary.phtml file that is located at:
app > design > frontend > base > default > template > review > helper > summary.phtml
Do not change files in base/default, make a copy of this file to default/default or your custom package/theme, and apply changes to the copy.
At the beginning of the file, in class=”ratings” add: