- From: Aaron Bradley <aaranged@gmail.com>
- Date: Thu, 14 Feb 2013 11:18:05 -0800
- To: Gregg Kellogg <gregg@greggkellogg.net>
- Cc: Peter Savelyev <rasifiel@yandex-team.ru>, "public-vocabs@w3.org" <public-vocabs@w3.org>
- Message-ID: <CAMbipBuESFqNtN5Zocc_+JyZbhFTxCBUdkHA8fsZVcPv00DDkw@mail.gmail.com>
Alas, while both can used with @itemtype, the Structured Data Testing Tool does not recognize this syntax. It's pretty clear it's assessing property usage based on the first, and only the first, itemtype. <body itemscope itemtype="http://schema.org/WebPage http://schema.org/Review "> <ul><li><a itemprop="breadcrumb" href="/" title="Home">Home</a></li></ul> <div itemprop="reviewBody">A great web page!</div> </body> > Warning: Page contains property "reviewbody" which is not part of the schema. <body itemscope itemtype="http://schema.org/Review http://schema.org/WebPage "> <ul><li><a itemprop="breadcrumb" href="/" title="Home">Home</a></li></ul> <div itemprop="reviewBody">A great web page!</div> </body> Warning: Page contains property "breadcrumb" which is not part of the schema. Warning: Incomplete microdata with schema.org. As you say Greg, keeping these separate is a better way of modeling this anyway, and your example (once [itemtype="http://schema.org/Review>] is corrected to [itemtype="http://schema.org/Review">]) is handled without any errors by the SDTT. On Thu, Feb 14, 2013 at 10:41 AM, Gregg Kellogg <gregg@greggkellogg.net>wrote: > On Feb 14, 2013, at 7:10 AM, Peter Savelyev <rasifiel@yandex-team.ru> > wrote: > > Use additionalType syntax, because your WebPage is also Review, so this > is one object with two types. > > > Because of the fact that WebPage and Review both come from the same > vocabulary, they can both be used with @itemtype: > > <html> > <head> > <title>Title</title> > </head> > <body itemscope itemtype="http://schema.org/WebPage > http://schema.org/Review"> > <div> > ... > > However from a modeling perspective, a WebPage and a Review are really > different things You'd be better to keep them as separate items, and relate > them using schema:about, for example: > > <html> > <head> > <title>Title</title> > </head> > <body itemscope itemtype="http://schema.org/WebPage"> > <div itemprop="about" itemscope itemtype="http://schema.org/Review> > <p itemprop="itemReviewed">... > ... > </div> > <div>More properties on the WebPage</div> > </body></html> > > Gregg > > 14.02.2013 15:07, Giorgio Marrale пишет: > > I am implementing Schema.org <http://schema.org/> markups into my site, > and get errors when adding multiple schemas with overlapping areas. > > In the following example I get the following errors: > > Page contains property "breadcrumb" which is not part of the schema. > (Review) > Page contains property "reviewrating" which is not part of the schema. > (WPSideBar) > > So if I am right, the property does not get inheritted from the 'Review' > parent? > > <html> > <head> > <title>Title</title> > </head> > <body itemscope itemtype="http://schema.org/WebPage"> > <div itemscope itemtype="http://schema.org/Review"> > <ul> > <li> > <a itemprop="breadcrumb" href="/" title="Home">Home</a> > </li> > <li> > <a href="/page" title="Page">Page</a> > </li> > <li>Sub Page</li> > </ul> > <div> > <img src="/" itemprop="image" /> > <h1 itemprop="itemReviewed">Title</h1> > <p itemprop="reviewBody">Text text text...</p> > </div> > <div itemscope itemtype="http://schema.org/WPSideBar"> > <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating > "> > <meta itemprop="worstRating" content="1"> > <meta itemprop="bestRating" content="10"> > First rate: Players Rating (9/10) > Second rate: Editors Rating (<span itemprop="ratingValue">9</span>/10) > </div> > </div> > </div> > </body> > </html> > > I have a test file running on the following URL: > http://www.visualsense..nl/schema-test.html<http://www.visualsense.nl/schema-test.html> > The actual page that I like to implement this is: > http://www.maxpokerbonus.co.uk/online-poker-rooms/bet365-poker/ (Currently > without errors, because I removed the markups) > > Adding the 'WebPage' markup to the <ul> tag but it prevents me from > marking up other webpage properties. > Removing the 'WPSideBar' property works, but I really would like to make > use of these. > > I can't remove the 'reviewRating property from the sidebar, it's one > element of multiple in the sidebar that makes up the review. > > *Any ideas how to solve this matter?* > * > * > Thank you, > > Giorgio Marrale > > > > -- > software developer @ Semantic Web project > > >
Received on Thursday, 14 February 2013 19:18:40 UTC