- From: Gregg Kellogg <gregg@greggkellogg.net>
- Date: Thu, 14 Feb 2013 13:41:53 -0500
- To: Peter Savelyev <rasifiel@yandex-team.ru>
- CC: "public-vocabs@w3.org" <public-vocabs@w3.org>
- Message-ID: <46AE9E7C-E95D-4998-96A1-781F706E965A@greggkellogg.net>
On Feb 14, 2013, at 7:10 AM, Peter Savelyev <rasifiel@yandex-team.ru<mailto: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 18:42:46 UTC