Re: multiple books format in one page

Thanks Martin for your job. I'll follow the issue on github.

Just a question: how can I use multi-typed entities for markup my page?

Gregorio

On Thu, Jul 9, 2015 at 9:34 AM, mfhepp@gmail.com <mfhepp@gmail.com> wrote:

> The issue is now at https://github.com/schemaorg/schemaorg/issues/637
>
> -----------------------------------
> martin hepp  http://www.heppnetz.de
> mhepp@computer.org          @mfhepp
>
>
>
>
>
>
>
> > On 09 Jul 2015, at 09:16, mfhepp@gmail.com wrote:
> >
> > I found that the reason for this problem is that
> http://schema.org/offers includes CreativeWork as its domain, while
> http://schema.org/itemOffered does only include Product in its range.
> >
> > I will file an issue for that, but it is not clear to me whether we
> should simply include CreativeWork in the range of itemOffered. Using
> multi-typed entities properly would be a cleaner approach.
> >
> > So currently, you have to use Book -> offers -> Offer for books; Offer
> -> itemOffered -> Book does not work in Google as of now.
> >
> > Martin
> >
> > -----------------------------------
> > martin hepp  http://www.heppnetz.de
> > mhepp@computer.org          @mfhepp
> >
> >
> >
> >
> >
> >
> >
> >> On 09 Jul 2015, at 09:06, mfhepp@gmail.com wrote:
> >>
> >> Hi,
> >>
> >> The following markup validates as of today:
> >>
> >> <body>
> >>      <div itemscope itemtype="http://schema.org/Book">
> >>              <img itemprop="image"
> src="catcher-in-the-rye-book-cover.jpg" alt="cover art: red horse, city in
> background" />
> >>              <span itemprop="name">The Catcher in the Rye</span> -
> >>              <link itemprop="bookFormat" href="
> http://schema.org/Paperback">Mass Market Paperback
> >>              by <a itemprop="author"
> href="/author/jd_salinger.html">J.D. Salinger</a>
> >>
> >>              <div itemprop="offers" itemscope itemtype="
> http://schema.org/Offer">
> >>                      Price: <span itemprop="price"
> content="6.99">$6.99</span>
> >>                      <meta itemprop="priceCurrency" content="USD" />
> >>                      <link itemprop="availability" href="
> http://schema.org/InStock" />In Stock
> >>              </div>
> >>              Product details
> >>              <span itemprop="numberOfPages">224</span> pages
> >>              Publisher: <span itemprop="publisher">Little, Brown, and
> Company</span> -
> >>              <meta itemprop="datePublished" content="1991-05-01" />May
> 1, 1991
> >>              Language: <span itemprop="inLanguage">English</span>
> >>              ISBN-10: <span itemprop="isbn">0316769487</span>
> >>      </div>
> >> ...
> >> </body>
> >>
> >> In theory, the book should be a multi-typed entity, i.e. combining Book
> and Product for the book, like shown below.
> >>
> >> Unfortunately, the Google tool does not properly handle multi-typed
> entities in Microdata markup as of today.
> >>
> >> <body>
> >>      <div itemscope itemtype="http://schema.org/Book
> http://schema.org/Product">
> >>              <img itemprop="image"
> src="catcher-in-the-rye-book-cover.jpg" alt="cover art: red horse, city in
> background" />
> >>              <span itemprop="name">The Catcher in the Rye</span> -
> >>              <link itemprop="bookFormat" href="
> http://schema.org/Paperback">Mass Market Paperback
> >>              by <a itemprop="author"
> href="/author/jd_salinger.html">J.D. Salinger</a>
> >>
> >>              <div itemprop="offers" itemscope itemtype="
> http://schema.org/Offer">
> >>                      Price: <span itemprop="price"
> content="6.99">$6.99</span>
> >>                      <meta itemprop="priceCurrency" content="USD" />
> >>                      <link itemprop="availability" href="
> http://schema.org/InStock" />In Stock
> >>              </div>
> >>              Product details
> >>              <span itemprop="numberOfPages">224</span> pages
> >>              Publisher: <span itemprop="publisher">Little, Brown, and
> Company</span> -
> >>              <meta itemprop="datePublished" content="1991-05-01" />May
> 1, 1991
> >>              Language: <span itemprop="inLanguage">English</span>
> >>              ISBN-10: <span itemprop="isbn">0316769487</span>
> >>      </div>
> >> ...
> >> </body>
> >>
> >>
> >> It works using additionalProperty, like so:
> >>
> >> <body>
> >>      <div itemscope itemtype="http://schema.org/Book">
> >>              <link itemprop="additionalType" href="
> http://schema.org/Product" />
> >>              <img itemprop="image"
> src="catcher-in-the-rye-book-cover.jpg" alt="cover art: red horse, city in
> background" />
> >>              <span itemprop="name">The Catcher in the Rye</span> -
> >>              <link itemprop="bookFormat" href="
> http://schema.org/Paperback">Mass Market Paperback
> >>              by <a itemprop="author"
> href="/author/jd_salinger.html">J.D. Salinger</a>
> >>
> >>              <div itemprop="offers" itemscope itemtype="
> http://schema.org/Offer">
> >>                      Price: <span itemprop="price"
> content="6.99">$6.99</span>
> >>                      <meta itemprop="priceCurrency" content="USD" />
> >>                      <link itemprop="availability" href="
> http://schema.org/InStock" />In Stock
> >>              </div>
> >>              Product details
> >>              <span itemprop="numberOfPages">224</span> pages
> >>              Publisher: <span itemprop="publisher">Little, Brown, and
> Company</span> -
> >>              <meta itemprop="datePublished" content="1991-05-01" />May
> 1, 1991
> >>              Language: <span itemprop="inLanguage">English</span>
> >>              ISBN-10: <span itemprop="isbn">0316769487</span>
> >>      </div>
> >> ...
> >> </body>
> >>
> >>
> >> Martin
> >>
> >> -----------------------------------
> >> martin hepp  http://www.heppnetz.de
> >> mhepp@computer.org          @mfhepp
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>> On 08 Jul 2015, at 14:59, Gregorio Pellegrino <
> gregorio.pellegrino@effata.it> wrote:
> >>>
> >>> Hi,
> >>> I'm new to this list. My name is Gregorio and I work for a publishing
> house in Italy.
> >>>
> >>> I was looking for a solution to markup (using Schema.org) our website
> in which we sell paper books and ebooks. The fact is that in one single
> page (that represent the book) there are both paper and digital version.
> >>>
> >>> I've found in the list archive this topic:
> http://lists.w3.org/Archives/Public/public-vocabs/2012Feb/0091.html
> >>>
> >>> I've followed the instructions (example on webpage
> https://editrice.effata.it/libro/9788869290428/tolkien-e-i-classici-ebook/),
> but the Google's Structured Data Testing Tool says that "Book could not be
> a valid target for itemOffered".
> >>>
> >>> Any suggestion?
> >>>
> >>> --
> >>> Gregorio Pellegrino
> >>>
> >>> Effatà Editrice
> >>> T 0121 353452
> >>> F 0121 353839
> >>> E gregorio.pellegrino@effata.it
> >>> W www.effata.it/
> >>> TW @g_pellegrino
> >>> FB facebook.com/EffataEditrice
> >>> ME about.me/gregorio.pellegrino
> >>> IN linkedin.com/in/gregoriopellegrino
> >>
> >
> >
>
>


-- 
Gregorio Pellegrino

Effatà Editrice
T 0121 353452
F 0121 353839
E gregorio.pellegrino@effata.it
W www.effata.it/
TW @g_pellegrino <http://twitter.com/g_pellegrino>
FB facebook.com/EffataEditrice
ME about.me/gregorio.pellegrino
IN linkedin.com/in/gregoriopellegrino
<https://it.linkedin.com/in/gregoriopellegrino>

Received on Thursday, 9 July 2015 10:08:37 UTC