Microdata error: "The property http://xmlns.com/foaf/0.1/name is not recognized by Google"

Microdata error: "The property http://xmlns.com/foaf/0.1/name is not recognized by Google"

按照我的理解,名为 Product 的 Schema.org 类型继承自 Thing 类型。那么为什么会这样:

<meta  itemscope="" itemtype="http://schema.org/Product" itemid="https://some.url" itemref="md25" />
<div class="field-item even" itemprop="description http://xmlns.com/foaf/0.1/description">
    long description goes here
</div>
<meta  itemprop="name http://xmlns.com/foaf/0.1/name" content="Blueair Pro L" id="md25" />

…失败,当我输入in Google's testing tool?

我收到错误:

The property http://xmlns.com/foaf/0.1/name is not recognized by Google for an object of type Product.

但是 descriptionThing 的一部分并且 Product 继承自它。它甚至 shows it on the Schema.org page here.

那么为什么会抛出这个错误?

引用的消息是关于 属性 http://xmlns.com/foaf/0.1/name,而不是关于 属性 http://schema.org/namehttp://schema.org/description

也没有说会报错(在Microdata中,FOAF词汇表使用absolute URLs as properties), it just says that Google doesn’t recognize it. Which is not surprising, because Google doesn’t文档支持是有效的。

旁注:您不能像这样将 metaitemscope 一起使用。您应该改用 div(或更具体的)元素。