Entity graphs on business websites
An entity graph is the set of described things (nodes) on a site and the links between them. In JSON-LD, a node gets an identifier with the @id keyword, and other nodes point to it by repeating that identifier instead of describing it again.[1][2] This page describes a common way to arrange the nodes on a small business or organization website: one Organization, one WebSite, a WebPage for each page, and the services, places and terms the pages actually discuss. The pattern is assembled from schema.org definitions, the W3C JSON-LD 1.1 specification and Google Search Central documentation. It is not a Google requirement, and Google documents no rich result for the graph itself.[3][4]
Node identifiers
The JSON-LD specification explains why identifiers matter: "To be able to externally reference nodes in an RDF graph, it is important that nodes have an identifier," and "for nodes to be truly linked, dereferencing the identifier should result in a representation of that node."[1] It also distinguishes the two ideas that are often confused: "a URL locates a resource on the web, an IRI identifies a resource."[5] An @id value is an IRI, and a relative IRI reference such as "#organization" is resolved against the base IRI of the document, normally the page URL.[5]
In January 2024 Google switched its own code examples to use fragment identifiers ("hashtags") for in-page @id references, calling it "a schema best practice to use hashtags as resolvable in-page node identifiers in RDF." Google added that existing identifiers do not need to change.[6] A practical consequence is that a fragment on the canonical URL, such as https://www.example.com/#organization, names one thing and stays the same on every page where it is used. An @id is only a name; it does not have to be a page that displays the node, but the JSON-LD specification's advice that dereferencing should return a representation is a reason to build it on a URL that does describe the entity.[1]
One graph per page
The @graph keyword groups several node objects in one document.[7] When properties of the same node appear in more than one node object, the specification says "the keys of the different node objects need to be merged to create the properties of the resulting node."[8] That rule is what lets a WebPage node point to {"@id": "https://www.example.com/#organization"} while the full Organization node sits elsewhere in the same block.
Google's general guidelines say it understands multiple items on a page "whether you nest the items or specify each item individually," and that items which are more helpful together should be linked with @id; without the link, "Google Search may not know" how they relate.[3] Google also asks publishers to include the type that "reflects the main focus of the page."[3]
Across pages the picture is less certain. Google's documentation does not say whether it joins a node referenced by @id on one page with a node described on a different page, and it states that structured data belongs "on the page that it describes."[3] A cautious pattern is therefore to describe each page's main entity fully on that page and, where another entity is only referenced, to give its @id together with a name and url.
The nodes in the pattern
The table lists the nodes a business site typically needs and the links that carry their meaning. Every property named is defined by schema.org; the right-hand column notes where Google documents a use.
| Node and @id | Key properties and links | Documented basis |
|---|---|---|
| Organization or a LocalBusiness subtype, https://www.example.com/#organization | name, alternateName, legalName, url, logo, sameAs, identifier, address, areaServed, knowsAbout | Google recommends Organization markup on the home page or a page about the organization[9] |
| WebSite, https://www.example.com/#website | name, alternateName, url, publisher → #organization | Google reads WebSite name and alternateName on the home page for site names[10] |
| WebPage (or AboutPage, ContactPage, ProfilePage), | isPartOf → #website, about, mainEntity, primaryImageOfPage, breadcrumb | Google reads primaryImageOfPage as a preferred image signal[11] |
| Service, | name, serviceType, provider → #organization, areaServed | Schema.org definitions only; no Google feature[12][13] |
| Place or City, inside areaServed | name, sameAs, containedInPlace | Schema.org definitions only[14][15] |
| DefinedTermSet and DefinedTerm, | hasDefinedTerm, inDefinedTermSet | Schema.org definitions only[16] |
| BreadcrumbList, | itemListElement (ListItem) | Google breadcrumb feature[17] |
Google's site-name documentation adds one constraint that shapes the WebSite node: if WebSite markup already exists on the home page, "nest the site name properties in the same node" and avoid "creating an additional WebSite structured data block."[10] The same reasoning applies to the Organization: one node, one @id, referenced everywhere else. A SearchAction belongs on the WebSite only if the site really has a search function; Google removed its sitelinks search box feature in November 2024, so the action no longer drives a Google feature.[6]
Matching what the page says
Each link is a factual claim. Google's introduction says not to "add structured data about information that is not visible to the user, even if the information is accurate," and its general guidelines require markup to be "a true representation of the page content."[18][3] The guidelines also say "Don't impersonate any person or organization, or misrepresent your ownership, affiliation, or primary purpose."[3] For a graph this means a founder, employee, memberOf, sameAs or areaServed value should appear in, or be supported by, the visible page, and an organization should not be linked to profiles, registries or places that are not its own.
Common mistakes
- Invented nodes. Adding a Person, award, Place or Service that the page never mentions. Google's guidelines rule out markup about content that is not visible.[18]
- Dangling references. An @id that points to a node no block on the site ever describes. The reference then carries only an identifier, with no type or name.[2]
- Duplicate entity nodes. Two Organization nodes with different @id values, or a second WebSite block on the home page, which Google's site-name guide asks publishers to avoid.[10]
- Orphan nodes. Items placed on the page with nothing connecting them to the WebPage or the main entity. Google says unlinked items may not be understood as related.[3]
- Wrong place types. Typing a county or region as City. Schema.org defines City as "a city or town" and AdministrativeArea as "a geographical region, typically under the jurisdiction of a particular government."[19][20]
- A ContactPoint on the wrong entity. Attaching a parent company's or vendor's telephone to the local business node.[21]
- Unchecked sameAs targets. sameAs must point to a page that "unambiguously indicates the item's identity"; a URL that describes a different or merely similar entity misstates identity.[22] See sameAs and identifiers.
- Speakable selectors that match nothing. A cssSelector or xPath must address content that exists on the page.[23] See speakable.
Example
The example below uses a fictional company. The @id values are fragments on the site's canonical URLs; the Wikidata identifier is a placeholder.
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Plumber",
"@id": "https://www.example.com/#organization",
"name": "Example Plumbing Co.",
"url": "https://www.example.com/",
"logo": "https://www.example.com/logo.png",
"telephone": "+1-555-0100",
"address": { "@type": "PostalAddress", "streetAddress": "100 Example St", "addressLocality": "Exampleville", "addressRegion": "CA", "postalCode": "90000", "addressCountry": "US" },
"areaServed": { "@type": "City", "name": "Exampleville" },
"sameAs": [ "https://www.wikidata.org/wiki/Q00000000" ],
"identifier": { "@type": "PropertyValue", "propertyID": "wikidata", "value": "Q00000000" }
},
{
"@type": "WebSite",
"@id": "https://www.example.com/#website",
"name": "Example Plumbing",
"url": "https://www.example.com/",
"publisher": { "@id": "https://www.example.com/#organization" }
},
{
"@type": "WebPage",
"@id": "https://www.example.com/water-heaters#webpage",
"url": "https://www.example.com/water-heaters",
"name": "Water heater repair",
"isPartOf": { "@id": "https://www.example.com/#website" },
"about": { "@id": "https://www.example.com/water-heaters#service" },
"mainEntity": { "@id": "https://www.example.com/water-heaters#service" },
"primaryImageOfPage": { "@type": "ImageObject", "url": "https://www.example.com/img/water-heater.jpg" }
},
{
"@type": "Service",
"@id": "https://www.example.com/water-heaters#service",
"name": "Water heater repair",
"serviceType": "Water heater repair",
"provider": { "@id": "https://www.example.com/#organization" },
"areaServed": { "@type": "City", "name": "Exampleville" }
}
]
}
Common questions
Does Google require @graph?
No. Google says it understands nested items and individual items, and recommends linking related items with @id.[3]
Should @id be a fragment URL?
Google has used fragment identifiers in its examples since January 2024 and calls them a best practice, but says existing identifiers need not change.[6]
Will Google combine nodes from different pages?
Google does not document this. Its guidelines say to put structured data on the page it describes.[3]
Related topics
- @context, @id and @graph
- sameAs and identifiers
- WebSite, WebPage and page-level links
- mainEntity and mainEntityOfPage
- Organization and people relationships
- Places, areaServed and containedInPlace
References
- ^ "JSON-LD 1.1, section 3.3 Node Identifiers". World Wide Web Consortium (W3C).
- ^ "JSON-LD 1.1, section 4.5 Embedding". World Wide Web Consortium (W3C).
- ^ "General structured data guidelines". Google Search Central.
- ^ "Google's guide to optimizing for generative AI features on Google Search". Google Search Central.
- ^ "JSON-LD 1.1, section 3.2 IRIs". World Wide Web Consortium (W3C).
- ^ "Latest Google Search documentation updates". Google Search Central.
- ^ "JSON-LD 1.1, section 4.9 Named Graphs". World Wide Web Consortium (W3C).
- ^ "JSON-LD 1.1, section 9.2 Node Objects". World Wide Web Consortium (W3C).
- ^ "Organization (Organization) structured data". Google Search Central.
- ^ "Provide a site name to Google Search". Google Search Central.
- ^ "Google image SEO best practices". Google Search Central.
- ^ "Service (type)". Schema.org.
- ^ "provider (property)". Schema.org.
- ^ "areaServed (property)". Schema.org.
- ^ "containedInPlace (property)". Schema.org.
- ^ "DefinedTermSet (type)". Schema.org.
- ^ "Breadcrumb (BreadcrumbList) structured data". Google Search Central.
- ^ "Introduction to structured data markup in Google Search". Google Search Central.
- ^ "City (type)". Schema.org.
- ^ "AdministrativeArea (type)". Schema.org.
- ^ "ContactPoint (type)". Schema.org.
- ^ "sameAs (property)". Schema.org.
- ^ "Speakable (Article, WebPage) structured data (beta)". Google Search Central.
- ^ "JSON-LD 1.1: A JSON-based Serialization for Linked Data (W3C Recommendation, 16 July 2020)". World Wide Web Consortium (W3C).
- ^ "Organization (type)". Schema.org.
- ^ "WebSite (type)". Schema.org.
- ^ "WebPage (type)". Schema.org.