【问题标题】:Webmaster tool validation for JSON + ld structured dataJSON + ld 结构化数据的站长工具验证
【发布时间】:2015-02-06 02:42:26
【问题描述】:

我正在为产品页面使用结构化数据标记。并使用 json + ld 并将脚本标签放在标题部分。

脚本部分由两行标记。当我验证http://json-ld.org/playground/index.html 中的 JSON 段时,它会给出正确的输出。但是当我使用 Google 网站管理员工具对其进行验证时,它不会向我显示内容。 http://www.google.com/webmasters/tools/richsnippets

请帮助我找出与此相关的任何问题。我想我做得对。

有关更多信息,我正在发布 JSON 片段。

<script type="application/ld+json"> {
"@context": "http://schema.org",
"@type": "Product",
"productID": "mpn:20AV002YMB",
"description": "Whether you re an overachiever or an up-and-comer, ThinkPad laptops are the tools you need. From the thin-and-light wonder to the heavy-duty mobile workstation, they re built, tested and enhanced for reliability, durability and speed. Enjoy superior web conferencing on your L540, which includes a low-light sensitive 720p HD webcam with wide-angle viewing.",
"url": "http://www.abc.lk/lenovo/business-notebook/thinkpad-l540-core-i5-4200m-4gb-500gb-15-6in-1080p-dvdrw-win7-pro-win8-pro-azb/20av002ymb/product-details/m852r253.aspx",
"name": "ThinkPad L540 Core i5-4200m / 4GB 500GB 15.6in 1080p Dvdrw Win7 Pro / Win8 Pro Azb",
"image": "https://www.abc.lk/ProductImages/images/M852R253.jpg",
"model": "ThinkPad   L540",
"manufacturer": { 
"name": "Lenovo",
"url": "http://www.abc.lk/en/lenovo"
 }, 
"offers": { 
"@type": "Offer",
"availability": "http://schema.org/OutOfStock",
"price": "706.97",
"priceCurrency": "EUR"
 } 
}
</script>

谢谢

【问题讨论】:

    标签: asp.net json google-analytics google-search-console rich-snippets


    【解决方案1】:

    Google 网站管理员工具不支持 JSON-LD(在撰写本文时),但 Google 搜索支持。

    您可以查看此线程以获取更多信息:

    https://productforums.google.com/forum/#!topic/webmasters/9lzzOw2W-dk

    并使用 Google 的电子邮件 Beta 标记测试器:

    https://www.google.com/webmasters/markup-tester/(也适用于 Web HTML)- 你的 JSON 在这里验证

    我知道这是一个旧线程,但我认为它可能对任何在这里寻找答案的人有用。

    【讨论】:

      【解决方案2】:

      现在 Google 已经创建了一个可以检测 RDFa 和 JSON-LD 的实用程序(可能还有 Microdata,还没有尝试过。)

      https://developers.google.com/webmasters/structured-data/testing-tool/

      【讨论】:

        猜你喜欢
        • 2017-11-26
        • 1970-01-01
        • 1970-01-01
        • 2020-02-06
        • 1970-01-01
        • 2020-01-12
        • 1970-01-01
        • 2017-07-07
        • 1970-01-01
        相关资源
        最近更新 更多