Sub topic 3
Types and properties in schema.org
This chapter explains how the schema.org vocabulary is organized and how to read its documentation. It assumes you can read JSON objects and arrays, and that you know from the previous chapter that JSON-LD is JSON with a few @ keywords. It uses @type and @context informally. The chapter after this one covers them in detail.
What schema.org provides
JSON-LD gives you a syntax. It does not tell you what words to use. Schema.org supplies those words. It is a shared vocabulary of types and properties, maintained by a community project that was started by Google, Microsoft, Yahoo, and Yandex. It is published at schema.org and released in numbered versions several times a year.
- A type names a kind of thing, such as
Article,Person, orProduct. - A property names a fact about a thing, such as
headline,birthDate, orprice.
A JSON-LD object picks one or more types and then fills in properties from the vocabulary. Because every consumer reads the same vocabulary, a search engine that has never seen your site still knows that datePublished means a publication date.
Schema.org is large. It has several hundred types and over a thousand properties. You will use a small fraction of them, so the skill to learn is looking things up.
Naming conventions
Schema.org names follow fixed conventions, and consumers match them exactly.
| Kind of name | Convention | Examples |
|---|---|---|
| Type | UpperCamelCase | `Article`, `LocalBusiness`, `BreadcrumbList` |
| Property | lowerCamelCase | `datePublished`, `priceCurrency`, `itemListElement` |
| Enumeration member | UpperCamelCase | `InStock`, `OutOfStock` |
Names are case-sensitive. "Headline" is not headline, and a parser will not correct it for you. A misspelled property is not an error in JSON-LD. The processor simply cannot map it to the vocabulary, so it is ignored.
The type hierarchy
Types form a tree. Each type has one or more parent types and inherits everything from them. The root is Thing.
Three points follow from the tree.
- Subtypes are more specific.
NewsArticleis anArticle, and anArticleis aCreativeWork. - Subtypes inherit properties. A
NewsArticlecan use any property defined onNewsArticle,Article,CreativeWork, orThing. - Multiple parents exist.
LocalBusinessis both anOrganizationand aPlace, so it inheritslegalNamefrom the first andgeofrom the second.
Some types you might expect to be top-level are not. Offer sits under Intangible, a grouping for abstract things such as offers, ratings, and list items. You find that out by reading the type's page, not by guessing.
Choosing how specific to be
Use the most specific type that is true. A news story is a NewsArticle, and a personal blog post is a BlogPosting. A consumer that understands only Article still understands the more specific types, because they are subtypes. A consumer that knows NewsArticle can use the extra detail. Using a vague parent type throws away information. Using a specific type that does not fit, such as NewsArticle for a product page, is worse.
Properties belong to types
Each property is defined on one or more types, and every subtype can use it. The same property can appear on many unrelated types. name is defined on Thing, so every type has it. price is defined on Offer, so Product does not have it directly. This is why a product's price goes inside a nested offers object.
The example below shows a NewsArticle using properties from three levels of the hierarchy.
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"name": "Cold brew sales double",
"headline": "Cold Brew Sales Double in a Year",
"datePublished": "2026-03-14T08:00:00+00:00",
"articleSection": "Business",
"dateline": "LISBON, Portugal"
}| Property | Defined on | Reached through |
|---|---|---|
| `name` | `Thing` | Inherited by every type |
| `headline`, `datePublished` | `CreativeWork` | `NewsArticle` is a kind of `Article`, which is a `CreativeWork` |
| `articleSection` | `Article` | Inherited from the parent type |
| `dateline` | `NewsArticle` | Defined directly on the type |
Expected types
Every property lists one or more expected types. These describe what its value should be. For example:
headlineexpectsText.datePublishedexpectsDateorDateTime.authorexpectsOrganizationorPerson.offersexpectsOfferorDemand.availabilityexpectsItemAvailability.
Two groups of expected types appear.
Data types are simple values: Text, Number, Boolean, Date, DateTime, Time, and URL. In JSON-LD you write them as JSON strings, numbers, or booleans. The next chapter covers the details.
Types from the hierarchy mean the value is another thing, described by its own object. A property that expects Person also accepts any subtype of Person. A property that expects Organization accepts a LocalBusiness.
Some expected types are enumerations, which are fixed lists of named values. ItemAvailability has members such as InStock. You write a member as its full schema.org URL, for example "https://schema.org/InStock".
Expected types are guidance
Schema.org does not enforce its expectations. The vocabulary says that a property "expects" a type, not that anything else is invalid. A Text value in author is common and often accepted, but a nested Person is more useful because it can carry a name and a URL. Consumers set their own stricter rules. Google, for example, publishes which properties it requires for each rich result. You learn about that in a later chapter.
All properties are optional as far as the vocabulary goes. Any property can also take several values, usually written as a JSON array.
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Coffee Co.",
"sameAs": [
"https://www.example.org/wiki/Example_Coffee",
"https://social.example.net/examplecoffee"
]
}Reading a type page
Every type has a page at https://schema.org/TypeName. Open https://schema.org/Article and you will see:
- The type's description and its place in the hierarchy.
- A table of properties, grouped by where they come from: "Properties from Article", "Properties from CreativeWork", "Properties from Thing".
- For each property, its expected types and a description.
- A list of more specific types below it.
Property pages work the other way round. They show "Used on these types" and the "Expected Type". If you know the property you want but not where it belongs, search for it by name and check which types use it.
Pending and retired terms
Not everything in the vocabulary is equally settled.
- Core terms are the stable main vocabulary.
- Pending terms are proposals that are available for testing but may change.
- Attic terms are retired and kept only for old markup.
- Extensions cover specialist areas, such as health or automotive data.
Prefer core terms. Do not build on pending terms unless a consumer you target documents that it reads them. If you find a term in an old example, check that it has not moved to the attic.
Common errors
- Property on the wrong type. Putting
pricedirectly on aProductis the usual case. The vocabulary defines it onOffer. - Wrong case.
Datepublishedanddatepublisheddo not matchdatePublished. - Inventing a term. Adding
"cookingDifficulty"to aRecipedoes not make it part of schema.org. - Type used for appearance. Choose a type because the page really is that thing, not because it triggers a display feature.
- Stale terms. A term copied from an old tutorial may now be in the attic.
Exercise
A page describes a local bakery with an address, a website, and a legal name. You want to use LocalBusiness. Name two parent types it inherits from, and name one property you can use because of each.
Show answer
LocalBusiness inherits from Organization and from Place. From Organization you can use legalName. From Place you can use address or geo. The vocabulary lets a type have several parents, and each parent contributes its properties.
Exercise
You wrote "price": "39.90" directly on a Product object, and the validator reports an unknown property. What is wrong, and how do you fix it?
Show answer
price is defined on Offer, not on Product. Add an offers property to the Product whose value is an object with "@type": "Offer", and move price (and priceCurrency) into that object.