WebSchemas/ChainingLayoutElements

From W3C Wiki
Jump to: navigation, search




Contents

Overlapping topics brought together


Intro

This document is an attempt at supporting ongoing discussions

  • about adding a reverse-mechanism to microdata
  • about how to chain WebPageElements to a WebPage
  • about how to chain WebPageElements to the Things they contain
  • about how to express the Order of WebPageElements
  • about how to express ItemLists / CollectionPages (over multiple pages)


Note: Examples will use the same HTML examples over and over again so to illustrate the differences in markup needed, depending on what needs to be expressed. They aren't meant to be implemented by publishers of structured data but serve as an experimental base to find out which solution(s) are best suited for the matters at hand.

Discussion history

Inverse mechanism for microdata


Chaining WebPageElement and WebPage


mainContentOfPage / mainEntity / primaryTopic


ItemList


@itemid


Possible solutions for chaining entities and specifying the main entity

  • All 'reverse relations' require adding an @itemprop-reverse attribute to microdata.


Chaining / Main entity examples

ItemPage, Article

  • ItemPage > relation > Article (mainContentOfPage / mainEntity)

These variants require the range of 'mainContentOfPage' to be expanded to Thing or that 'mainEntity' be added to schema.org/WebPage.

An ItemPage which has an Article as it's mainContentOfPage (down the DOM, normal relation)
1 <html>
2     <body itemscope itemtype="http://schema.org/ItemPage">
3        <main>
4            <article itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Article">
5              [...]
6            </article>
7        </main>
8     </body>
9 </html>


An Article which is the mainContentOfPage of an ItemPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/ItemPage">
 3        <main>
 4            <article itemscope itemtype="http://schema.org/Article">
 5                [...]
 6                <link itemprop-reverse="mainContentOfPage" href="https://example.com" />
 7            </article>
 8        </main>
 9     </body>
10 </html>


An ItemPage which has an Article as it's mainEntity (down the DOM, normal relation)
1 <html>
2     <body itemscope itemtype="http://schema.org/ItemPage">
3        <main>
4            <article itemprop="mainEntity" itemscope itemtype="http://schema.org/Article">
5              [...]
6            </article>
7        </main>
8     </body>
9 </html>


An Article which is the mainEntity of an ItemPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/ItemPage">
 3        <main>
 4            <article itemscope itemtype="http://schema.org/Article">
 5                [...]
 6                <link itemprop-reverse="mainEntity" href="https://example.com" />
 7            </article>
 8        </main>
 9     </body>
10 </html>


CollectionPage, ItemList

  • CollectionPage > relation > ItemList (mainContentOfPage / mainEntity)

These variants require the range of 'mainContentOfPage' to be expanded to Thing or that 'mainEntity' be added to schema.org/WebPage.

A CollectionPage which has an ItemList as it's mainContentOfPage (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/ItemList">
 5                 <ul>
 6                     <li>
 7                         [...]
 8                     </li>
 9                     <li>
10                         [...]
11                     </li>
12                     <li>
13                         [...]
14                     </li>
15                 </ul>
16             </div>
17         </main>
18     </body>
19 </html>


An ItemList which is the mainContentOfPage of a CollectionPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemscope itemtype="http://schema.org/ItemList">
 5                 <ul>
 6                     <li>
 7                         [...]
 8                     </li>
 9                     <li>
10                         [...]
11                     </li>
12                     <li>
13                         [...]
14                     </li>
15                 </ul>
16                 <link itemprop-reverse="mainContentOfPage" href="https://example.com" />
17             </div>
18         </main>
19     </body>
20 </html>


A CollectionPage which has an ItemList as it's mainEntity (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemprop="mainEntity" itemscope itemtype="http://schema.org/ItemList">
 5                 <ul>
 6                     <li>
 7                         [...]
 8                     </li>
 9                     <li>
10                         [...]
11                     </li>
12                     <li>
13                         [...]
14                     </li>
15                 </ul>
16             </div>
17         </main>
18     </body>
19 </html>


An ItemList which is the mainEntity of a CollectionPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemscope itemtype="http://schema.org/ItemList">
 5                 <ul>
 6                     <li>
 7                         [...]
 8                     </li>
 9                     <li>
10                         [...]
11                     </li>
12                     <li>
13                         [...]
14                     </li>
15                 </ul>
16                 <link itemprop-reverse="mainEntity" href="https://example.com" />
17             </div>
18         </main>
19     </body>
20 </html>


CollectionPage, ItemList, Product

  • CollectionPage > mainContentOfPage > ItemList
  • ItemList > relation > Product (itemListElement)

These variants is requires the schema.org/ItemList proposal to be integrated.

