RDFa / Microformat - Recipe Labeling Standards

I wonder if anyone can help?

After Google announced that it would take note of RDFa / Microformats for online recipes, I studied this on a couple of sites based on the recipes that I run. However, we simply do not have all the necessary data to fulfill any standards.

Is there any? Will search robots still make the most of what they find, or by skipping a few elements (for example, a review or rating of recipes), will I spend time on this?

Also, if for formatting I need to add additional divs around the information, does this invalidate all this?

Cheers, N

+4
source share
2 answers

See the hRecipe draft specification.

An hRecipe schema consists of the following properties:

* hrecipe o fn. required. text. the name of the recipe. o ingredient. required. 1 or more. text with optional valid (x)HTML markup. + value and type. optional. [experimental] o yield. optional. text. o instructions. optional. text with optional valid (x)HTML markup. o duration. optional. 1 or more. text. o photo. optional. 1 or more. using any element containing a URL, such as IMG. [experimental] o summary. optional. text. [experimental] o author. optional. 1 or more. [experimental] o published. optional. [experimental] o nutrition. optional. 1 or more. [experimental] + value and type. optional. [experimental] o tag. optional. 1 or more. [experimental] 

If you are looking for required fields fn and ingredient are required, the remaining fields are optional.
The following example is a valid hRecipe recipe:

  <div class="mydivclass1"> <h1 class="fn">Spaghetti al ragรน</h1> <div class="myfancydiv2>Ingredients:</div> <span class="ingredient"> spaghetti </span> <span class="ingredient"> ragรน </span> </div> 

To test your microformats, you can use the cool Optimus validator .

+3
source

The only "must have" tag is the name of the recipe, class fn , if you come with microformats. This, however, should be a child of a parent who has the class name hrecipe to help indexers distinguish between special data and standard text.

BUT! Support for this has just been released, and I cannot tell you if only the name of the recipe will include in any case; since this is a matter of several changes, you probably want to test it on the site, wait a few weeks and apply to other sites if it works.

As for the additional DIVs, this should not make any difference.

+1
source

Source: https://habr.com/ru/post/1307790/


All Articles