具有 3 个级别的嵌套微数据属性

nested microdata properties with 3 levels

我正在尝试使用微数据(使用 http://schema.org),但我在使用嵌套属性时遇到了一些困难。

简而言之,我正在尝试制作一种产品,其中包含评论,而评论又包含作者。前两个级别完全没问题,但是当我尝试将另一个级别添加到评论("Person" 类型)时,google 告诉我两件事:评论中缺少另一个级别和那个产品不接受作者属性。

我好像没有把作者纳入审稿范围。

我的代码的第一级是:

<div itemscope itemtype="http://schema.org/Product">

然后:

<span itemtype="http://schema.org/Review" itemprop="review">
    <p itemprop="reviewBody">myreview...</p>
    (author :<span itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">Name of the auhor</span>
    </span>)
</span>

你们能找出这里的错误吗?

非常感谢!

您遗漏了商品名称,也没有申报商品审核范围。

这是你需要做的:

<div itemscope itemtype="http://schema.org/Product">
   <span itemscope itemtype="http://schema.org/Review" itemprop="review">
       <p itemprop="reviewBody">myreview...</p>
       (author :<span itemscope itemprop="author" itemtype="http://schema.org/Person">
                     <span itemprop="name">Name of the auhor</span>
                </span>)
   </span>
   <span itemprop="name">Product Name</span>
</div>