W3C home > Mailing lists > Public > public-vocabs@w3.org > October 2011

Wrapping WebPage and use of WebPageElement

From: Aaron Bradley <aaranged@yahoo.com>
Date: Fri, 21 Oct 2011 12:20:04 -0700 (PDT)
Message-ID: <1319224804.99009.YahooMailNeo@web161001.mail.bf1.yahoo.com>
To: PublicVocabs <public-vocabs@w3.org>
1. Wrapping WebPage in <body> ... </body> or 


If expressing one or more properties of web page, while also marking up other items outside of the scope of WebPage, is it permissible/advisable to nonetheless to declare the itemscope of <body> to be of itemtype WebPage?

E.g. which of these two formats is correct or preferable?

WebPage wrapped in <body>...

<body itemscope itemtype="http://schema.org/WebPage">

<p><span itemprop="breadcrumb"><a href="http://janesmith.com/directory/">Corporate Directory</a> &gt; ABC Corporation</span></p>

<div itemscope itemtype="http://schema.org/Organization">
<h1 itemprop="name">ABC Corporation</h1>
</div>

<p>Copyright 2011 <span itemprop="copyrightHolder">Jane Smith</span>.

</body>


WebPage item properties separately declared...

<body>

<p itemscope itemtype="http://schema.org/WebPage"><span itemprop="breadcrumb"><a href="http://janesmith.com/directory/">Corporate Directory</a> &gt; ABC Corporation</span></p>

<div itemscope itemtype="http://schema.org/Organization">
<h1 itemprop="name">ABC Corporation</h1>
</div>

<p itemscope itemtype="http://schema.org/WebPage">Copyright 2011 <span itemprop="copyrightHolder">Jane Smith</span>.

</body>


The first code creates this output in the Rich Snippets testing tool (and the equivalent groupings in the linter):
Item
Type: http://schema.org/webpage
breadcrumb = Corporate Directory > ABC Corporation
copyrightholder = Jane Smith
Item
Type: http://schema.org/organization
name = ABC Corporation 


The second this:
Item
Type: http://schema.org/webpage
breadcrumb = Corporate Directory > ABC Corporation
Item
Type: http://schema.org/organization
name = ABC Corporation
Item
Type: http://schema.org/webpage
copyrightholder = Jane Smith 


The first seems to be more what I would expect, and is seemingly more meaningful - "here are two properties of of this web page." Do I have this right?

2.  WebPageElement

Where WebPage and WebPageElement have shared allowable properties, it's difficult for me to determine what the difference is for these properties scoped by these two types.  For example, if I have an image that's on a web page, is this properly within the scope of WebPage or WebPageElement?  As an image on a web page is logically an element of of a web page, what additional semantic meaning is added by declaring it to be a WebPageElement?  And which code then is recommended?

<body itemscope itemtype="http://schema.org/WebPage">
<p><img itemprop="image" src="http://janesmith.com/images/cat.jpg></p>
</body>

Or:

<body itemscope itemtype="http://schema.org/WebPage">
<p itemscope itemtype="http://schema.org/WebPageElement"><img itemprop="image" src="http://janesmith.com/images/cat.jpg></p>
</body>


<body itemscope itemtype="http://schema.org/WebPage">
<p itemprop="image" itemscope itemtype="http://schema.org/WebPageElement"><img itemprop="image" src="http://janesmith.com/images/cat.jpg></p>
</body>

Thanks in advance for any thoughts on these issues.
Received on Friday, 21 October 2011 19:20:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 06:48:56 GMT