Note: You are viewing the development version of Schema.org. See how we work for more details.

mainEntity

A Schema.org Property
Indicates the primary entity described in some page or other CreativeWork.

Inverse-property: mainEntityOfPage


Values expected to be one of these types

Used on these types

Examples

Example 1
Copied
Example notes or example HTML without markup.
     <div>
      <h1>Cath's Cafe</h1>
      <p>Open: Daily from 11:00am till 8pm</p>
      <p>Phone: 555-0100-3344</p>
      <p>View <a href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3B%2Fmenu%26%2334%3B%26gt%3Bour%2520menu%26lt%3B%2Fa%26gt%3B.%26lt%3B%2Fp%26gt%3B%2520%2520%2520%2520%2520%26lt%3B%2Fdiv%26gt%3B%253C%2Fpre">
  
Example encoded as Microdata embedded in HTML.
<div itemid="http://cathscafe.example.com/" itemscope itemtype="https://schema.org/WebPage">
    <div itemprop="mainEntity" itemscope itemtype="https://schema.org/Restaurant" itemid="#thecafe">
      <h1 itemprop="name">Cath's Cafe</h1>
      <p>Open: <span itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
      <p>Phone: <span itemprop="telephone" content="+155501003344">555-0100-3344</span></p>
      <p>View <a itemprop="hasMenu" href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3B%2Fmenu%26%2334%3B%26gt%3Bour%2520menu%26lt%3B%2Fa%26gt%3B.%26lt%3B%2Fp%26gt%3B%2520%2520%2520%2520%26lt%3B%2Fdiv%26gt%3B%26lt%3B%2Fdiv%26gt%3B%253C%2Fpre">
  
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "WebPage",
    "@id": "http://cathscafe.example.com/",
    "mainEntity": {
      "@type": "Restaurant",
      "name": "Cath's Cafe",
      "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00",
      "telephone": "+155501003344",
      "hasMenu": "/menu"
    }
}
</script>
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
<a href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3Bcategory%2Fbooks.html%26%2334%3B%26gt%3BBooks%26lt%3B%2Fa%26gt%3B%2520%26gt%3B%2520%26lt%3Ba%2520href%3D%26%2334%3Bcategory%2Fbooks-literature.html%26%2334%3B%26gt%3BLiterature%2520%26amp%3Bamp%3B%2520Fiction%26lt%3B%2Fa%26gt%3B%2520%26gt%3B%2520%26lt%3Ba%2520href%3D%26%2334%3Bcategory%2Fbooks-classics%26%2334%3B%26gt%3BClassics%26lt%3B%2Fa%26gt%3B%26lt%3Bimg%2520src%3D%26%2334%3Bcatcher-in-the-rye-book-cover.jpg%26%2334%3B%2520%2520alt%3D%26%2334%3Bcover%2520art%3A%2520red%2520horse%2C%2520city%2520in%2520background%26%2334%3B%2F%26gt%3BThe%2520Catcher%2520in%2520the%2520Rye%2520-%2520Mass%2520Market%2520Paperbackby%2520%26lt%3Ba%2520href%3D%26%2334%3B%2Fauthor%2Fjd_salinger.html%26%2334%3B%26gt%3BJ.D.%2520Salinger%26lt%3B%2Fa%26gt%3B4%2520stars%2520-%25203077%2520reviewsPrice%3A%2520%246.99In%2520StockProduct%2520details224%2520pagesPublisher%3A%2520Little%2C%2520Brown%2C%2520and%2520Company%2520-%2520May%25201%2C%25201991Language%3A%2520EnglishISBN-10%3A%25200316769487Reviews%3A5%2520stars%2520-%2520%26lt%3Bb%26gt%3B%26%2334%3BA%2520masterpiece%2520of%2520literature%26%2334%3B%2520%26lt%3B%2Fb%26gt%3Bby%2520John%2520Doe.%2520Written%2520on%2520May%25204%2C%25202006I%2520really%2520enjoyed%2520this%2520book.%2520It%2520captures%2520the%2520essential%2520challenge%2520people%2520faceas%2520they%2520try%2520make%2520sense%2520of%2520their%2520lives%2520and%2520grow%2520to%2520adulthood.4%2520stars%2520-%2520%26lt%3Bb%26gt%3B%26%2334%3Blove%2520it%2520LOLOL111!%26%2334%3B%2520%26lt%3B%2Fb%26gt%3Bby%2520Bob%2520Smith%2C%2520Written%2520on%2520June%252015%2C%25202006Catcher%2520in%2520the%2520Rye%2520is%2520a%2520fun%2520book.%2520It%26%2339%3Bs%2520a%2520good%2520book%2520to%2520read.%253C%2Fpre">
  
