Schema.org JSON-LD 快速上手:从 0 到 1 补齐结构化数据
面向前端与 SEO 技术人员的 JSON-LD 实操教程:什么是 Schema.org、为什么 AI 引擎依赖它、5 种最常用类型(Article/Product/FAQPage/LocalBusiness/Organization)的字段详解、代码示例与校验工具。
Schema.org 是由 Google、Microsoft、Yahoo、Yandex 联合发起的结构化数据词汇表,JSON-LD 是其推荐的嵌入格式。补齐 Article、Product、FAQPage、LocalBusiness、Organization 五类 Schema,可让 AI 引擎对你的页面事实准确率提升 39%。
什么是 Schema.org 与 JSON-LD
Schema.org 是由 Google、Microsoft、Yahoo、Yandex 于 2011 年联合发起的结构化数据词汇表,目前包含 800+ 类型、上千字段,是搜索引擎与 AI 引擎理解网页内容的通用语言。
JSON-LD(JavaScript Object Notation for Linked Data)是 Schema.org 推荐的嵌入格式,以 <script type="application/ld+json"> 标签写在 HTML <head> 或 <body> 中,不影响页面渲染,但对机器可读。
为什么 AI 引擎依赖 Schema
AI 引擎在抓取网页时,会优先解析 JSON-LD 结构化数据,因为它是机器可读的、字段明确的、Schema.org 官方规范定义的。相比从正文中用 NLP 抽取事实,Schema 的准确率接近 100%。
思格 GEO 2025 年 Q1 客户样本数据显示:有 Schema 的页面被 AI 引用时,事实性描述准确率比无 Schema 页面高 2.3 倍(89% vs 39%)。
5 种最常用 Schema 类型
1. Article / BlogPosting(博客与新闻)
适用于所有长文内容。必填字段:headline、author、datePublished、dateModified、image、publisher。
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "什么是 GEO?2026 年完整指南",
"description": "GEO 是让品牌内容被 AI 搜索引擎主动引用的系统性方法...",
"image": "https://example.com/og-image.jpg",
"author": {
"@type": "Person",
"name": "张三",
"jobTitle": "GEO 研究员",
"url": "https://example.com/authors/zhangsan"
},
"publisher": {
"@type": "Organization",
"name": "思格 GEO",
"logo": { "@type": "ImageObject", "url": "https://example.com/logo.png" }
},
"datePublished": "2025-09-08",
"dateModified": "2026-01-12",
"mainEntityOfPage": "https://example.com/blog/what-is-geo"
}2. Product + Offer + AggregateRating(电商)
适用于产品页。必填:name、description、image、brand、offers(含 price、priceCurrency、availability)、aggregateRating(含 ratingValue、reviewCount)。
{
"@context": "https://schema.org",
"@type": "Product",
"name": "人体工学办公椅 Pro",
"description": "符合 BIFMA 标准的人体工学办公椅,支持 4D 扶手与 lumbar 调节...",
"image": ["https://example.com/chair-1.jpg", "https://example.com/chair-2.jpg"],
"brand": { "@type": "Brand", "name": "思格家居" },
"sku": "LX-CHAIR-PRO-001",
"offers": {
"@type": "Offer",
"price": "2499",
"priceCurrency": "CNY",
"availability": "https://schema.org/InStock",
"url": "https://example.com/products/chair-pro"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.7",
"reviewCount": "328"
}
}3. FAQPage(问答页)
适用于任何包含 Q&A 结构的页面。每个问题用 Question 类型,答案用 acceptedAnswer 字段。注意:Google 2023 年起限制了 FAQPage 富媒体结果的展示范围,但对 AI 引擎引用仍极其重要。
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "GEO 和 SEO 有什么区别?",
"acceptedAnswer": {
"@type": "Answer",
"text": "SEO 决定用户能否在搜索结果页找到你;GEO 决定 AI 引擎在生成应答时是否愿意引用你..."
}
}
]
}4. LocalBusiness(本地商户)
适用于有实体门店的业务。必填:name、address、telephone、openingHours、geo(经纬度)。可细化为 Dentist、Restaurant、Store 等子类型。
5. Organization(组织)
适用于公司官网首页与关于页面。必填:name、url、logo、description。建议补充:foundingDate、founder、sameAs(社交主页)、knowsAbout(专业领域)。
校验工具与最佳实践
- Google Rich Results Test: https://search.google.com/test/rich-results
- Schema.org 官方校验器: https://validator.schema.org/
- Bing Webmaster Tools Markup Validator
- 思格 GEO Schema 生成器(内置双重校验 + SERP 预览)