Google结构化数据测试工具不会验证goodrelations扩展

时间:2013-10-25 17:30:28

标签: validation seo e-commerce microdata

<div 
    itemscope="itemscope" 
    itemtype="http://schema.org/Product" 
    itemid="urn:mpn:123456789"> 
        <link 
            itemprop="additionalType" 
            href="http://www.productontology.org/id/Lawn_mower">
        <span 
            itemprop="http://purl.org/goodrelations/v1#category" 
            content="Lawn mower">
                Lawn mower
        </span>
</div>  

上面有我的标记片段,当我穿上Google Structured Data Testing Tool时,我收到了错误:

&#39;错误:页面包含属性&#34; http://purl.org/goodrelations/v1#category&#34;这不是架构的一部分。&#39;。

我正在考虑从span标记中删除微数据,并仅使用微数据保留上面的链接标记以使其有效。

在[http://www.productontology.org/doc/Lawn_mower]上有声明:&#34;最新消息:schema.org刚刚实施了我们的建议,即使用此服务定义additionalType属性记住!&#34;我认为这意味着它是兼容的。

这个错误会影响我的SEO吗?有一些建议给我?我搜索了很多,但找不到相关的东西。


@daviddeering帮助后的最终标记:

<div itemscope="itemscope" itemtype="http://schema.org/Product" itemid="urn:mpn:123456789">
    <a href="http://127.0.0.1/jkr/123456789" itemprop="url">
        <img itemprop="image" alt="Partnumber:123456789" src="http://127.0.0.1/jkr/img/123456789.jpg" content="http://127.0.0.1/jkr/img/123456789.jpg">
        <span itemprop="name">123456789 - Bosh lawn mower</span>
    </a>
    <span>PartNumber: </span>
    <span itemprop="mpn">123456789</span>
    <span>Line: </span>
    <span itemprop="additionalType" href="http://www.productontology.org/id/Lawn_Mower">Lawn mower</span>
    <span>Manuf.: </span>
    <div itemscope="itemscope" itemprop="manufacturer"
    itemtype="http://schema.org/Organization"><span itemprop="name">Bosh</span>
    </div>
    <div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer">
        <meta itemprop="availabilityStarts" content="2013-10-20 05:27:36"><span itemprop="priceCurrency" content="USD">USS</span><span itemprop="price" content="565.29">565,29*</span>
        <link itemprop="availability" href="http://schema.org/OutOfStock"><span itemprop="inventoryLevel" content="0">Ask for it</span>
    </div>
</div>

1 个答案:

答案 0 :(得分:1)

产品架构必须始终包含名称。而你上一个itemprop线的结构是不正确的。所以下面的代码在Google的测试工具中测试得很好:

<div 
itemscope="itemscope" 
itemtype="http://schema.org/Product" 
itemid="urn:mpn:123456789"> 
<span itemprop="name">Name of Lawn Mower</span>
    <link 
        itemprop="additionalType" 
        href="http://www.productontology.org/id/Lawn_mower">
    <span rel="gr:hasBusinessFunction" resource="http://purl.org/goodrelations/v1#sell" 
        content="Lawn mower">
            Lawn mower
    </span>
</div>  

虽然在您的情况下,我不确定是否有必要将产品架构和GoodRelations标记结合起来。您可以使用GoodRelations创建整个标记,或者您可以使用schema.org并只使用标记[link              itemprop = “additionalType”         href =“http://www.productontology.org/id/Lawn_mower”]它当前在代码中然后继续使用模式来标记其余部分。

相关问题