Is this syntax correct for WebPage property WebPageElement(s)?

352 views
Skip to first unread message

batfink

unread,
Jul 8, 2011, 10:07:33 AM7/8/11
to Schema.org Discussion
For example, the WebPage Element "mainContentOfPage":

<span itemprop="mainContentOfPage">bipolar test</span>

AND

"significantLinks":

<span itemprop="significantLinks"><a href="http://www.bipolar-
lives.com/bipolar-online-test.html">bipolar online test </a></span>


???? Thanks for your help.

黃耀賢 (Yau-Hsien Huang)

unread,
Jul 8, 2011, 10:44:55 AM7/8/11
to schemaorg-...@googlegroups.com
"mainContentOfPage" is a property of WebPage, and its type is
WebPageElement. So the markup is as:

     <span itemprop="mainContentOfPage" itemscope
               itemtype="http://schema.org/WebPageElement">
          ...
     </span>

It need be an item scope to represent a property which is neither
a URL nor text.

"significantLinks" is a property of WebPage, and it can contain
more than one links. Each link in significantLinks is a URL. So,
on what in your examples,

<span itemprop="significantLinks"><a href="http://www.bipolar- 
lives.com/bipolar-online-test.html">bipolar online test </a></span>


it's treated as "significantLinks: <a href="http://www.bipolar- 
lives.com/bipolar-online-test.html">bipolar online test </a>,"
it's wrong that the content of the span tag is treated as a value of
significantLinks. The correct markup is

    <span>
        ...
        <a itemprop="significantLinks" href="...">...</a>
        ...
    <span>

On anchor tag, the value of href attribute is treated as the value
if an itemprop attribute attends and it's not a new item scope.

/yhh

rhor...@gmail.com

unread,
Jul 15, 2011, 4:42:49 PM7/15/11
to schemaorg-...@googlegroups.com
If that is the correct markup for "mainContentOfPage", then why does table and item list have this <meta itemprop="mainContentOfPage" content="true"/> used

What is purpose of "mainContentOfPage" property? The definition says subject of page, so does the "mainContentOfPage" only wrap around the subject title or does in wrap around the primary content of the page? 

Also, what is the difference between property "name" and "mainContentOfPage"?
Reply all
Reply to author
Forward
0 new messages