Schema.org and structured data
Structured data is machine-readable information added to a web page to describe what the page is about. Google defines it as "a standardized format for providing information about a page and classifying the page content."[1] Schema.org is the most widely used vocabulary for that information: a collaborative, community activity whose mission is "to create, maintain, and promote schemas for structured data on the Internet."[2] This wiki is a type-by-type and rule-by-rule reference to schema.org markup and to what the main platforms document about using it, with every statement linked to the specification or documentation it comes from.
Overview
HTML tells a browser how to display text, but not what the text means. Schema.org's getting-started guide uses the example of a heading reading "Avatar": the tag does not say whether the word refers to a film or a profile picture, which "can make it more difficult for search engines to intelligently display relevant content to a user."[3] Structured data solves this by labeling the content with types, such as Movie or LocalBusiness, and properties, such as name, address or director, drawn from a shared vocabulary.[3]
Schema.org supplies that vocabulary. Its schemas page describes a set of types, each associated with a set of properties, and the development version listed 826 types, 1,540 properties, 19 datatypes, 96 enumerations and 544 enumeration members when this wiki was written.[4] Publishers write the vocabulary into pages using one of three syntaxes, Microdata, RDFa or JSON-LD.[3] Google supports all three for rich results and recommends JSON-LD.[5] See What schema.org is and Syntaxes.
Who reads the markup
Schema.org was founded in 2011 by Microsoft, Yahoo!, Google and Yandex, and its data model notes that at first it focused on the kinds of entities for which those search engines "could reasonably expect to provide some special treatment."[6] The schema.org FAQ explains that a vocabulary supported by all the major search engines makes it easier for webmasters to add markup and for search engines to build rich features.[7]
Google describes how it uses the markup it finds: "to understand the content of the page, as well as to gather information about the web and the world in general," and to enable "rich results," search results that are more engaging and display extra information.[1] Google's general guidelines are explicit that markup makes a page eligible for a feature but does not guarantee it: "Using structured data enables a feature to be present, it does not guarantee that it will be present."[5] For Google's generative AI features, its guide says that structured data "isn't required" and that "there's no special schema.org markup you need to add."[8] See Google's structured data guidelines and Supported and removed types.
Markup for organizations and local businesses
The types a business is most likely to use are Organization and LocalBusiness. Schema.org defines LocalBusiness as "a particular physical business or branch of an organization," with examples including a restaurant, a bank branch and a medical practice, and it has many more specific subtypes, from Dentist to Plumber.[9] Google's local business documentation requires only a name and an address and recommends further properties such as telephone, url, geo coordinates and opening hours.[10] For Organization markup, Google lists no required properties and recommends placing the markup on the home page or a single page that describes the organization, such as an about page.[11]
Related topics include addresses, opening hours and service areas, reviews and ratings, Person and ProfilePage markup and sameAs and identifiers.
A minimal example
The following JSON-LD describes a fictional business, Example Plumbing Co., using the Plumber type, a subtype of LocalBusiness.[12] It is shown as text and is not live markup on this page.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Example Plumbing Co.",
"url": "https://www.example.com/",
"telephone": "+1-555-0100",
"address": {
"@type": "PostalAddress",
"streetAddress": "100 Example Street",
"addressLocality": "Exampletown",
"addressRegion": "CA",
"postalCode": "90000",
"addressCountry": "US"
}
}
</script>
The @context line says the terms come from schema.org; @type names the type; and each other key is a schema.org property.[13][12] JSON-LD basics explains each part, and Validation explains how to check it.
Pages in this wiki
- Foundations: What schema.org is, Syntaxes, JSON-LD basics, @context, @id and @graph, Placement and rendering.
- Entity linking: sameAs and identifiers, Entity graphs for business sites, Names and disambiguation, about, mentions, subjectOf, mainEntity and mainEntityOfPage, WebSite and WebPage links, hasPart and isPartOf, Organization relationships, knowsAbout and knowsLanguage, Places and service areas, additionalType, citation and isBasedOn, author and publisher, speakable, DefinedTerm and DefinedTermSet.
- Types: Organization, LocalBusiness, Address, hours, service areas, Review and AggregateRating, Person and ProfilePage, FAQPage, Article, BreadcrumbList.
- Business types: Medical and dental practices, Law firms (LegalService), Home and construction trades, Restaurants (FoodEstablishment), Auto businesses, Financial and professional services, Service, Organization subtypes.
- Content and commerce types: Article and BlogPosting, Product and Offer, Event, ImageObject and VideoObject, JobPosting.
- Google's documentation: Google guidelines, Supported and removed types, Bing and AI features.
- Validation: Validation and testing.
- Type index: Full type hierarchy.
- Reference: Glossary, Common questions, Sources, About schemamarkup.wiki.
Common questions
What is schema.org?
A shared vocabulary of types and properties for structured data, run as a collaborative community activity founded by Google, Microsoft, Yahoo and Yandex.[2]
Which format does Google recommend?
JSON-LD. Google also supports Microdata and RDFa.[5]
Does structured data guarantee a rich result?
No. Google says markup enables a feature to be present but does not guarantee it.[5]
Related topics
References
- ^ "Introduction to structured data markup in Google Search". Google Search Central.
- ^ "About Schema.org". Schema.org.
- ^ "Getting started with schema.org using Microdata". Schema.org.
- ^ "Schemas (organization of schemas)". Schema.org.
- ^ "General structured data guidelines". Google Search Central.
- ^ "Data model". Schema.org.
- ^ "Schema.org FAQ". Schema.org.
- ^ "Google's guide to optimizing for generative AI features on Google Search". Google Search Central.
- ^ "LocalBusiness (type)". Schema.org.
- ^ "Local business (LocalBusiness) structured data". Google Search Central.
- ^ "Organization (Organization) structured data". Google Search Central.
- ^ "Plumber (type)". Schema.org.
- ^ "JSON-LD 1.1: A JSON-based Serialization for Linked Data (W3C Recommendation, 16 July 2020)". World Wide Web Consortium (W3C).
- ^ "Release listing". Schema.org.
- ^ "An update on the Structured Data Testing Tool (December 15, 2020, updated 2021)". Google Search Central Blog.