由Google测试工具显示为错误的Json-LD结构化数据

问题描述 投票:0回答:1

[使用以下JSON-LD结构化数据,Google测试工具会引发错误:

{
  "@context": "http://schema.org",
  "@type": "Person",
  "name" : "Brent",
  "makesOffer" : {
        "@type" :"Offer",
        "priceSpecification" : {
            "@type" : "UnitPriceSpecification",
            "priceCurrency" : "USD",
            "price" : "18000" },
        "itemOffered" : {
            "@type" : "Car",
            "name" : "2009 Volkswagen Golf V GTI MY09 Direct-Shift Gearbox",
            "description" : "2009 Volkswagen Golf V GTI MY09 Direct-Shift Gearbox in perfect mechanical condition and low kilometres. It's impressive 2.0 litre turbo engine makes every drive a fun experience. Well looked after by one owner with full service history. It drives like new and has only done 50,000kms. (...)",
        "image" : "2009_Volkswagen_Golf_V_GTI_MY09.png",
        "color" : "Black",
        "numberOfForwardGears" : "6",
        "vehicleEngine" : {
            "@type": "EngineSpecification",
            "name" : "4 cylinder Petrol Turbo Intercooled 2.0 L (1984 cc)"
            },
        "numberOfAirbags" : "6"
        }
    }
}

引发的错误是:您必须指出要约,评论或aggregateRating。

但是这些数据是schema.org在其汽车标记页面上提供的通用示例。

那么,为什么使用schema.org建议的方法,Google会弹出错误消息?

为澄清起见,数据如下:

Person 
-> makesOffer
--> itemOffered 
---> car

[看来,只要您遵循该路径(提供某项内容的人),Google都会抛出错误

schema.org json-ld
1个回答
0
投票

Google测试工具的错误和警告通常与在Google中获取丰富摘要所需的结构化数据有关。在这种情况下,您的标记不符合产品要求以获取丰富的摘要。

https://developers.google.com/search/docs/data-types/product

由于您的标记与这些丰富的摘要无关,因此您可以忽略该错误。

© www.soinside.com 2019 - 2024. All rights reserved.