对于 Thing 类型的对象,属性 作者未被 Google 识别
The property author is not recognized by Google for an object of type Thing
我是 Google 丰富网页摘要的新手,我对 Google 丰富网页摘要做了一些基础研究,并在我的网站中添加了以下代码:
<div class='reiew-rating'>
<div itemscope itemtype="http://schema.org/Review">
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing">
<meta itemprop="name" content=" Interview questions" />
<meta itemprop="description" content=" for entry level/juniors/freshers & experienced/seniors" /><meta itemprop="url" content="" />
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" Content="Suresh babu mamidala">
</span>
<img id="6_1" src="http://callinterview.com/images/rating_full.png" alt="rating_1" data-rat="1" >
<img id="6_2" src="http://callinterview.com/images/rating_full.png" alt="rating_2" data-rat="2" >
<img id="6_3" src="http://callinterview.com/images/rating_full.png" alt="rating_3" data-rat="3" >
<img id="6_4" src="http://callinterview.com/images/rating_full.png" alt="rating_4" data-rat="4" >
<img id="6_5" src="http://callinterview.com/images/rating_avg.png" alt="rating_5" data-rat="5" >
</div>
<div property="aggregateRating" typeof="AggregateRating">
<span property="ratingValue">4.5</span>
<meta property="bestRating" content="5"/>
<meta property="worstRating" content="1"/>
based on <span property="ratingCount">7869</span> ratings
</div>
<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Callinterview.com">
</div>
</div>
当我在 Google structured data testing tool 中测试它时,我面临以下问题 error/s:
The property author is not recognized by Google for an object of type Thing.
A value for the author field is required.
如何解决这个问题?
您将 author
属性 添加到 Thing
:
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing">
<!-- … -->
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<!-- … -->
</span>
</div>
但是 author
property is not defined for the Thing
type.
如果是 Review
的 author
,你必须确保不要将其嵌套在不同的 itemscope
下,例如:
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing">
<!-- … -->
</div>
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<!-- … -->
</span>
我是 Google 丰富网页摘要的新手,我对 Google 丰富网页摘要做了一些基础研究,并在我的网站中添加了以下代码:
<div class='reiew-rating'>
<div itemscope itemtype="http://schema.org/Review">
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing">
<meta itemprop="name" content=" Interview questions" />
<meta itemprop="description" content=" for entry level/juniors/freshers & experienced/seniors" /><meta itemprop="url" content="" />
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" Content="Suresh babu mamidala">
</span>
<img id="6_1" src="http://callinterview.com/images/rating_full.png" alt="rating_1" data-rat="1" >
<img id="6_2" src="http://callinterview.com/images/rating_full.png" alt="rating_2" data-rat="2" >
<img id="6_3" src="http://callinterview.com/images/rating_full.png" alt="rating_3" data-rat="3" >
<img id="6_4" src="http://callinterview.com/images/rating_full.png" alt="rating_4" data-rat="4" >
<img id="6_5" src="http://callinterview.com/images/rating_avg.png" alt="rating_5" data-rat="5" >
</div>
<div property="aggregateRating" typeof="AggregateRating">
<span property="ratingValue">4.5</span>
<meta property="bestRating" content="5"/>
<meta property="worstRating" content="1"/>
based on <span property="ratingCount">7869</span> ratings
</div>
<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Callinterview.com">
</div>
</div>
当我在 Google structured data testing tool 中测试它时,我面临以下问题 error/s:
The property author is not recognized by Google for an object of type Thing.
A value for the author field is required.
如何解决这个问题?
您将 author
属性 添加到 Thing
:
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing">
<!-- … -->
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<!-- … -->
</span>
</div>
但是 author
property is not defined for the Thing
type.
如果是 Review
的 author
,你必须确保不要将其嵌套在不同的 itemscope
下,例如:
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing">
<!-- … -->
</div>
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<!-- … -->
</span>