我在网站中使用schema.org类型Article
。该页面允许用户对文章发表评论。在文章中提到的是,可以用UserComments
类型标记注释。我做到了,而且很长一段时间内效果很好。
几天前,Google(网站管理员工具)开始抱怨我的标记中的错误。他们希望我将属性location
和startDate
添加到每个注释中。
目前,我仅使用属性creator
,commentTime
和commentText
。
为什么需要添加上述属性?我不知道location
和startDate
对简单用户评论是什么。
(这可能只是收集更多数据的Google技巧吗?)
Google在哪里抱怨?以下示例根据microdata和schema.org有效(并且Google结构化数据测试工具没有显示任何警告/错误):
<article itemscope itemtype="http://schema.org/Article">
<h1 itemprop="name">Article name</h1>
<article itemprop="comment" itemscope itemtype="http://schema.org/UserComments">
<p itemprop="commentText">Comment text</p>
</article>
</article>
(我还测试了包含creator
和commentTime
的摘要:也没有警告。)
现在,Google网站管理员工具中的故障消息已经消失了。看起来Google解决了问题。