An ItemList which has Products as itemListElements (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/ItemList">
 5                 <meta itemprop="itemListOrder" content="Unordered">
 6                 <ul>
 7                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
 8                        [...]
 9                    </li>
10                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
11                        [...]
12                    </li>
13                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
14                        [...]
15                    </li>
16                 </ul>
17             </div>
18         </main>
19     </body>
20 </html>


Products which are itemListElements of an ItemList (up the DOM, reverse relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3        <main>
 4             <div itemid="#ItemList" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/ItemList">
 5                 <meta itemprop="itemListOrder" content="Unordered">
 6                 <ul>
 7                    <li itemscope itemtype="http://schema.org/Product">
 8                        [...]
 9                        <link itemprop-reverse="itemListElement" href="#ItemList" />
10                    </li>
11                    <li itemscope itemtype="http://schema.org/Product">
12                        [...]
13                        <link itemprop-reverse="itemListElement" href="#ItemList" />
14                    </li>
15                    <li itemscope itemtype="http://schema.org/Product">
16                        [...]
17                        <link itemprop-reverse="itemListElement" href="#ItemList" />
18                    </li>
19                 </ul>
20             </div>
21         </main>
22     </body>
23 </html>


CollectionPage, WebPageElement, ItemList, Product

  • CollectionPage > mainContentOfPage > WebPageElement
  • CollectionPage > relation > ItemList (mainEntity)
  • WebPageElement > hasPart > ItemList
  • ItemList > itemListElement > Product

These variants is require the schema.org/ItemList proposal to be integrated, as well as having 'hasPart' and 'mainEntity' being added

A CollectionPage which has an ItemList as it's mainEntity (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3         <link itemprop="mainEntity" href="#ItemList" />
 4         <main itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
 5             <div itemid="#ItemList" itemprop="hasPart" itemscope itemtype="http://schema.org/ItemList">
 6                 <meta itemprop="itemListOrder" content="Unordered">
 7                 <ul>
 8                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
 9                        [...]
10                    </li>
11                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
12                        [...]
13                    </li>
14                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
15                        [...]
16                    </li>
17                 </ul>
18             </div>
19         </main>
20     </body>
21 </html>


An ItemList which is the mainEntity of a CollectionPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/CollectionPage">
 3         <main itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
 4             <div itemprop="hasPart" itemscope itemtype="http://schema.org/ItemList">
 5                 <meta itemprop="itemListOrder" content="Unordered">
 6                 <ul>
 7                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
 8                        [...]
 9                    </li>
10                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
11                        [...]
12                    </li>
13                    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
14                        [...]
15                    </li>
16                 </ul>
17                 <link itemprop-reverse="mainEntity" href="https://example.com">
18             </div>
19         </main>
20     </body>
21 </html>


CollectionPage, WebPageElement

  • CollectionPage > relation > WebPageElement (mainContentOfPage / mainEntity)

These variants requires the range of 'mainContentOfPage' to be expanded to Thing or that 'mainEntity' be added to schema.org/WebPage.

A CollectionPage which has a WebPageElement as it's mainContentOfPage (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
 5                 <ul>
 6                    <li>
 7                        [...]
 8                    </li>
 9                    <li>
10                        [...]
11                    </li>
12                    <li>
13                        [...]
14                    </li>
15                 </ul>
16             </div>
17         </main>
18     </body>
19 </html>


A WebPageElement which is the mainContentOfPage of a CollectionPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemscope itemtype="http://schema.org/WebPageElement">
 5                 <ul>
 6                    <li>
 7                        [...]
 8                    </li>
 9                    <li>
10                        [...]
11                    </li>
12                    <li>
13                        [...]
14                    </li>
15                 </ul>
16                 <link itemprop-reverse="mainContentOfPage" href="https://example.com" />
17             </div>
18         </main>
19     </body>
20 </html>


A CollectionPage which has a WebPageElement as it's mainEntity (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemprop="mainEntity" itemscope itemtype="http://schema.org/WebPageElement">
 5                 <ul>
 6                    <li>
 7                        [...]
 8                    </li>
 9                    <li>
10                        [...]
11                    </li>
12                    <li>
13                        [...]
14                    </li>
15                 </ul>
16             </div>
17         </main>
18     </body>
19 </html>


A WebPageElement which is the mainEntity of a CollectionPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemscope itemtype="http://schema.org/WebPageElement">
 5                 <ul>
 6                    <li>
 7                        [...]
 8                    </li>
 9                    <li>
10                        [...]
11                    </li>
12                    <li>
13                        [...]
14                    </li>
15                 </ul>
16                 <link itemprop-reverse="mainEntity" href="https://example.com" />
17             </div>
18         </main>
19     </body>
20 </html>


CollectionPage, WebPageElement, ImageObject

  • CollectionPage > mainContentOfPage > WebPageElement
  • WebPageElement > relation > ImageObject (*Part*)

These variants require 'hasPart' to be added as inverse of 'isPartOf'.

A WebPageElement which has multiple ImageObject parts (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3         <main>
 4             <div itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
 5                 <ul>
 6                    <li itemprop="hasPart" itemscope itemtype="http://schema.org/ImageObject">
 7                        [...]
 8                    </li>
 9                    <li itemprop="hasPart" itemscope itemtype="http://schema.org/ImageObject">
10                        [...]
11                    </li>
12                    <li itemprop="hasPart" itemscope itemtype="http://schema.org/ImageObject">
13                        [...]
14                    </li>
15                 </ul>
16             </div>
17         </main>
18     </body>
19 </html>


Multiple ImageObjects which are part of a WebPageElement (up the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3        <main>
 4             <div itemid="#WebPageElement" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
 5                 <ul>
 6                    <li itemscope itemtype="http://schema.org/ImageObject">
 7                        [...]
 8                        <link itemprop="isPartOf" href="#WebPageElement" />
 9                    </li>
10                    <li itemscope itemtype="http://schema.org/ImageObject">
11                        [...]
12                        <link itemprop="isPartOf" href="#WebPageElement" />
13                    </li>
14                    <li itemscope itemtype="http://schema.org/ImageObject">
15                        [...]
16                        <link itemprop="isPartOf" href="#WebPageElement" />
17                    </li>
18                 </ul>
19             </div>
20         </main>
21     </body>
22 </html>


Multiple ImageObjects which are part of a WebPageElement (up the DOM, reverse relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/CollectionPage">
 3        <main>
 4             <div itemid="#WebPageElement" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
 5                 <ul>
 6                    <li itemscope itemtype="http://schema.org/ImageObject">
 7                        [...]
 8                        <link itemprop-reverse="hasPart" href="#WebPageElement" />
 9                    </li>
10                    <li itemscope itemtype="http://schema.org/ImageObject">
11                        [...]
12                        <link itemprop-reverse="hasPart" href="#WebPageElement" />
13                    </li>
14                    <li itemscope itemtype="http://schema.org/ImageObject">
15                        [...]
16                        <link itemprop-reverse="hasPart" href="#WebPageElement" />
17                    </li>
18                 </ul>
19             </div>
20         </main>
21     </body>
22 </html>


WebPage, WebSite

  • WebPage > relation > WebSite (*Part*)

These variants require 'hasPart' to be added as inverse of 'isPartOf'.

A WebPage which is part of a WebSite (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3         <header>
 4             <section>
 5                 <div itemprop="isPartOf" itemscope itemtype="http://schema.org/WebSite">
 6                     <h1>
 7                         <a itemprop="url" href="https://example.com/some-page/">
 8                             <img itemprop="image" src="https://example.com/image.jpg">
 9                             <span itemprop="name">[website-name]</span>
10                         </a>
11                     </h1>
12                     <div itemprop="description">
13                         <p>[website-description]</p>
14                     </div>
15                 </div>
16             </section>
17         </header>
18     </body>
19 </html>


A WebPage which is part of a WebSite (up the DOM, reverse relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3         <header>
 4             <section>
 5                 <div itemid="#WebSite" itemscope itemtype="http://schema.org/WebSite">
 6                     <h1>
 7                         <a itemprop="url" href="https://example.com/some-page/">
 8                             <img itemprop="image" src="https://example.com/image.jpg">
 9                             <span itemprop="name">[website-name]</span>
10                         </a>
11                     </h1>
12                     <div itemprop="description">
13                         <p>[website-description]</p>
14                     </div>
15                 </div>
16             </section>
17         </header>
18         <link itemprop-reverse="hasPart" href="#WebSite" />
19     </body>
20 </html>


WebPage, WPHeader, Website

  • WebPage > ispartOf > WebSite
  • WebPage > relation > WPHeader (*Part*)
  • WPHeader > hasPart > WebSite

These variants require 'hasPart' to be added as inverse of 'isPartOf'.

A WebPage which has a WPHeader part (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header itemprop="hasPart" itemscope itemtype="http://schema.org/WPHeader">
 5             <section>
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                         <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17             </section>
18         </header>
19     </body>
20 </html>


a WPHeader which is part of a WebPage (up the DOM, normal relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header itemscope itemtype="http://schema.org/WPHeader">
 5             <section>
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                         <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17             </section>
18     	    <link itemprop="isPartOf" href="https://example.com" />
19         </header>
20     </body>
21 </html>


a WPHeader which is part of a WebPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header itemscope itemtype="http://schema.org/WPHeader">
 5             <section>
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                         <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17             </section>
18     	    <link itemprop-reverse="hasPart" href="https://example.com" />
19         </header>
20     </body>
21 </html>


WebPage, WebPageElement, Website

  • WebPage > isPartOf > WebSite
  • WebPage > relation > WebPageElement (*Part*)
  • WebPageElement > hasPart > WebSite

These variants require 'hasPart' to be added as inverse of 'isPartOf'.

A WebPage which has a WebPageElement part (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header>
 5             <section itemprop="hasPart" itemscope itemtype="http://schema.org/WebPageElement">
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                         <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17             </section>
18         </header>
19     </body>
20 </html>


A WebpageElement which is part of a WebPage (up the DOM, normal relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header>
 5             <section itemscope itemtype="http://schema.org/WebPageElement">
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                        <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17                 <link itemprop="isPartOf" href="https://example.com" />
18             </section>
19         </header>
20     </body>
21 </html>


A WebpageElement which is part of a WebPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header>
 5             <section itemscope itemtype="http://schema.org/WebPageElement">
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                         <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17                 <link itemprop-reverse="hasPart" href="https://example.com" />
18             </section>
19         </header>
20     </body>
21 </html>


WebPage, WPHeader, WebPageElement, Website

  • WebPage > isPartOf > WebSite
  • WebPage > hasPart > WPHeader
  • WPHeader > relation > WebPageElement (*Part*)
  • WebPageElement > hasPart > WebSite

These variants require 'hasPart' to be added as inverse of 'isPartOf'.

A WPHeader which has a WebPageElement part (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header itemprop="hasPart" itemscope itemtype="http://schema.org/WPHeader">
 5             <section itemprop="hasPart" itemscope itemtype="http://schema.org/WebPageElement">
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                         <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17             </section>
18         </header>
19     </body>
20 </html>


A WebPageElement which is part of a WPHeader (up the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3     	<link itemprop="isPartOf" href="#WebSite">
 4         <header itemid="#WPHeader" itemprop="hasPart" itemscope itemtype="http://schema.org/WPHeader">
 5             <section itemscope itemtype="http://schema.org/WebPageElement">
 6                 <div itemid="#WebSite" itemprop="hasPart" itemscope itemtype="http://schema.org/WebSite">
 7                     <h1>
 8                         <a itemprop="url" href="https://example.com/some-page/">
 9                             <img itemprop="image" src="https://example.com/image.jpg">
10                             <span itemprop="name">[website-name]</span>
11                         </a>
12                     </h1>
13                     <div itemprop="description">
14                         <p>[website-description]</p>
15                     </div>
16                 </div>
17                 <link itemprop="isPartOf" href="#WPHeader" />
18             </section>
19         </header>
20     </body>
21 </html>


WebPage, SiteNavigationElement

  • WebPage > relation > SiteNavigationElement (*Part*)

These variants require 'hasPart' to be added as inverse of 'isPartOf'.

A WebPage which has a SiteNavigationElement part (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3         <nav itemprop="hasPart" itemscope itemtype="http://schema.org/SiteNavigationElement">
 4             <ul>
 5                 <li>
 6                     <a href="https://example.com">
 7                         <span>home</span>
 8                     </a>
 9                 </li>
10                 <li>
11                     <a href="https://example.com/products/">
12                         <span>products</span>
13                     </a>
14                     <ul>
15                         <li>
16                             <a href="https://example.com/category-1/">
17                                 <span>product-category-1</span>
18                             </a>
19                         </li>
20                         <li>
21                             <a href="https://example.com/category-2/">
22                                 <span>product-category-2</span>
23                             </a>
24                         </li>
25                     </ul>
26                 </li>
27                 <li>
28                     <a href="https://example.com/about-us/">
29                         <span>about us</span>
30                     </a>
31                 </li>
32                 <li>
33                     <a href="https://example.com/contact/">
34                         <span>contact</span>
35                     </a>
36                 </li>
37             </ul>
38         </nav>
39     </body>
40 </html>


A SiteNavigationElement which is part of a WebPage (up the DOM, reverse relation)
 1 <html>
 2     <body itemid="https://example.com" itemscope itemtype="http://schema.org/WebPage">
 3         <nav itemscope itemtype="http://schema.org/SiteNavigationElement">
 4             <ul>
 5                 <li>
 6                     <a href="https://example.com">
 7                         <span>home</span>
 8                     </a>
 9                 </li>
10                 <li>
11                     <a href="https://example.com/products/">
12                         <span>products</span>
13                     </a>
14                     <ul>
15                         <li>
16                             <a href="https://example.com/category-1/">
17                                 <span>product-category-1</span>
18                             </a>
19                         </li>
20                         <li>
21                             <a href="https://example.com/category-2/">
22                                 <span>product-category-2</span>
23                             </a>
24                         </li>
25                     </ul>
26                 </li>
27                 <li>
28                     <a href="https://example.com/about-us/">
29                         <span>about us</span>
30                     </a>
31                 </li>
32                 <li>
33                     <a href="https://example.com/contact/">
34                         <span>contact</span>
35                     </a>
36                 </li>
37             </ul>
38             <link itemprop-reverse="isPartOf" href="https://example.com" />
39         </nav>
40     </body>
41 </html>


WebPage, SiteNavigationElement, WebPage

  • WebPage > hasPart > SiteNavigationElement
  • SiteNavigationElement > relation > WebPage (*Part*)

These variants require 'hasPart' to be added as inverse of 'isPartOf'.

A SiteNavigationElement which has WebPage parts (down the DOM, normal relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3         <nav itemprop="hasPart" itemscope itemtype="http://schema.org/SiteNavigationElement">
 4             <ul>
 5                 <li itemprop="hasPart" itemscope itemtype="http://schema.org/WebPage">
 6                     <a itemprop="url" href="https://example.com">
 7                         <span itemprop="name">home</span>
 8                     </a>
 9                 </li>
10                 <li itemprop="hasPart" itemscope itemtype="http://schema.org/CollectionPage">
11                     <a itemprop="url" href="https://example.com/products/">
12                         <span itemprop="name">products</span>
13                     </a>
14                     <ul>
15                         <li>
16                             <a href="https://example.com/category-1/">
17                                 <span>product-category-1</span>
18                             </a>
19                         </li>
20                         <li>
21                             <a href="https://example.com/category-2/">
22                                 <span>product-category-2</span>
23                             </a>
24                         </li>
25                     </ul>
26                 </li>
27                 <li itemprop="hasPart" itemscope itemtype="http://schema.org/AboutPage">
28                     <a itemprop="url" href="https://example.com/about-us/">
29                         <span itemprop="name">about us</span>
30                     </a>
31                 </li>
32                 <li itemprop="hasPart" itemscope itemtype="http://schema.org/ContactPage">
33                     <a itemprop="url" href="https://example.com/contact/">
34                         <span itemprop="name">contact</span>
35                     </a>
36                 </li>
37             </ul>
38         </nav>
39     </body>
40 </html>


WebPages which are parts of a SiteNavigationElement (up the DOM, reverse relation)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3         <nav itemid="#SiteNavigationElement" itemprop="hasPart" itemscope itemtype="http://schema.org/SiteNavigationElement">
 4             <ul>
 5                 <li itemscope itemtype="http://schema.org/WebPage">
 6                     <a itemprop="url" href="https://example.com">
 7                         <span itemprop="name">home</span>
 8                     </a>
 9                     <link itemprop-reverse="hasPart" href="#SiteNavigationElement" />
10                 </li>
11                 <li itemscope itemtype="http://schema.org/CollectionPage">
12                     <a itemprop="url" href="https://example.com/products/">
13                         <span itemprop="name">products</span>
14                     </a>
15                     <ul>
16                         <li>
17                             <a href="https://example.com/category-1/">
18                                 <span>product-category-1</span>
19                             </a>
20                         </li>
21                         <li>
22                             <a href="https://example.com/category-2/">
23                                 <span>product-category-2</span>
24                             </a>
25                         </li>
26                     </ul>
27                     <link itemprop-reverse="hasPart" href="#SiteNavigationElement" />
28                 </li>
29                 <li itemscope itemtype="http://schema.org/AboutPage">
30                     <a itemprop="url" href="https://example.com/about-use/">
31                         <span itemprop="name">about us</span>
32                     </a>
33                 </li>
34                 <li itemscope itemtype="http://schema.org/ContactPage">
35                     <a itemprop="url" href="https://example.com/contact/">
36                         <span itemprop="name">contact</span>
37                     </a>
38                     <link itemprop-reverse="hasPart" href="#SiteNavigationElement" />
39                 </li>
40             </ul>
41         </nav>
42     </body>
43 </html>


Possible solution for expressing WebPageElement order

Thing property

  • introduce isContainedIn > WebPageElement

WebPageElement properties

  • introduce contains > Thing
  • introduce previousElement > IRI
  • introduce nextElement > IRI


Note: Adding a property like 'elementPosition' would not help as WebPageElements can also be nested within each other. Making a top down order difficult to express with a numerated value.

WebPageElement order Example (requires @itemid)

 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3         <header itemid="#WPHeader" itemprop="hasPart" itemscope itemtype="http://schema.org/WPHeader">
 4              <div itemprop="contains" itemscope itemtype="http://schema.org/WebPageElement">
 5                  [...]
 6              </div>
 7              <link itemprop="nextElement" href="#SiteNavigationElement">
 8         </header>
 9          <nav itemid="#SiteNavigationElement" itemprop="hasPart" itemscope itemtype="http://schema.org/SiteNavigationElement">
10              <div itemprop="contains" itemscope itemtype="http://schema.org/ItemList">
11                  [...]
12              </div>
13              <link itemprop="previousElement" href="#WPHeader">
14              <link itemprop="nextElement" href="#Product">
15         </nav>
16         <main itemid="#Product" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Product">
17              <link itemprop="previousElement" href="#SiteNavigationElement">
18              <link itemprop="nextElement" href="#WPSideBar">
19              <div itemprop="contains" itemscope itemtype="http://schema.org/WebPageElement">
20                  [...]
21              </div>
22         </main>
23         <aside itemid="#WPSideBar" itemprop="hasPart" itemscope itemtype="http://schema.org/WPSideBar">
24              <section itemprop="contains" itemscope itemtype="http://schema.org/ItemList">
25                  [...]
26              </section>
27              <link itemprop="previousElement" href="#Product">
28              <link itemprop="nextElement" href="#WPFooter">
29         </aside>
30         <footer itemid="#WPFooter" itemprop="hasPart" itemscope itemtype="http://schema.org/WPFooter">
31              <div itemprop="contains" itemscope itemtype="http://schema.org/ContactPoint">
32                  [...]
33              </div>
34              <link itemprop="previousElement" href="#WPSideBar">
35         </footer>
36     </body>
37 </html>


Possible solutions for expressing ItemLists

ItemList properties

  • itemListElement > Text, Thing, ListItem
  • itemListOrder > Text, ItemListOrderType
  • numberOfItems > Number
  •  ? introduce sortingValue > Text (for specifying the value used for sorting the ItemList)


itemListOrder values


Note: The references to HTML5 attributes, values and descriptions are not binding but are there to illustrate possible similarities.

ListItem properties

  • item > Thing
  • position > Text (or Integer or Number?) = <li value="7">
  • previousItem > IRI = <ol start="[prevNum + 1]">
  • nextItem > IRI = <ol> resolved by DOM


ItemList Examples

Breadcrumbs

A breadcrumb (without @itemid - Succeeds)
 1 <html>
 2     <body itemscope itemtype="http://schema.org/WebPage">
 3         <div itemprop="breadcrumb" itemscope itemtype="http://schema.org/ItemList">
 4             <ol>
 5                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 6                    <span itemprop="item" itemscope itemtype="http://schema.org/CollectionPage">
 7                        <a itemprop="url" href="https://example.com/books/">
 8                            <span itemprop="name">Books</span>
 9                        </a>
10                    </span>
11                    <meta itemprop="position" content="1">
12                </li>
13                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
14                    <span itemprop="item" itemscope itemtype="http://schema.org/CollectionPage">
15                        <a itemprop="url" href="https://www.example.com/books/authors/">
16                            <span itemprop="name">Authors</span>
17                        </a>
18                    </span>
19                    <meta itemprop="position" content="2">
20                </li>
21                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
22                    <span itemprop="item" itemscope itemtype="http://schema.org/WebPage">
23                        <a itemprop="url" href="https://www.example.com/books/authors/stephen-king/">
24                            <span itemprop="name">Stephen King</span>
25                        </a>
26                    </span>
27                    <meta itemprop="position" content="3">
28                </li>
29             </ol>
30         </div>
31     </body>
32 </html>


A breadcrumb (using @itemid in combination with nextItem/previousItem - Succeeds)
 1 <html>
 2    <body itemscope itemtype="http://schema.org/WebPage">
 3         <div itemprop="breadcrumb" itemscope itemtype="http://schema.org/ItemList">
 4             <ol>
 5                <li itemid="#ListItem-1" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 6                    <span itemprop="item" itemscope itemtype="http://schema.org/CollectionPage">
 7                        <a itemprop="url" href="https://example.com/books/">
 8                            <span itemprop="name">Books</span>
 9                        </a>
10                    </span>
11                    <link itemprop="nextItem" href="#ListItem-2">
12                </li>
13                <li itemid="#ListItem-2" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
14                    <span itemprop="item" itemscope itemtype="http://schema.org/CollectionPage">
15                        <a itemprop="url" href="https://www.example.com/books/authors/">
16                            <span itemprop="name">Authors</span>
17                        </a>
18                    </span>
19                    <link itemprop="previousItem" href="#ListItem-1">
20                    <link itemprop="nextItem" href="#ListItem-3">
21                </li>
22                <li itemid="#ListItem-3" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
23                    <span itemprop="item" itemscope itemtype="http://schema.org/WebPage">
24                        <a itemprop="url" href="https://www.example.com/books/authors/stephen-king/">
25                            <span itemprop="name">Stephen King</span>
26                        </a>
27                    </span>
28                    <link itemprop="previousItem" href="#ListItem-2">
29                </li>
30             </ol>
31         </div>
32     </body>
33 </html>


Paginated Ordered ItemList

A paginated Ordered ItemList (without @itemid - Fails)
 1 <!-- 1st page of a paginated Ordered ItemList -->
 2 
 3 <html>
 4     <head>
 5         <link rel="canonical" href="https://www.example.com/article-listing/">
 6         <link rel="next" href="https://www.example.com/article-listing/page/2/">
 7     </head>
 8     <body itemscope itemtype="http://schema.org/CollectionPage">
 9 <!-- Without @itemid there's no way of indicating each ItemList is a piece of a bigger ItemList -->
10         <main itemscope itemtype="http://schema.org/ItemList">
11             <link itemprop="itemListOrder" href="http://schema.org/ItemListOrderAscending">
12             <meta itemprop="numberOfItems" content="6">
13 <!-- Note the use of 'sortingValue', this could express the value the ItemList is sorted by -->
14             <meta itemprop="sortingValue" content="date">
15             <h1 itemprop="name">News</h1>
16             <ol>
17                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
18                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
19                        <a itemprop="url" href="https://example.com/article/january">[...]</a>
20                    </span>
21                    <meta itemprop="position" content="1">
22                </li>
23                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
24                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
25                        <a itemprop="url" href="https://example.com/article/february">[...]</a>
26                    </span>
27                    <meta itemprop="position" content="2">
28                </li>
29                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
30                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
31                        <a itemprop="url" href="https://example.com/article/march">[...]</a>
32                    </span>
33                    <meta itemprop="position" content="3">
34                </li>
35             </ol>
36         </main>
37     </body>
38 </html>
39 
40 <!-- 2nd page of a paginated Ordered ItemList -->
41 
42 <html>
43     <head>
44         <link rel="canonical" href="http://www.example.com/article-listing/page/2/">
45         <link rel="prev" href="http://www.example.com/article-listing/page/">
46     </head>
47     <body itemscope itemtype="http://schema.org/CollectionPage">
48         <main itemscope itemtype="http://schema.org/ItemList">
49             <link itemprop="itemListOrder" href="http://schema.org/ItemListOrderAscending">
50             <meta itemprop="numberOfItems" content="6">
51             <meta itemprop="sortingValue" content="date">
52             <h1 itemprop="name">News</h1>
53             <ol start="4">
54                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
55                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
56                        <a itemprop="url" href="https://example.com/article/april">[...]</a>
57                    </span>
58                    <meta itemprop="position" content="4">
59                </li>
60                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
61                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
62                        <a itemprop="url" href="https://example.com/article/may">[...]</a>
63                    </span>
64                    <meta itemprop="position" content="5">
65                </li>
66                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
67                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
68                        <a itemprop="url" href="https://example.com/article/june">[...]</a>
69                    </span>
70                    <meta itemprop="position" content="6">
71                </li>
72             </ol>
73         </main>
74     </body>
75 </html>


A paginated Ordered ItemList (using @itemid - Succeeds)
 1 <!-- 1st page of a paginated Ordered ItemList -->
 2 
 3 <html>
 4     <head>
 5         <link rel="canonical" href="http://www.example.com/article-listing/">
 6         <link rel="next" href="http://www.example.com/article-listing/page/2/">
 7     </head>
 8 
 9     <body itemscope itemtype="http://schema.org/CollectionPage">
10 <!-- Every ItemList's @itemid uses the same IRI, thus describing the same entity on -->
11 <!-- multiple pages, making it possible to coalesce all their graphs into one graph. -->
12         <main itemid="http://www.example.com/article-listing/#ItemList" itemscope itemtype="http://schema.org/ItemList">
13             <link itemprop="itemListOrder" href="http://schema.org/ItemListOrderAscending">
14             <meta itemprop="numberOfItems" content="6">
15 <!-- Note the use of 'sortingValue', this could express the value the ItemList is sorted by -->
16             <meta itemprop="sortingValue" content="date">
17             <h1 itemprop="name">News</h1>
18             <ol>
19                <li itemid="#ListItem-1" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
20                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
21                        <a itemprop="url" href="https://example.com/article/january">[...]</a>
22                    </span>
23                    <link itemprop="previousItem" href="http://schema.org/False">
24                    <link itemprop="nextItem" href="#ListItem-2">
25                </li>
26                <li itemid="#ListItem-2" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
27                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
28                        <a itemprop="url" href="https://example.com/article/february">[...]</a>
29                    </span>
30                    <link itemprop="previousItem" href="#ListItem-1">
31                    <link itemprop="nextItem" href="#ListItem-3">
32                </li>
33                <li itemid="#ListItem-3" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
34                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
35                        <a itemprop="url" href="https://example.com/article/march">[...]</a>
36                    </span>
37                    <link itemprop="previousItem" href="#ListItem-2">
38                    <link itemprop="nextItem" href="#ListItem-4">
39                </li>
40             </ol>
41         </main>
42     </body>
43 </html>
44 
45 <!-- 2nd page of a paginated Ordered ItemList -->
46 
47 <html>
48     <head>
49         <link rel="canonical" href="http://www.example.com/article-listing/page/2/">
50         <link rel="prev" href="http://www.example.com/article-listing/page/">
51     </head>
52     <body itemscope itemtype="http://schema.org/CollectionPage">
53         <main itemid="http://www.example.com/article-listing/#ItemList" itemscope itemtype="http://schema.org/ItemList">
54             <link itemprop="itemListOrder" href="http://schema.org/ItemListOrderAscending">
55             <meta itemprop="numberOfItems" content="6">
56             <meta itemprop="sortingValue" content="date">
57             <h1 itemprop="name">News</h1>
58             <ol start="4">
59                <li itemid="#ListItem-4" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
60                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
61                        <a itemprop="url" href="https://example.com/article/april">[...]</a>
62                    </span>
63                    <link itemprop="previousItem" href="#ListItem-3">
64                    <link itemprop="nextItem" href="#ListItem-5">
65                </li>
66                <li itemid="#ListItem-5" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
67                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
68                        <a itemprop="url" href="https://example.com/article/may">[...]</a>
69                    </span>
70                    <link itemprop="previousItem" href="#ListItem-4">
71                    <link itemprop="nextItem" href="#ListItem-6">
72                </li>
73                <li itemid="#ListItem-6" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
74                    <span itemprop="item" itemscope itemtype="http://schema.org/Article">
75                        <a itemprop="url" href="https://example.com/article/june">[...]</a>
76                    </span>
77                    <link itemprop="previousItem" href="#ListItem-5">
78                    <link itemprop="nextItem" href="http://schema.org/False">
79                </li>
80             </ol>
81         </main>
82     </body>
83 </html>


Possible solutions for expressing Paginated WebPages

WebPage or Collection properties

  •  ? introduce previousPart > IRI
  •  ? introduce nextPart > IRI


Note: Downside to the 'previous/nextPart' being properties of WebPage is that once all multi-page graphs get merged into one, the 'previous/nextPart' properties have become obsolete. Creating the same issue as it did for ItemList and why ListItem was needed.

Maybe schema.org/Collection could be a solution for Webpage as ListItem is for ItemList, eg:

  • ItemList > itemListElement > ListItem > nextItem > IRI
  • WebPage > isPartOf > Collection > nextPart > IRI


Paginated CollectionPage Examples

A paginated CollectionPage (without @itemid - Fails)

 1 <!-- 1st page of a paginated CollectionPage (which has an unordered ItemList) -->
 2 
 3 <html>
 4     <head>
 5         <link rel="canonical" href="http://www.example.com/category/">
 6         <link rel="next" href="http://www.example.com/category/page/2/">
 7     </head>
 8 <!-- Without @itemid there's no way of indicating each CollectionPage is a piece of a bigger CollectionPage -->
 9     <body itemscope itemtype="http://schema.org/CollectionPage">
10 <!-- Without @itemid there's no way of indicating each ItemList is a piece of a bigger ItemList -->
11         <main itemscope itemtype="http://schema.org/ItemList">
12             <link itemprop="itemListOrder" href="http://schema.org/ItemListUnordered">
13             <meta itemprop="numberOfItems" content="6">
14             <h1 itemprop="name">Products</h1>
15             <ul>
16                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
17                    [...]
18                </li>
19                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
20                    [...]
21                </li>
22                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
23                    [...]
24                </li>
25             </ul>
26         </main>
27     </body>
28 </html>
29 
30 <!-- 2nd page of a paginated CollectionPage (which has an unordered ItemList) -->
31 
32 <html>
33     <head>
34         <link rel="canonical" href="http://www.example.com/category/2/">
35         <link rel="prev" href="http://www.example.com/category/">
36     </head>
37     <body itemscope itemtype="http://schema.org/CollectionPage">
38         <main itemscope itemtype="http://schema.org/ItemList">
39             <link itemprop="itemListOrder" href="http://schema.org/ItemListUnordered">
40             <meta itemprop="numberOfItems" content="6">
41             <h1 itemprop="name">Products</h1>
42             <ul>
43                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
44                    [...]
45                </li>
46                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
47                    [...]
48                </li>
49                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
50                    [...]
51                </li>
52             </ul>
53         </main>
54     </body>
55 </html>


A paginated CollectionPage (using @itemid - Succeeds)

 1 <!-- 1st page of a paginated CollectionPage (which has an unordered ItemList) -->
 2 
 3 <html>
 4     <head>
 5         <link rel="canonical" href="http://www.example.com/category/">
 6         <link rel="next" href="http://www.example.com/category/page/2/">
 7     </head>
 8     <body itemid="http://www.example.com/category/" itemscope itemtype="http://schema.org/CollectionPage">
 9         <link itemprop="previousPart" href="http://schema.org/False">
10         <link itemprop="nextPart" href="http://www.example.com/category/page/2/">
11         <main itemid="http://www.example.com/category/#ItemList" itemscope itemtype="http://schema.org/ItemList">
12             <link itemprop="previousPart" href="http://schema.org/False">
13             <link itemprop="nextPart" href="http://www.example.com/category/page/2/#ItemList">
14             <link itemprop="itemListOrder" href="http://schema.org/ItemListUnordered">
15             <meta itemprop="numberOfItems" content="6">
16             <h1 itemprop="name">Products</h1>
17             <ul>
18                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
19                    [...]
20                </li>
21                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
22                    [...]
23                </li>
24                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
25                    [...]
26                </li>
27             </ul>
28         </main>
29     </body>
30 </html>
31 
32 <!-- 2nd page of a paginated CollectionPage (which has an unordered ItemList) -->
33 
34 <html>
35     <head>
36         <link rel="canonical" href="http://www.example.com/category/2/">
37         <link rel="prev" href="http://www.example.com/category/">
38     </head>
39     <body itemid="http://www.example.com/category/page/2/" itemscope itemtype="http://schema.org/CollectionPage">
40         <link itemprop="previousPart" href="http://www.example.com/category/">
41         <link itemprop="nextPart" href="http://schema.org/False">
42         <main itemid="#ItemList" itemscope itemtype="http://schema.org/ItemList">
43             <link itemprop="previousPart" href="http://www.example.com/category/page/#ItemList">
44             <link itemprop="nextPart" href="http://schema.org/False">
45             <link itemprop="itemListOrder" href="http://schema.org/ItemListUnordered">
46             <meta itemprop="numberOfItems" content="6">
47             <h1 itemprop="name">Products</h1>
48             <ul>
49                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
50                    [...]
51                </li>
52                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
53                    [...]
54                </li>
55                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
56                    [...]
57                </li>
58             </ul>
59         </main>
60     </body>
61 </html>