core + auto ():

mainEntity

Canonical URL: http://schema.org/mainEntity

Thing > Property > mainEntity

Indicates the primary entity described in some page or other CreativeWork.

Usage: Fewer than 10 domains

Inverse-property: mainEntityOfPage.

Values expected to be one of these types
Thing
Used on these types
CreativeWork


Examples

Example 1
  1. <a href="category/books.html">Books</a> >
  2.  <a href="category/books-literature.html">Literature & Fiction</a> >
  3.  <a href="category/books-classics">Classics</a>
  4. <img src="catcher-in-the-rye-book-cover.jpg"
  5.   alt="cover art: red horse, city in background"/>
  6. The Catcher in the Rye - Mass Market Paperback
  7. by <a href="/author/jd_salinger.html">J.D. Salinger</a>
  8. 4 stars - 3077 reviews
  9. Price: $6.99
  10. In Stock
  11. Product details
  12. 224 pages
  13. Publisher: Little, Brown, and Company - May 1, 1991
  14. Language: English
  15. ISBN-10: 0316769487
  16. Reviews:
  17. 5 stars - <b>"A masterpiece of literature" </b>
  18. by John Doe. Written on May 4, 2006
  19. I really enjoyed this book. It captures the essential challenge people face
  20. as they try make sense of their lives and grow to adulthood.
  21. 4 stars - <b>"love it LOLOL111!" </b>
  22. by Bob Smith, Written on June 15, 2006
  23. Catcher in the Rye is a fun book. It's a good book to read.
  1. <body itemscope itemtype="http://schema.org/WebPage">
  2. ...
  3. <div itemprop="breadcrumb">
  4.   <a href="category/books.html">Books</a> >
  5.   <a href="category/books-literature.html">Literature & Fiction</a> >
  6.   <a href="category/books-classics">Classics</a>
  7. </div>
  8. <div itemprop="mainEntity" itemscope itemtype="http://schema.org/Book">
  9. <img itemprop="image" src="catcher-in-the-rye-book-cover.jpg"
  10.      alt="cover art: red horse, city in background"/>
  11. <span itemprop="name">The Catcher in the Rye</span> -
  12.  <link itemprop="bookFormat" href="http://schema.org/Paperback">Mass Market Paperback
  13. by <a itemprop="author" href="/author/jd_salinger.html">J.D. Salinger</a>
  14. <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
  15.   <span itemprop="ratingValue">4</span> stars -
  16.   <span itemprop="reviewCount">3077</span> reviews
  17. </div>
  18. <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
  19.   Price: $<span itemprop="price">6.99</span>
  20.   <meta itemprop="priceCurrency" content="USD" />
  21.   <link itemprop="availability" href="http://schema.org/InStock">In Stock
  22. </div>
  23. Product details
  24. <span itemprop="numberOfPages">224</span> pages
  25. Publisher: <span itemprop="publisher">Little, Brown, and Company</span> -
  26.  <meta itemprop="datePublished" content="1991-05-01">May 1, 1991
  27. Language: <span itemprop="inLanguage">English</span>
  28. ISBN-10: <span itemprop="isbn">0316769487</span>
  29. Reviews:
  30. <div itemprop="review" itemscope itemtype="http://schema.org/Review">
  31.   <span itemprop="reviewRating">5</span> stars -
  32.   <b>"<span itemprop="name">A masterpiece of literature</span>"</b>
  33.   by <span itemprop="author">John Doe</span>,
  34.   Written on <meta itemprop="datePublished" content="2006-05-04">May 4, 2006
  35.   <span itemprop="reviewBody">I really enjoyed this book. It captures the essential
  36.   challenge people face as they try make sense of their lives and grow to adulthood.</span>
  37. </div>
  38. <div itemprop="review" itemscope itemtype="http://schema.org/Review">
  39.   <span itemprop="reviewRating">4</span> stars -
  40.   <b>"<span itemprop="name">A good read.</span>" </b>
  41.   by <span itemprop="author">Bob Smith</span>,
  42.   Written on <meta itemprop="datePublished" content="2006-06-15">June 15, 2006
  43.   <span itemprop="reviewBody">Catcher in the Rye is a fun book. It's a good book to read.</span>
  44. </div>
  45. </div>
  46. ...
  47. </body>
  1. <body vocab="http://schema.org/" typeof="WebPage">
  2. ...
  3. <div property="breadcrumb">
  4.   <a href="category/books.html">Books</a> >
  5.   <a href="category/books-literature.html">Literature & Fiction</a> >
  6.   <a href="category/books-classics">Classics</a>
  7. </div>
  8. <div property="mainEntity" typeof="Book">
  9. <img property="image" src="catcher-in-the-rye-book-cover.jpg"
  10.     alt="cover art: red horse, city in background"/>
  11. <span property="name">The Catcher in the Rye</span> -
  12.  <link property="bookFormat" href="http://schema.org/Paperback">Mass Market Paperback
  13. by <a property="author" href="/author/jd_salinger.html">J.D. Salinger</a>
  14. <div property="aggregateRating" typeof="AggregateRating">
  15.   <span property="ratingValue">4</span> stars -
  16.   <span property="reviewCount">3077</span> reviews
  17. </div>
  18. <div property="offers" typeof="Offer">
  19.   Price: $<span property="price">6.99</span>
  20.   <meta property="priceCurrency" content="USD" />
  21.   <link property="availability" href="http://schema.org/InStock">In Stock
  22. </div>
  23. Product details
  24. <span property="numberOfPages">224</span> pages
  25. Publisher: <span property="publisher">Little, Brown, and Company</span> -
  26.  <meta property="datePublished" content="1991-05-01">May 1, 1991
  27. Language: <span property="inLanguage">English</span>
  28. ISBN-10: <span property="isbn">0316769487</span>
  29. Reviews:
  30. <div property="review" typeof="Review">
  31.   <span property="reviewRating">5</span> stars -
  32.   <b>"<span property="name">A masterpiece of literature</span>"</b>
  33.   by <span property="author">John Doe</span>,
  34.   Written on <meta property="datePublished" content="2006-05-04">May 4, 2006
  35.   <span property="reviewBody">I really enjoyed this book. It captures the essential
  36.   challenge people face as they try make sense of their lives and grow to adulthood.</span>
  37. </div>
  38. <div property="review" typeof="Review">
  39.   <span property="reviewRating">4</span> stars -
  40.   <b>"<span property="name">A good read.</span>" </b>
  41.   by <span property="author">Bob Smith</span>,
  42.   Written on <meta property="datePublished" content="2006-06-15">June 15, 2006
  43.   <span property="reviewBody">Catcher in the Rye is a fun book. It's a good book to read.</span>
  44. </div>
  45. </div>
  46. ...
  47. </body>
  1. <script type="application/ld+json">
  2. {
  3.   "@context": "http://schema.org",
  4.   "@type": "WebPage",
  5.   "breadcrumb": "Books > Literature & Fiction > Classics",
  6.   "mainEntity":{
  7.           "@type": "Book",
  8.           "author": "/author/jd_salinger.html",
  9.           "bookFormat": "http://schema.org/Paperback",
  10.           "datePublished": "1991-05-01",
  11.           "image": "catcher-in-the-rye-book-cover.jpg",
  12.           "inLanguage": "English",
  13.           "isbn": "0316769487",
  14.           "name": "The Catcher in the Rye",
  15.           "numberOfPages": "224",
  16.           "offers": {
  17.             "@type": "Offer",
  18.             "availability": "http://schema.org/InStock",
  19.             "price": "6.99",
  20.             "priceCurrency": "USD"
  21.           },
  22.           "publisher": "Little, Brown, and Company",
  23.           "aggregateRating": {
  24.             "@type": "AggregateRating",
  25.             "ratingValue": "4",
  26.             "reviewCount": "3077"
  27.           },
  28.           "review": [
  29.             {
  30.               "@type": "Review",
  31.               "author": "John Doe",
  32.               "datePublished": "2006-05-04",
  33.               "name": "A masterpiece of literature",
  34.               "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.",
  35.               "reviewRating": {
  36.             "@type": "Rating",
  37.             "ratingValue": "5"
  38.            }
  39.             },
  40.             {
  41.               "@type": "Review",
  42.               "author": "Bob Smith",
  43.               "datePublished": "2006-06-15",
  44.               "name": "A good read.",
  45.               "reviewBody": "Catcher in the Rye is a fun book. It's a good book to read.",
  46.               "reviewRating": "4"
  47.             }
  48.           ]
  49.         }
  50. }
  51. </script>
