'itemListElement' 在 'HowTo' 架构中无法识别

'itemListElement' not recognized in 'HowTo' schema

根据http://schema.org/HowTo and extrapolating syntax from the Microdata vs RDFa example in http://schema.org/hasOfferCatalog中的微数据示例(RDFa的实际示例似乎很少?),我整理如下:

<main vocab="http://schema.org/" typeof="HowTo">
  <h1><span property="name">How to do the Hokey Pokey</span></h1>
  <ol property="steps">
    <li property="itemListElement" typeof="HowToStep">
      <img alt="step 1" src="step1.jpg" align="left">
      <p property="itemListElement" typeof="HowToDirection">
        put your left hand in</p></li>
    <li property="itemListElement" typeof="HowToStep">
      <img alt="step 2" src="step2.jpg" align="left">
      <p property="itemListElement" typeof="HowToDirection">
        put your left hand out</p></li>

但是,当输入 Google's Structured Data Testing Tool 时,我得到:

The property itemListElement is not recognized by Google for an object of type HowTo.

Yandex's validator 还说:

WARNING: http://schema.org/itemListElement field not specified in http://schema.org/HowTo

我做错了什么?

您没有指定 HowToSection(或 HowToStep)类型作为 steps 属性 的值。

微数据示例使用:

<div id="steps" itemprop="steps" itemscope itemtype="http://schema.org/HowToSection">

等效的 RDFa 为:

<div id="steps" property="steps" typeof="HowToSection">

如果您没有为 steps 属性 提供 ItemList/CreativeWork 值,您提供的是 Text 值(这是你在你的示例标记中做什么)。但是您不能将属性(如 itemListElement)添加到 Text 值。