Example encoded as Microdata embedded in HTML.
<body itemscope itemtype="https://schema.org/WebPage">
...
<div itemprop="breadcrumb">
  <a href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3Bcategory%2Fbooks.html%26%2334%3B%26gt%3BBooks%26lt%3B%2Fa%26gt%3B%2520%26gt%3B%2520%2520%26lt%3Ba%2520href%3D%26%2334%3Bcategory%2Fbooks-literature.html%26%2334%3B%26gt%3BLiterature%2520%26amp%3Bamp%3B%2520Fiction%26lt%3B%2Fa%26gt%3B%2520%26gt%3B%2520%2520%26lt%3Ba%2520href%3D%26%2334%3Bcategory%2Fbooks-classics%26%2334%3B%26gt%3BClassics%26lt%3B%2Fa%26gt%3B%26lt%3B%2Fdiv%26gt%3B%26lt%3Bdiv%2520itemprop%3D%26%2334%3BmainEntity%26%2334%3B%2520itemscope%2520itemtype%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FBook%26%2334%3B%26gt%3B%26lt%3Bimg%2520itemprop%3D%26%2334%3Bimage%26%2334%3B%2520src%3D%26%2334%3Bcatcher-in-the-rye-book-cover.jpg%26%2334%3B%2520%2520%2520%2520%2520alt%3D%26%2334%3Bcover%2520art%3A%2520red%2520horse%2C%2520city%2520in%2520background%26%2334%3B%2F%26gt%3B%26lt%3Bspan%2520itemprop%3D%26%2334%3Bname%26%2334%3B%26gt%3BThe%2520Catcher%2520in%2520the%2520Rye%26lt%3B%2Fspan%26gt%3B%2520-%2520%26lt%3Blink%2520itemprop%3D%26%2334%3BbookFormat%26%2334%3B%2520href%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FPaperback%26%2334%3B%26gt%3BMass%2520Market%2520Paperbackby%2520%26lt%3Ba%2520itemprop%3D%26%2334%3Bauthor%26%2334%3B%2520href%3D%26%2334%3B%2Fauthor%2Fjd_salinger.html%26%2334%3B%26gt%3BJ.D.%2520Salinger%26lt%3B%2Fa%26gt%3B%26lt%3Bdiv%2520itemprop%3D%26%2334%3BaggregateRating%26%2334%3B%2520itemscope%2520itemtype%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FAggregateRating%26%2334%3B%26gt%3B%2520%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3BratingValue%26%2334%3B%26gt%3B4%26lt%3B%2Fspan%26gt%3B%2520stars%2520-%2520%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3BreviewCount%26%2334%3B%26gt%3B3077%26lt%3B%2Fspan%26gt%3B%2520reviews%26lt%3B%2Fdiv%26gt%3B%26lt%3Bdiv%2520itemprop%3D%26%2334%3Boffers%26%2334%3B%2520itemscope%2520itemtype%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FOffer%26%2334%3B%26gt%3B%2520%2520Price%3A%2520%24%26lt%3Bspan%2520itemprop%3D%26%2334%3Bprice%26%2334%3B%26gt%3B6.99%26lt%3B%2Fspan%26gt%3B%2520%2520%26lt%3Bmeta%2520itemprop%3D%26%2334%3BpriceCurrency%26%2334%3B%2520content%3D%26%2334%3BUSD%26%2334%3B%2520%2F%26gt%3B%2520%2520%26lt%3Blink%2520itemprop%3D%26%2334%3Bavailability%26%2334%3B%2520href%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FInStock%26%2334%3B%26gt%3BIn%2520Stock%26lt%3B%2Fdiv%26gt%3BProduct%2520details%26lt%3Bspan%2520itemprop%3D%26%2334%3BnumberOfPages%26%2334%3B%26gt%3B224%26lt%3B%2Fspan%26gt%3B%2520pagesPublisher%3A%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3Bpublisher%26%2334%3B%26gt%3BLittle%2C%2520Brown%2C%2520and%2520Company%26lt%3B%2Fspan%26gt%3B%2520-%2520%26lt%3Bmeta%2520itemprop%3D%26%2334%3BdatePublished%26%2334%3B%2520content%3D%26%2334%3B1991-05-01%26%2334%3B%26gt%3BMay%25201%2C%25201991Language%3A%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3BinLanguage%26%2334%3B%26gt%3BEnglish%26lt%3B%2Fspan%26gt%3BISBN-10%3A%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3Bisbn%26%2334%3B%26gt%3B0316769487%26lt%3B%2Fspan%26gt%3BReviews%3A%26lt%3Bdiv%2520itemprop%3D%26%2334%3Breview%26%2334%3B%2520itemscope%2520itemtype%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FReview%26%2334%3B%26gt%3B%2520%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3BreviewRating%26%2334%3B%26gt%3B5%26lt%3B%2Fspan%26gt%3B%2520stars%2520-%2520%2520%26lt%3Bb%26gt%3B%26%2334%3B%26lt%3Bspan%2520itemprop%3D%26%2334%3Bname%26%2334%3B%26gt%3BA%2520masterpiece%2520of%2520literature%26lt%3B%2Fspan%26gt%3B%26%2334%3B%26lt%3B%2Fb%26gt%3B%2520%2520by%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3Bauthor%26%2334%3B%26gt%3BJohn%2520Doe%26lt%3B%2Fspan%26gt%3B%2C%2520%2520Written%2520on%2520%26lt%3Bmeta%2520itemprop%3D%26%2334%3BdatePublished%26%2334%3B%2520content%3D%26%2334%3B2006-05-04%26%2334%3B%26gt%3BMay%25204%2C%25202006%2520%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3BreviewBody%26%2334%3B%26gt%3BI%2520really%2520enjoyed%2520this%2520book.%2520It%2520captures%2520the%2520essential%2520%2520challenge%2520people%2520face%2520as%2520they%2520try%2520make%2520sense%2520of%2520their%2520lives%2520and%2520grow%2520to%2520adulthood.%26lt%3B%2Fspan%26gt%3B%26lt%3B%2Fdiv%26gt%3B%26lt%3Bdiv%2520itemprop%3D%26%2334%3Breview%26%2334%3B%2520itemscope%2520itemtype%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FReview%26%2334%3B%26gt%3B%2520%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3BreviewRating%26%2334%3B%26gt%3B4%26lt%3B%2Fspan%26gt%3B%2520stars%2520-%2520%2520%26lt%3Bb%26gt%3B%26%2334%3B%26lt%3Bspan%2520itemprop%3D%26%2334%3Bname%26%2334%3B%26gt%3BA%2520good%2520read.%26lt%3B%2Fspan%26gt%3B%26%2334%3B%2520%26lt%3B%2Fb%26gt%3B%2520%2520by%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3Bauthor%26%2334%3B%26gt%3BBob%2520Smith%26lt%3B%2Fspan%26gt%3B%2C%2520%2520Written%2520on%2520%26lt%3Bmeta%2520itemprop%3D%26%2334%3BdatePublished%26%2334%3B%2520content%3D%26%2334%3B2006-06-15%26%2334%3B%26gt%3BJune%252015%2C%25202006%2520%2520%26lt%3Bspan%2520itemprop%3D%26%2334%3BreviewBody%26%2334%3B%26gt%3BCatcher%2520in%2520the%2520Rye%2520is%2520a%2520fun%2520book.%2520It%26%2339%3Bs%2520a%2520good%2520book%2520to%2520read.%26lt%3B%2Fspan%26gt%3B%26lt%3B%2Fdiv%26gt%3B%26lt%3B%2Fdiv%26gt%3B...%26lt%3B%2Fbody%26gt%3B%253C%2Fpre">
  
Example encoded as RDFa embedded in HTML.
<body vocab="https://schema.org/" typeof="WebPage">
...
<div property="breadcrumb">
  <a href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3Bcategory%2Fbooks.html%26%2334%3B%26gt%3BBooks%26lt%3B%2Fa%26gt%3B%2520%26gt%3B%2520%2520%26lt%3Ba%2520href%3D%26%2334%3Bcategory%2Fbooks-literature.html%26%2334%3B%26gt%3BLiterature%2520%26amp%3Bamp%3B%2520Fiction%26lt%3B%2Fa%26gt%3B%2520%26gt%3B%2520%2520%26lt%3Ba%2520href%3D%26%2334%3Bcategory%2Fbooks-classics%26%2334%3B%26gt%3BClassics%26lt%3B%2Fa%26gt%3B%26lt%3B%2Fdiv%26gt%3B%26lt%3Bdiv%2520property%3D%26%2334%3BmainEntity%26%2334%3B%2520typeof%3D%26%2334%3BBook%26%2334%3B%26gt%3B%26lt%3Bimg%2520property%3D%26%2334%3Bimage%26%2334%3B%2520src%3D%26%2334%3Bcatcher-in-the-rye-book-cover.jpg%26%2334%3B%2520%2520%2520%2520alt%3D%26%2334%3Bcover%2520art%3A%2520red%2520horse%2C%2520city%2520in%2520background%26%2334%3B%2F%26gt%3B%26lt%3Bspan%2520property%3D%26%2334%3Bname%26%2334%3B%26gt%3BThe%2520Catcher%2520in%2520the%2520Rye%26lt%3B%2Fspan%26gt%3B%2520-%2520%26lt%3Blink%2520property%3D%26%2334%3BbookFormat%26%2334%3B%2520href%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FPaperback%26%2334%3B%26gt%3BMass%2520Market%2520Paperbackby%2520%26lt%3Ba%2520property%3D%26%2334%3Bauthor%26%2334%3B%2520href%3D%26%2334%3B%2Fauthor%2Fjd_salinger.html%26%2334%3B%26gt%3BJ.D.%2520Salinger%26lt%3B%2Fa%26gt%3B%26lt%3Bdiv%2520property%3D%26%2334%3BaggregateRating%26%2334%3B%2520typeof%3D%26%2334%3BAggregateRating%26%2334%3B%26gt%3B%2520%2520%26lt%3Bspan%2520property%3D%26%2334%3BratingValue%26%2334%3B%26gt%3B4%26lt%3B%2Fspan%26gt%3B%2520stars%2520-%2520%2520%26lt%3Bspan%2520property%3D%26%2334%3BreviewCount%26%2334%3B%26gt%3B3077%26lt%3B%2Fspan%26gt%3B%2520reviews%26lt%3B%2Fdiv%26gt%3B%26lt%3Bdiv%2520property%3D%26%2334%3Boffers%26%2334%3B%2520typeof%3D%26%2334%3BOffer%26%2334%3B%26gt%3B%2520%2520Price%3A%2520%24%26lt%3Bspan%2520property%3D%26%2334%3Bprice%26%2334%3B%26gt%3B6.99%26lt%3B%2Fspan%26gt%3B%2520%2520%26lt%3Bmeta%2520property%3D%26%2334%3BpriceCurrency%26%2334%3B%2520content%3D%26%2334%3BUSD%26%2334%3B%2520%2F%26gt%3B%2520%2520%26lt%3Blink%2520property%3D%26%2334%3Bavailability%26%2334%3B%2520href%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FInStock%26%2334%3B%26gt%3BIn%2520Stock%26lt%3B%2Fdiv%26gt%3BProduct%2520details%26lt%3Bspan%2520property%3D%26%2334%3BnumberOfPages%26%2334%3B%26gt%3B224%26lt%3B%2Fspan%26gt%3B%2520pagesPublisher%3A%2520%26lt%3Bspan%2520property%3D%26%2334%3Bpublisher%26%2334%3B%26gt%3BLittle%2C%2520Brown%2C%2520and%2520Company%26lt%3B%2Fspan%26gt%3B%2520-%2520%26lt%3Bmeta%2520property%3D%26%2334%3BdatePublished%26%2334%3B%2520content%3D%26%2334%3B1991-05-01%26%2334%3B%26gt%3BMay%25201%2C%25201991Language%3A%2520%26lt%3Bspan%2520property%3D%26%2334%3BinLanguage%26%2334%3B%26gt%3BEnglish%26lt%3B%2Fspan%26gt%3BISBN-10%3A%2520%26lt%3Bspan%2520property%3D%26%2334%3Bisbn%26%2334%3B%26gt%3B0316769487%26lt%3B%2Fspan%26gt%3BReviews%3A%26lt%3Bdiv%2520property%3D%26%2334%3Breview%26%2334%3B%2520typeof%3D%26%2334%3BReview%26%2334%3B%26gt%3B%2520%2520%26lt%3Bspan%2520property%3D%26%2334%3BreviewRating%26%2334%3B%26gt%3B5%26lt%3B%2Fspan%26gt%3B%2520stars%2520-%2520%2520%26lt%3Bb%26gt%3B%26%2334%3B%26lt%3Bspan%2520property%3D%26%2334%3Bname%26%2334%3B%26gt%3BA%2520masterpiece%2520of%2520literature%26lt%3B%2Fspan%26gt%3B%26%2334%3B%26lt%3B%2Fb%26gt%3B%2520%2520by%2520%26lt%3Bspan%2520property%3D%26%2334%3Bauthor%26%2334%3B%26gt%3BJohn%2520Doe%26lt%3B%2Fspan%26gt%3B%2C%2520%2520Written%2520on%2520%26lt%3Bmeta%2520property%3D%26%2334%3BdatePublished%26%2334%3B%2520content%3D%26%2334%3B2006-05-04%26%2334%3B%26gt%3BMay%25204%2C%25202006%2520%2520%26lt%3Bspan%2520property%3D%26%2334%3BreviewBody%26%2334%3B%26gt%3BI%2520really%2520enjoyed%2520this%2520book.%2520It%2520captures%2520the%2520essential%2520%2520challenge%2520people%2520face%2520as%2520they%2520try%2520make%2520sense%2520of%2520their%2520lives%2520and%2520grow%2520to%2520adulthood.%26lt%3B%2Fspan%26gt%3B%26lt%3B%2Fdiv%26gt%3B%26lt%3Bdiv%2520property%3D%26%2334%3Breview%26%2334%3B%2520typeof%3D%26%2334%3BReview%26%2334%3B%26gt%3B%2520%2520%26lt%3Bspan%2520property%3D%26%2334%3BreviewRating%26%2334%3B%26gt%3B4%26lt%3B%2Fspan%26gt%3B%2520stars%2520-%2520%2520%26lt%3Bb%26gt%3B%26%2334%3B%26lt%3Bspan%2520property%3D%26%2334%3Bname%26%2334%3B%26gt%3BA%2520good%2520read.%26lt%3B%2Fspan%26gt%3B%26%2334%3B%2520%26lt%3B%2Fb%26gt%3B%2520%2520by%2520%26lt%3Bspan%2520property%3D%26%2334%3Bauthor%26%2334%3B%26gt%3BBob%2520Smith%26lt%3B%2Fspan%26gt%3B%2C%2520%2520Written%2520on%2520%26lt%3Bmeta%2520property%3D%26%2334%3BdatePublished%26%2334%3B%2520content%3D%26%2334%3B2006-06-15%26%2334%3B%26gt%3BJune%252015%2C%25202006%2520%2520%26lt%3Bspan%2520property%3D%26%2334%3BreviewBody%26%2334%3B%26gt%3BCatcher%2520in%2520the%2520Rye%2520is%2520a%2520fun%2520book.%2520It%26%2339%3Bs%2520a%2520good%2520book%2520to%2520read.%26lt%3B%2Fspan%26gt%3B%26lt%3B%2Fdiv%26gt%3B%26lt%3B%2Fdiv%26gt%3B...%26lt%3B%2Fbody%26gt%3B%253C%2Fpre">
  
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "breadcrumb": "Books > Literature & Fiction > Classics",
  "mainEntity":{
	  "@type": "Book",
	  "author": "/author/jd_salinger.html",
	  "bookFormat": "https://schema.org/Paperback",
	  "datePublished": "1991-05-01",
	  "image": "catcher-in-the-rye-book-cover.jpg",
	  "inLanguage": "English",
	  "isbn": "0316769487",
	  "name": "The Catcher in the Rye",
	  "numberOfPages": "224",
	  "offers": {
	    "@type": "Offer",
	    "availability": "https://schema.org/InStock",
	    "price": "6.99",
	    "priceCurrency": "USD"
	  },
	  "publisher": "Little, Brown, and Company",
	  "aggregateRating": {
	    "@type": "AggregateRating",
	    "ratingValue": "4",
	    "reviewCount": "3077"
	  },
	  "review": [
	    {
	      "@type": "Review",
	      "author": "John Doe",
	      "datePublished": "2006-05-04",
	      "name": "A masterpiece of literature",
	      "reviewBody": "I really enjoyed this book. It captures the essential challenge people face as they try make sense of their lives and grow to adulthood.",
	      "reviewRating": {
            "@type": "Rating",
            "ratingValue": "5"
           }
	    },
	    {
	      "@type": "Review",
	      "author": "Bob Smith",
	      "datePublished": "2006-06-15",
	      "name": "A good read.",
	      "reviewBody": "Catcher in the Rye is a fun book. It's a good book to read.",
	      "reviewRating": "4"
	    }
	  ]
  	}
}
</script>
Structured representation of the JSON-LD example.