1st Book example JSON-LD is buggy #644

Closed
danbri opened this Issue Jul 13, 2015 · 3 comments

Projects

None yet

3 participants

@danbri
Contributor
danbri commented Jul 13, 2015

The Microdata and RDFa also mention WebPage; the JSON-LD mushes them together.

/cc @vholland

Other issues with this Book example:

  • the 'breadcrumb' property usage is goofy. Here I experiment with 'about' instead but we might want to just remove that now.

  • Google testing tool complains that the review/rating data is missing info. Does it have a point?

    <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Book", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4", "reviewCount": "3077" }, "author": "/author/jd_salinger.html", "bookFormat": "http://schema.org/Paperback", "about": "Books > Literature & Fiction > Classics", "datePublished": "1991-05-01", "image": "catcher-in-the-rye-book-cover.jpg", "inLanguage": "English", "isbn": "0316769487", "name": "The Catcher in the Rye", "numberOfPages": "224", "offers": { "@type": "Offer", "availability": "http://schema.org/InStock", "price": "6.99", "priceCurrency": "USD" }, "publisher": "Little, Brown, and Company", "review": [ { "@type": "Review", "author": "John Doe", "datePublished": "2006-05-04", "name": "A masterpiece of literature", "reviewBody": "I really enjoyed this book. It captures the essential challenge people face as they try make sense of their lives and grow to adulthood.", "reviewRating": "5" }, { "@type": "Review", "author": "Bob Smith", "datePublished": "2006-06-15", "name": "A good read.", "reviewBody": "Catcher in the Rye is a fun book. It's a good book to read.", "reviewRating": "4" } ] } </script>

The exact example is here: https://github.com/schemaorg/schemaorg/blob/sdo-ganymede/data/examples.txt#L1166

@danbri danbri added this to the sdo-ganymede release milestone Jul 13, 2015
@vholland
Contributor

The breadcrumb thing is odd.

SDTT wants a proper Rating entity, so

"reviewRating": "5"

becomes

"reviewRating": { "@type": "Rating", "ratingValue": "5" }

@RichardWallis RichardWallis pushed a commit that referenced this issue Jul 15, 2015
wallisr Fix to Book example makinging it mainEntity of WebPage
Fixed JSON-LD to reflect this
#644
a1bb071
@danbri
Contributor
danbri commented Jul 16, 2015

Note #529 ... maybe we should strip out breadcrumb from these examples for now, until we clarify whether 'breadcrumb' (the property, vs BreadcrumbList) is still useful.

@RichardWallis
Contributor

Could do - and for now we could preserve a simplified version and attach it
to breadcrumb as a text example

On Thu, Jul 16, 2015 at 12:58 PM, Dan Brickley notifications@github.com
wrote:

Note #529 #529 ... maybe
we should strip out breadcrumb from these examples for now, until we
clarify whether 'breadcrumb' (the property, vs BreadcrumbList) is still
useful.


Reply to this email directly or view it on GitHub
#644 (comment)
.

@danbri danbri added a commit that referenced this issue Jul 24, 2015
@danbri danbri made review rating more explicit in the json-ld. per #644
Couldn't bring myself to make the microdata and rdfa so verbose though.
26d21f1
@danbri danbri closed this Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment