附录B:常用Schema标记模板(针对生成引擎)
B.1 概述
生成式搜索引擎(如 Google SGE、Bing Chat、Perplexity、豆包、DeepSeek 等)在提取信息时,高度依赖结构化数据。与传统搜索引擎不同,生成引擎更倾向于直接引用 Schema 标记中的结论性、事实性、可验证内容,而非仅仅用于展示富媒体片段。
本附录提供一系列可直接复制使用的 JSON-LD 模板,专门针对生成引擎的引用逻辑进行了优化。
B.2 核心原则
- 结论先行:将核心答案放在
description或suggestedAnswer的最前面。 - 权威引用:使用
citation、mentions、about标记信息来源。 - 实体化:使用
@id定义唯一实体,方便引擎关联知识图谱。 - 多模态:包含
image、video、speakable字段,适配多模态输出。
B.3 模板:FAQPage(最常用)
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "如何优化网站加载速度?",
"acceptedAnswer": {
"@type": "Answer",
"text": "优化网站加载速度的核心方法包括:1)启用CDN和HTTP/2;2)压缩图片和代码;3)减少HTTP请求;4)使用浏览器缓存。",
"suggestedAnswer": "启用CDN和HTTP/2是提升首屏加载速度最有效的手段,可减少50%以上的延迟。",
"citation": {
"@type": "TechArticle",
"name": "Web性能优化最佳实践",
"url": "https://example.com/web-performance-guide"
}
},
"image": "https://example.com/images/load-speed.png",
"video": "https://example.com/videos/optimize-speed.mp4"
},
{
"@type": "Question",
"name": "什么是Core Web Vitals?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Core Web Vitals是Google衡量用户体验的核心指标,包括LCP(最大内容绘制)、INP(交互到下一次绘制)和CLS(累积布局偏移)。",
"suggestedAnswer": "LCP应小于2.5秒,INP应小于200毫秒,CLS应小于0.1。"
}
}
]
}
关键点:
suggestedAnswer字段是生成引擎优先引用的内容,应包含最精炼的结论。citation字段提供权威来源,增加可信度。image和video字段让生成引擎有机会输出多媒体答案。
B.4 模板:QAPage(适用于论坛/社区)
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "React和Vue哪个更适合大型项目?",
"text": "我正在开发一个大型企业级应用,需要选择前端框架。",
"dateCreated": "2024-03-15T10:00:00Z",
"upvoteCount": 42,
"author": {
"@type": "Person",
"name": "前端开发者"
},
"acceptedAnswer": {
"@type": "Answer",
"text": "对于大型项目,React的生态系统更成熟,TypeScript支持更好,且拥有更多企业级库(如Redux、React Query)。Vue 3的Composition API也表现优秀,但社区资源相对较少。",
"suggestedAnswer": "React更适合需要复杂状态管理和大量第三方集成的企业级项目。",
"dateCreated": "2024-03-16T08:30:00Z",
"upvoteCount": 128,
"author": {
"@type": "Person",
"name": "资深架构师"
}
},
"suggestedAnswer": [
{
"@type": "Answer",
"text": "如果团队经验以React为主,选择React;如果团队偏好简洁语法,Vue 3也是好选择。",
"upvoteCount": 56
}
]
}
}
关键点:
acceptedAnswer是被采纳的答案,优先被引用。suggestedAnswer数组可提供多个补充答案。upvoteCount和author增强权威性。
B.5 模板:HowTo(步骤指南)
{
"@context": "https://schema.org",
"@type": "HowTo",
"name": "如何配置Nginx反向代理",
"description": "本教程将指导你完成Nginx反向代理的基本配置。",
"image": "https://example.com/images/nginx-proxy.png",
"estimatedCost": {
"@type": "MonetaryAmount",
"currency": "USD",
"value": "0"
},
"supply": [
{
"@type": "HowToSupply",
"name": "一台Linux服务器"
},
{
"@type": "HowToSupply",
"name": "已安装Nginx"
}
],
"tool": [
{
"@type": "HowToTool",
"name": "文本编辑器"
}
],
"step": [
{
"@type": "HowToStep",
"position": 1,
"name": "编辑配置文件",
"text": "打开Nginx配置文件,通常位于 /etc/nginx/nginx.conf。",
"image": "https://example.com/images/step1.png",
"url": "https://example.com/nginx-guide#step1"
},
{
"@type": "HowToStep",
"position": 2,
"name": "添加代理配置",
"text": "在server块中添加location / { proxy_pass http://localhost:3000; }。",
"suggestedAnswer": "核心配置:proxy_pass指向你的应用服务器地址。",
"code": {
"@type": "Code",
"text": "location / {\n proxy_pass http://localhost:3000;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n}"
}
}
],
"totalTime": "PT10M"
}
关键点:
suggestedAnswer在每个步骤中提供关键结论。code字段直接提供可复制的代码片段,生成引擎可能直接输出。totalTime让用户了解耗时。
B.6 模板:Article + Speakable(支持语音输出)
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "2024年SEO趋势:生成式搜索的崛起",
"description": "生成式AI正在重塑搜索,SEO需要从关键词优化转向答案优化。",
"author": {
"@type": "Person",
"name": "张三",
"url": "https://example.com/author/zhangsan"
},
"datePublished": "2024-06-01",
"dateModified": "2024-06-10",
"image": "https://example.com/images/seo-trends.png",
"publisher": {
"@type": "Organization",
"name": "搜索未来出版社",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
},
"speakable": {
"@type": "SpeakableSpecification",
"cssSelector": [
".article-summary",
".key-takeaway"
]
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://example.com/seo-trends-2024"
},
"mentions": [
{
"@type": "Thing",
"name": "Google SGE",
"url": "https://example.com/glossary/google-sge"
},
{
"@type": "Thing",
"name": "E-E-A-T",
"url": "https://example.com/glossary/eeat"
}
]
}
关键点:
speakable指定哪些CSS选择器内的内容适合语音朗读,生成引擎可能优先引用。mentions列出文章提及的关键实体,帮助引擎建立知识关联。mainEntityOfPage明确页面核心实体。
B.7 模板:Product(电商优化)
{
"@context": "https://schema.org",
"@type": "Product",
"name": "智能扫地机器人 Pro Max",
"description": "支持激光导航、自动集尘、湿拖功能的旗舰扫地机器人。",
"sku": "ROBOT-2024-001",
"mpn": "2024-001",
"brand": {
"@type": "Brand",
"name": "CleanMaster"
},
"image": "https://example.com/images/robot-pro-max.jpg",
"offers": {
"@type": "Offer",
"url": "https://example.com/buy/robot-pro-max",
"priceCurrency": "CNY",
"price": "2999.00",
"priceValidUntil": "2024-12-31",
"availability": "https://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "CleanMaster官方旗舰店"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.7",
"reviewCount": "1234"
},
"review": [
{
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "5"
},
"author": {
"@type": "Person",
"name": "用户A"
},
"reviewBody": "吸力强劲,地图规划非常精准。"
}
],
"suggestedAnswer": "CleanMaster智能扫地机器人Pro Max售价2999元,支持激光导航和自动集尘,用户评分4.7/5。"
}
关键点:
suggestedAnswer字段直接提供产品核心卖点和价格,生成引擎可能直接引用。aggregateRating提供社会证明。review数组提供用户评价。
B.8 模板:TechArticle + Code(技术文档)
{
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "使用Python实现快速排序",
"description": "快速排序是一种高效的排序算法,平均时间复杂度为O(n log n)。",
"proficiencyLevel": "Beginner",
"dependencies": "Python 3.6+",
"codeSampleType": "full",
"code": {
"@type": "Code",
"text": "def quicksort(arr):\n if len(arr) <= 1:\n return arr\n pivot = arr[len(arr) // 2]\n left = [x for x in arr if x < pivot]\n middle = [x for x in arr if x == pivot]\n right = [x for x in arr if x > pivot]\n return quicksort(left) + middle + quicksort(right)",
"codeLink": "https://example.com/code/quicksort.py"
},
"suggestedAnswer": "快速排序通过选择一个基准元素,将数组分为小于和大于基准的两部分,然后递归排序。"
}
关键点:
code字段直接提供可执行的代码。codeSampleType指定代码类型。proficiencyLevel帮助引擎判断难度。
B.9 模板:MedicalWebPage(医疗/健康)
{
"@context": "https://schema.org",
"@type": "MedicalWebPage",
"headline": "感冒和流感的区别",
"description": "感冒和流感都是呼吸道疾病,但由不同病毒引起,症状严重程度不同。",
"lastReviewed": "2024-05-20",
"reviewedBy": {
"@type": "Person",
"name": "李医生",
"credential": "医学博士",
"affiliation": {
"@type": "Organization",
"name": "XX医院"
}
},
"mainContentOfPage": {
"@type": "WebPageElement",
"cssSelector": ".symptom-comparison"
},
"suggestedAnswer": "感冒通常症状较轻,包括流鼻涕、打喷嚏;流感则伴有高烧、全身酸痛和严重疲劳。"
}
关键点:
reviewedBy提供医疗权威背书。lastReviewed确保信息时效性。suggestedAnswer提供核心结论。
B.10 模板:Event(活动优化)
{
"@context": "https://schema.org",
"@type": "Event",
"name": "2024年AI开发者大会",
"description": "聚焦生成式AI、大模型应用和工程实践。",
"startDate": "2024-09-15T09:00:00+08:00",
"endDate": "2024-09-17T18:00:00+08:00",
"location": {
"@type": "Place",
"name": "国家会议中心",
"address": {
"@type": "PostalAddress",
"streetAddress": "天辰东路7号",
"addressLocality": "北京",
"addressCountry": "CN"
}
},
"offers": {
"@type": "Offer",
"url": "https://example.com/tickets/ai-conf-2024",
"price": "1999.00",
"priceCurrency": "CNY",
"availability": "https://schema.org/InStock"
},
"organizer": {
"@type": "Organization",
"name": "AI技术联盟"
},
"suggestedAnswer": "2024年AI开发者大会将于9月15-17日在北京国家会议中心举办,票价1999元。"
}
关键点:
startDate和endDate精确到分钟。location包含结构化地址。suggestedAnswer提供活动核心信息。
B.11 模板:Recipe(食谱/教程)
{
"@context": "https://schema.org",
"@type": "Recipe",
"name": "红烧肉",
"description": "经典中式红烧肉,肥而不腻,入口即化。",
"image": "https://example.com/images/braised-pork.jpg",
"prepTime": "PT20M",
"cookTime": "PT90M",
"totalTime": "PT110M",
"recipeYield": "4人份",
"recipeIngredient": [
"五花肉 500克",
"冰糖 30克",
"生抽 2汤匙",
"老抽 1汤匙",
"料酒 2汤匙",
"姜片 3片",
"八角 2个"
],
"recipeInstructions": [
{
"@type": "HowToStep",
"position": 1,
"text": "五花肉切块,冷水下锅焯水去血沫。",
"suggestedAnswer": "焯水时加入料酒和姜片去腥。"
},
{
"@type": "HowToStep",
"position": 2,
"text": "锅中放少量油,加入冰糖炒至焦糖色。",
"suggestedAnswer": "小火慢炒,避免糖色变苦。"
}
],
"suggestedAnswer": "红烧肉的关键是炒糖色和慢炖90分钟,让肉质酥烂。"
}
关键点:
recipeInstructions中每个步骤的suggestedAnswer提供关键技巧。recipeIngredient使用数组,方便引擎提取。
B.12 模板:Course(在线课程)
{
"@context": "https://schema.org",
"@type": "Course",
"name": "全栈SEO与GEO实战",
"description": "从搜索引擎优化到生成式引擎优化,覆盖技术SEO、内容策略和自动化工具。",
"provider": {
"@type": "Organization",
"name": "搜索未来学院",
"sameAs": "https://example.com"
},
"courseCode": "SEO-GEO-101",
"hasCourseInstance": {
"@type": "CourseInstance",
"courseMode": "online",
"startDate": "2024-07-01",
"endDate": "2024-08-15",
"instructor": {
"@type": "Person",
"name": "王老师"
}
},
"suggestedAnswer": "本课程涵盖传统SEO和GEO双引擎优化,适合全栈工程师和SEO从业者。"
}
关键点:
hasCourseInstance提供具体课程时间。suggestedAnswer提供课程核心价值。
B.13 模板:SoftwareApplication(工具/应用)
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "SEO Analyzer Pro",
"description": "一站式SEO诊断工具,支持结构化数据验证、爬虫模拟和性能检测。",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Web",
"offers": {
"@type": "Offer",
"price": "99.00",
"priceCurrency": "USD",
"priceValidUntil": "2024-12-31"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"ratingCount": "256"
},
"suggestedAnswer": "SEO Analyzer Pro是一款Web端SEO诊断工具,支持结构化数据验证和性能检测,月费99美元。"
}
关键点:
applicationCategory明确应用类型。suggestedAnswer提供核心功能描述。
B.14 模板:LocalBusiness(本地商家)
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "北京朝阳区SEO咨询公司",
"description": "提供专业SEO和GEO优化服务,专注生成式搜索引擎优化。",
"url": "https://example.com",
"telephone": "+86-10-12345678",
"address": {
"@type": "PostalAddress",
"streetAddress": "朝阳区建国路88号",
"addressLocality": "北京",
"addressRegion": "北京",
"postalCode": "100022",
"addressCountry": "CN"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 39.9042,
"longitude": 116.4074
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"opens": "09:00",
"closes": "18:00"
}
],
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"reviewCount": "89"
},
"suggestedAnswer": "北京朝阳区SEO咨询公司提供SEO和GEO优化服务,位于建国路88号,工作日9:00-18:00营业。"
}
关键点:
geo提供精确地理位置。openingHoursSpecification提供营业时间。suggestedAnswer提供商家核心信息。
B.15 模板:BreadcrumbList(面包屑导航)
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "首页",
"item": "https://example.com"
},
{
"@type": "ListItem",
"position": 2,
"name": "SEO教程",
"item": "https://example.com/seo-tutorials"
},
{
"@type": "ListItem",
"position": 3,
"name": "结构化数据",
"item": "https://example.com/seo-tutorials/structured-data"
}
]
}
关键点:
- 帮助生成引擎理解页面层级关系。
- 每个
ListItem提供唯一itemURL。
B.16 模板:VideoObject(视频优化)
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "如何优化Core Web Vitals",
"description": "本视频详细讲解LCP、INP、CLS的优化方法。",
"thumbnailUrl": "https://example.com/thumbnails/core-web-vitals.jpg",
"uploadDate": "2024-05-01",
"duration": "PT15M30S",
"contentUrl": "https://example.com/videos/core-web-vitals.mp4",
"embedUrl": "https://example.com/embed/core-web-vitals",
"interactionStatistic": [
{
"@type": "InteractionCounter",
"interactionType": "https://schema.org/WatchAction",
"userInteractionCount": "12345"
}
],
"transcript": "大家好,今天我们来聊聊Core Web Vitals的优化...",
"suggestedAnswer": "优化Core Web Vitals的关键是减少LCP、INP和CLS,本视频提供具体实现方法。"
}
关键点:
transcript提供视频文字内容,方便引擎提取信息。interactionStatistic提供播放量作为权威信号。suggestedAnswer提供视频核心结论。
B.17 模板:Organization(组织/品牌)
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "搜索未来科技有限公司",
"url": "https://example.com",
"logo": "https://example.com/logo.png",
"description": "专注搜索引擎与生成式引擎优化的技术公司。",
"foundingDate": "2020-01-01",
"founder": [
{
"@type": "Person",
"name": "李四"
}
],
"sameAs": [
"https://weibo.com/example",
"https://zhihu.com/org/example",
"https://github.com/example"
],
"contactPoint": {
"@type": "ContactPoint",
"telephone": "+86-400-123-4567",
"contactType": "customer service",
"availableLanguage": ["Chinese", "English"]
},
"suggestedAnswer": "搜索未来科技有限公司成立于2020年,专注于SEO和GEO优化服务。"
}
关键点:
sameAs关联社交媒体账号,增强权威性。contactPoint提供联系方式。suggestedAnswer提供组织核心信息。
B.18 模板:Person(个人/作者)
{
"@context": "https://schema.org",
"@type": "Person",
"name": "张三",
"givenName": "三",
"familyName": "张",
"jobTitle": "SEO工程师",
"worksFor": {
"@type": "Organization",
"name": "搜索未来科技有限公司"
},
"url": "https://example.com/author/zhangsan",
"sameAs": [
"https://linkedin.com/in/zhangsan",
"https://github.com/zhangsan"
],
"description": "10年SEO经验,专注生成式搜索引擎优化。",
"knowsAbout": [
"SEO",
"GEO",
"结构化数据",
"全栈开发"
],
"suggestedAnswer": "张三是一位资深SEO工程师,拥有10年经验,专注于生成式搜索引擎优化。"
}
关键点:
knowsAbout列出专业领域,帮助引擎判断权威性。sameAs关联个人社交账号。
B.19 模板:FAQPage + 多语言(国际化)
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is GEO?",
"inLanguage": "en",
"acceptedAnswer": {
"@type": "Answer",
"text": "GEO (Generative Engine Optimization) is the practice of optimizing content for AI-powered search engines.",
"suggestedAnswer": "GEO optimizes content for AI search engines like ChatGPT and Perplexity.",
"inLanguage": "en"
}
},
{
"@type": "Question",
"name": "什么是GEO?",
"inLanguage": "zh",
"acceptedAnswer": {
"@type": "Answer",
"text": "GEO(生成式引擎优化)是针对AI驱动的搜索引擎优化内容的实践。",
"suggestedAnswer": "GEO优化内容以适应ChatGPT、Perplexity等AI搜索引擎。",
"inLanguage": "zh"
}
}
]
}
关键点:
- 使用
inLanguage字段区分不同语言版本。 - 每个问题独立提供多语言答案。
B.20 模板:DataFeed(数据源/API)
{
"@context": "https://schema.org",
"@type": "DataFeed",
"name": "产品价格数据源",
"description": "实时更新产品价格和库存信息。",
"dateModified": "2024-06-15T10:00:00Z",
"dataFeedElement": [
{
"@type": "DataFeedItem",
"dateCreated": "2024-06-15T10:00:00Z",
"item": {
"@type": "Product",
"name": "智能手表",
"sku": "WATCH-001",
"offers": {
"@type": "Offer",
"price": "1999.00",
"priceCurrency": "CNY"
}
}
}
],
"suggestedAnswer": "产品价格数据源提供实时价格和库存信息,支持API集成。"
}
关键点:
- 适用于开放API或数据源页面。
dataFeedElement提供数据条目。
B.21 模板:WebPage + 核心实体(通用)
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "SEO与GEO双引擎优化指南",
"description": "全面指南,涵盖传统SEO和生成式引擎优化。",
"url": "https://example.com/dual-engine-guide",
"mainEntity": {
"@type": "Article",
"headline": "SEO与GEO双引擎优化指南",
"author": {
"@type": "Person",
"name": "张三"
}
},
"primaryImageOfPage": {
"@type": "ImageObject",
"url": "https://example.com/images/dual-engine-guide.png"
},
"significantLink": [
"https://example.com/seo-basics",
"https://example.com/geo-basics"
],
"suggestedAnswer": "本指南提供SEO和GEO双引擎优化的完整策略,适合全栈工程师。"
}
关键点:
mainEntity明确页面核心实体。significantLink提供重要关联页面。suggestedAnswer提供页面核心价值。
B.22 注意事项
- 避免过度标记:每个页面只使用1-2个核心Schema类型,避免冗余。
- 保持数据一致:Schema中的信息必须与页面实际内容一致。
- 定期更新:价格、库存、日期等动态信息需通过SSR或API动态生成。
- 测试验证:使用Google Rich Results Test或Schema.org验证工具检查。
- 生成引擎偏好:
suggestedAnswer、citation、speakable字段对生成引擎尤其重要。