Example 2
  1.      <div>
  2.       <h1>Cath's Cafe</h1>
  3.       <p>Open: Daily from 11:00am till 8pm</p>
  4.       <p>Phone: 555-0100-3344</p>
  5.       <p>View <a href="/menu">our menu</a>.</p>
  6.      </div>
  1. <div itemid="http://cathscafe.example.com/" itemscope itemtype="http://schema.org/WebPage">
  2.     <div itemprop="mainEntity" itemscope itemtype="http://schema.org/Restaurant" itemid="#thecafe">
  3.       <h1 itemprop="name">Cath's Cafe</h1>
  4.       <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>
  5.       <p>Phone: <span itemprop="telephone" content="+155501003344">555-0100-3344</span></p>
  6.       <p>View <a itemprop="menu" href="/menu">our menu</a>.</p>
  7.     </div>
  8. </div>
  1. TODO.
  1. <script type="application/ld+json">
  2. {
  3.     "@context": "http://schema.org",
  4.     "@type": "WebPage",
  5.     "@id": "http://cathscafe.example.com/",
  6.     "mainEntity": {
  7.       "@type": "Restaurant",
  8.       "name": "Cath's Cafe",
  9.       "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00",
  10.       "telephone": "+155501003344",
  11.       "menu": "/menu"
  12.     }
  13. }
  14. </script>

Schema Version 3.2