structured-data-audit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStructured Data Audit
结构化数据审计
Check a site's JSON-LD: is it valid, is it the right type for the page, and does the site describe each entity (the organization, the website, the authors, the products) once, with a stable identity, instead of redeclaring it differently on every page.
Valid markup does not guarantee rich results. Search engines decide eligibility, and markup must describe what is visible on the page.
检查一个网站的 JSON-LD:它是否有效,是否适合该页面类型,以及该网站是否仅描述每个实体(组织、网站、作者、产品)一次,并赋予其稳定身份,而不是在每个页面上都以不同方式重新声明。
有效的标记并不保证能获得富结果。搜索引擎会决定是否符合展示资格,而标记必须描述页面上可见的内容。
Before the first audit
首次审计前
Run . If it fails, install the CLI from squirrelscan.com/download (the skill has ). Then run :
squirrel --versionsquirrelscanreferences/install.mdsquirrel auth status- Signed out, or : the audit runs on this machine, is free, and nothing is published.
--offline - Signed in: the audit is billed in credits (50 plus 2 per audited page, plus 1 per distinct external link the cloud verifies), adds the site to the user's dashboard, can turn on recurring audits and publishes an unlisted report. Tell the user the cost () and get a yes. Offer
squirrel creditsor--offline. For a site the user does not own, add--no-publish: nothing is added to the dashboard, scheduled or published.--ephemeral
Every flag below is checked against the squirrel CLI docs (https://docs.squirrelscan.com/cli/audit). Rule docs: .
https://docs.squirrelscan.com/rules/{category}/{rule_id}运行 。如果失败,请从 squirrelscan.com/download 安装 CLI( skill 的 中有说明)。然后运行 :
squirrel --versionsquirrelscanreferences/install.mdsquirrel auth status- 未登录,或使用 :审计将在本机运行,免费,且不会发布任何内容。
--offline - 已登录:审计将按 credits 计费(基础 50 credits,每个受审计页面另加 2 credits,云端验证的每个不同外部链接再加 1 credit),将站点添加到用户仪表板,可启用定期审计,并发布一份不公开索引的报告。告知用户费用()并获得确认。可提供
squirrel credits或--offline。如果用户并不拥有该站点,请添加--no-publish:不会将任何内容添加到仪表板、定时任务或发布结果中。--ephemeral
下面使用的每个标志都已根据 squirrel CLI 文档(https://docs.squirrelscan.com/cli/audit)进行了核对。规则文档:`https://docs.squirrelscan.com/rules/{category}/{rule_id}`。
Run it
运行
bash
squirrel audit https://example.com --level surface --rule-include schema --format json -o schema.json
squirrel entities # the site-wide entity graph from the latest audit
squirrel entities --problem no-id,conflict,split-identity,dangling- runs the per-page and site-wide structured data rules (
--rule-include schema,schema/json-ld-valid,schema/expected-typeand the type rules such asschema/entity-*,schema/product,schema/article,schema/breadcrumb,schema/faq,schema/local-business).schema/organization - The entity map collapses all JSON-LD into one graph. Sixty valid blocks with no
Organizationare sixty organizations to a search engine. Entity problems are@id,no-id,conflict,danglingandsingle-page. Thesplit-identityskill'ssquirrelscanandreferences/entity-map.mdhave the shape that works and the exact change per stack. Read them when anreferences/entity-map-fixes.mdfinding appears.entity-* - Use when the entity map matters: it is built from the pages crawled.
--level full
bash
squirrel audit https://example.com --level surface --rule-include schema --format json -o schema.json
squirrel entities # 从最新审计中获取全站实体图
squirrel entities --problem no-id,conflict,split-identity,dangling- 运行逐页及全站结构化数据规则(
--rule-include schema、schema/json-ld-valid、schema/expected-type,以及schema/entity-*、schema/product、schema/article、schema/breadcrumb、schema/faq、schema/local-business等类型规则)。schema/organization - 实体图会将所有 JSON-LD 合并为一个图。对搜索引擎而言,60 个没有 的有效
@id块就等于 60 个组织。实体问题包括Organization、no-id、conflict、dangling和single-page。当出现split-identity发现项时,entity-*skill 的squirrelscan和references/entity-map.md包含有效结构及按技术栈进行精确修改的方法。请在出现这些发现项时查阅相关文档。references/entity-map-fixes.md - 当实体图很重要时,使用 :它会根据已爬取的页面构建。
--level full
Fix order
修复顺序
- Parse errors first: (a block that does not parse is ignored entirely).
schema/json-ld-valid - Identity: give each real-world entity one stable (for example
@id), declare it fully once, and reference it byhttps://example.com/#organizationelsewhere. Rules:@id,schema/entity-id-format,schema/entity-organization-missing,schema/entity-website-missing,schema/entity-split-identity,schema/entity-conflicts,schema/entity-dangling,schema/entity-orphan.schema/entity-publisher-mismatch - Type fit: ,
schema/expected-type(a page type missing the markup its siblings have).schema/coverage-outlier - Required and recommended properties per type: ,
schema/product,schema/article,schema/organization,schema/local-business,schema/video,schema/review,schema/rating-scope,schema/faq.schema/breadcrumb - Markup that claims more than the page shows: where a finding says the markup states something the page does not, fix the page or remove the markup. Never add markup for content users cannot see.
- 先处理解析错误: (无法解析的块会被完全忽略)。
schema/json-ld-valid - 身份标识: 为每个现实世界中的实体提供一个稳定的 (例如
@id),完整声明一次,并在其他位置通过https://example.com/#organization引用。规则:@id、schema/entity-id-format、schema/entity-organization-missing、schema/entity-website-missing、schema/entity-split-identity、schema/entity-conflicts、schema/entity-dangling、schema/entity-orphan。schema/entity-publisher-mismatch - 类型适配: 、
schema/expected-type(某类页面缺少同级页面已有的标记)。schema/coverage-outlier - 各类型必需及推荐属性: 、
schema/product、schema/article、schema/organization、schema/local-business、schema/video、schema/review、schema/rating-scope、schema/faq。schema/breadcrumb - 标记所声明的内容超出页面实际展示的内容: 如果发现项指出标记声明了页面不存在的内容,请修复页面或删除标记。绝不要为用户看不到的内容添加标记。
Where the fix usually lives
修复通常位于哪里
| Stack | Look here |
|---|---|
| WordPress with Yoast SEO | Yoast outputs one schema graph with |
| Next.js | one |
| Shopify | the theme's product JSON-LD (often duplicated by an app), and |
| Webflow | Site settings or page custom code (head) |
| Static and docs | the layout template's head, generated from site config so every page agrees |
Validate in the user's tools of choice once the audit is clean (for example Google's Rich Results Test); squirrelscan does not claim rich-result eligibility.
| 技术栈 | 查看位置 |
|---|---|
| 使用 Yoast SEO 的 WordPress | Yoast 会输出一个带 |
| Next.js | 在根布局中放置一个 |
| Shopify | 主题中的产品 JSON-LD(通常会与应用输出重复),以及 |
| Webflow | 站点设置或页面自定义代码(head) |
| 静态站点和文档站点 | 布局模板的 head,由站点配置生成,从而确保每个页面保持一致 |
审计清理完成后,使用用户选择的工具进行验证(例如 Google 的 Rich Results Test);squirrelscan 不保证获得富结果展示资格。
Prove it
验证修复
Re-audit, then . An entity that gains an changes key, so read the section (and its : or , and should be empty) rather than the added and removed lists.
squirrel entities --diff@idgainedIdcoverageprovenpartialnotCrawled重新审计,然后运行 。实体获得 后其键会发生变化,因此应读取 部分(以及其中的 : 或 ,同时 应为空),而不是查看新增和移除列表。
squirrel entities --diff@idgainedIdcoverageprovenpartialnotCrawledStop condition
停止条件
Stop when is clean, no , or remain on a full crawl, each page type has the markup its siblings have or a reason it does not, and every finding about markup the page does not back up is resolved by fixing the page or the markup.
schema/json-ld-validentity-conflictsentity-split-identityentity-dangling当 无问题、全量爬取后不再存在 、 或 、每种页面类型都具备同级页面已有的标记或存在不添加的理由,并且所有关于标记内容无法在页面上得到印证的问题都已通过修复页面或标记解决时,停止处理。
schema/json-ld-validentity-conflictsentity-split-identityentity-danglingHand off
后续处理
Titles, canonicals, content: . The wider loop: .
seo-auditaudit-website标题、canonical 和内容:。更广泛的审计流程:。
seo-auditaudit-website