JSON-LD @graph & @id Entity Linking SEO Guide
In Schema.org JSON-LD, @graph combines every structured data node on a page into a single unified array, while @id assigns each entity a globally unique URI so nodes cross-reference each other without duplicating attributes.
You can inspect any live URL's entity topology, spot orphan schema islands, and compare two pages side by side in the Seoffix JSON-LD @graph Visualizer & @id Validator.
Why Separate JSON-LD Script Tags Create Disconnected Entity Islands
Most websites accumulate structured data organically across themes, CMS plugins, tag managers, and custom templates over several years.
One template emits an Organization block in the header, a blog module outputs a standalone BlogPosting block in the body, and a FAQ widget prints a third FAQPage block in the footer.
Although Google's Rich Results Test validates each widget individually for visual badge eligibility, search and AI knowledge-graph parsers see three unlinked anonymous blank nodes rather than one coherent document.
Consolidating those declarations into a single @graph spine with canonical @id pointers eliminates ambiguity around who published the page, which site owns the breadcrumb trail, and which entity is the primary topic.
How @id Fragment URIs Work Inside JSON-LD
An @id value is an IRI (typically your canonical HTTPS URL plus a deterministic hash fragment such as https://example.com/#organization) that serves as a primary key in RDF graph space.
Two foundational engineering rules govern how @id works across your entire domain:
- No Matching HTML DOM ID Required: Using
https://example.com/#organizationin JSON-LD does not require an HTML element withid="organization"on the page; the fragment simply namespaces the abstract entity from the HTML document URL itself. - Declare Full Properties Once, Reference Everywhere Else: Define the full
Organizationobject (name, logo, address,sameAs) once in the graph, then reference{"@id": "https://example.com/#organization"}insideWebSite.publisherandBlogPosting.publisher.
Standard Sitewide @id Naming Convention
Adopting a predictable fragment vocabulary prevents subtle typos (like #org on blog pages versus #organization on landing pages) that split your brand node in two:
| Schema.org Entity Type | Recommended Canonical @id Pattern |
Scope | Outgoing Relational Pointers |
|---|---|---|---|
Organization |
https://example.com/#organization |
Sitewide constant | logo → #logo; sameAs official profiles |
WebSite |
https://example.com/#website |
Sitewide constant | publisher → #organization |
WebPage |
{canonical_url}#webpage |
Per-URL unique | isPartOf → #website; breadcrumb → #breadcrumb |
BreadcrumbList |
{canonical_url}#breadcrumb |
Per-URL unique | Ordered itemListElement hierarchy from root |
BlogPosting / Article |
{canonical_url}#article |
Editorial URLs | isPartOf → #webpage; author → #author-{slug}; publisher → #organization |
Person (Author) |
https://example.com/#person-{slug} |
Sitewide constant per author | worksFor → #organization; verified sameAs links |
FAQPage (or Question list) |
Merge FAQPage into WebPage @type array or link via isPartOf |
Pages with visible Q&A | mainEntity array of Question + acceptedAnswer |
Complete Production Blueprint: Connected Editorial @graph
Below is a clean, production-grade @graph payload showing how five entities interlock without repeating organization metadata or leaving orphan nodes:
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://acme.example/#organization",
"name": "Acme Cloud Engineering",
"url": "https://acme.example/",
"logo": {
"@type": "ImageObject",
"@id": "https://acme.example/#logo",
"url": "https://acme.example/assets/logo.png",
"width": 512,
"height": 512
},
"sameAs": [
"https://github.com/acme-example",
"https://www.linkedin.com/company/acme-example"
]
},
{
"@type": "WebSite",
"@id": "https://acme.example/#website",
"url": "https://acme.example/",
"name": "Acme Cloud Docs & Engineering Blog",
"publisher": { "@id": "https://acme.example/#organization" }
},
{
"@type": "WebPage",
"@id": "https://acme.example/blog/queue-retries#webpage",
"url": "https://acme.example/blog/queue-retries",
"name": "Idempotent Queue Retries Architecture Guide",
"isPartOf": { "@id": "https://acme.example/#website" },
"breadcrumb": { "@id": "https://acme.example/blog/queue-retries#breadcrumb" }
},
{
"@type": "BreadcrumbList",
"@id": "https://acme.example/blog/queue-retries#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://acme.example/" },
{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://acme.example/blog" },
{ "@type": "ListItem", "position": 3, "name": "Idempotent Queue Retries" }
]
},
{
"@type": "BlogPosting",
"@id": "https://acme.example/blog/queue-retries#article",
"headline": "Idempotent Queue Retries Architecture Guide",
"datePublished": "2026-11-15T09:00:00+00:00",
"dateModified": "2026-11-28T14:30:00+00:00",
"mainEntityOfPage": { "@id": "https://acme.example/blog/queue-retries#webpage" },
"isPartOf": { "@id": "https://acme.example/blog/queue-retries#webpage" },
"publisher": { "@id": "https://acme.example/#organization" },
"author": {
"@type": "Person",
"@id": "https://acme.example/#person-maya-lin",
"name": "Maya Lin",
"worksFor": { "@id": "https://acme.example/#organization" }
},
"image": "https://acme.example/assets/blog/queue-retries.webp"
}
]
}
Need to draft individual node blocks quickly before assembling a custom template? Generate clean starter JSON-LD in our Schema Markup & JSON-LD Generator, then verify the connected topology inside the JSON-LD @graph Visualizer.
5 High-Impact @graph Bugs That Quietly Break Structured Data
When auditing client sites across ecommerce, SaaS, and media verticals, these five structural defects show up repeatedly:
- Protocol or Trailing-Slash Drift in @id URIs: Writing
http://example.com/#organizationin one block andhttps://example.com/#organizationin another creates two distinct nodes because IRIs compare character-for-character. - Dangling @id Pointers: Referencing
{"@id": "https://example.com/#author"}when no node in the graph actually defines#authorleaves an unresolved stub with zero name or credentials. - Unverified Rating or App Types on Free Web Pages: Attaching self-serving star markup or unverified application price fields to informational pages triggers Google Search Console structured data manual errors; stick to clean
WebPage,BreadcrumbList,FAQPage, andBlogPostingnodes unless selling physical/merchant inventory with required offer fields. - Malformed UTF-8 Bytes Inside Dynamic Strings: Unescaped database strings containing invalid byte sequences cause
json_encode()in PHP to output empty strings unlessJSON_INVALID_UTF8_SUBSTITUTEis enabled. - Schema-to-DOM Mismatch: Declaring
FAQPagequestions in JSON-LD that never appear visibly in the rendered HTML violates Google's structured data spam policies.
Why AI Search Engines Care About Connected Entity Graphs
Retrieval-augmented answer engines—including Google AI Overviews, Perplexity, and ChatGPT Search—cross-check page prose against structured entity attributes to disambiguate similarly named brands, products, and authors.
Pairing a connected JSON-LD @graph with an explicit sameAs authority ring (linking your official GitHub, LinkedIn, X, Product Hunt, and documentation profiles) gives LLMs verifiable grounding signals.
Combine connected schema with root Markdown manifests by following our companion llms.txt & 16 AI Crawler Governance Guide, and audit all 236 technical SEO and GEO checkpoints at once in the Seoffix Full SEO Site Auditor.
Merging Multi-Type Nodes: Combining WebPage and FAQPage Cleanly
Pages that answer common technical questions at the bottom of an article or utility often need both WebPage metadata and FAQPage rich-result eligibility.
You have two clean, standards-compliant patterns for representing that relationship inside your @graph:
- Multi-Typed Node (
"type": ["WebPage", "FAQPage"]): AttachmainEntity(your array ofQuestionnodes) directly onto the#webpagenode when the Q&A represents a primary purpose of the URL. - Linked Companion Node: Keep
WebPageas#webpageand emit a separateFAQPagenode at#faqcontaining"isPartOf": {"@id": "https://acme.example/guide#webpage"}so zero nodes float disconnected.
Whichever pattern you choose, never emit two separate FAQPage nodes on the same URL—Google Search Console flags duplicate FAQPage declarations as invalid structured data.
Multi-Author, Reviewer & Citation Linking for E-E-A-T
For YMYL, security, medical, financial, and deep engineering guides, connecting human authorship and editorial review inside your @graph strengthens entity disambiguation across search and LLM engines:
author&reviewedBy: Point both properties to distinctPersonnodes carryingjobTitle,worksFor(linked to#organization), and verified professional profile URLs insameAs.about&mentions: Link technical concepts to canonical Wikipedia or Wikidata entity URIs when disambiguating overloaded acronyms (for example, distinguishing Model Context Protocol from Microsoft Certified Professional).isBasedOn&citation: Reference primary RFCs, W3C specifications, or benchmark datasets directly insideBlogPostingso retrieval engines trace primary-source lineage.
Frequently Asked Questions About JSON-LD @graph & @id
Does Google prefer one @graph block over multiple JSON-LD script tags?
Google processes both formats if @id URIs match exactly across tags, yet a single server-rendered @graph payload eliminates duplicate keys, race conditions from delayed tag-manager scripts, and accidental URI mismatches.
Should @id URLs include www or trailing slashes?
Match your exact canonical URL convention 1:1. If your site 301-redirects to non-www HTTPS without trailing slashes on subpages, every @id base URI must use that identical canonical host and path.
Can client-side JavaScript inject my @graph after page load?
While Googlebot executes JavaScript during deferred rendering, many AI search crawlers—including OAI-SearchBot, Claude-SearchBot, and PerplexityBot—fetch raw initial HTML only. Always emit JSON-LD server-side in initial HTML.
Pre-Deploy Entity Graph QA Workflow
Run every template family—homepage, category hub, interactive tool, product page, and blog post—through this three-minute QA loop before pushing to production:
- Step 1: Load the staging or live URL in the JSON-LD @graph Visualizer and confirm zero orphan islands and zero unresolved
@idedges. - Step 2: Use Compare Mode to diff your entity depth and
sameAscompleteness against the current top-ranking competitor URL. - Step 3: Verify every
imageURL insideOrganization.logoandBlogPosting.imagereturns HTTP200 OKin a crawlable raster/WebP format at1200x630or higher for articles.
Inspect & Diff Any URL's JSON-LD @graph Visually
Enter any webpage or paste raw HTML into the free JSON-LD @graph Entity Visualizer to map @id connections, catch broken references, and compare competitor structured data in seconds.