schema.org - JSON-LD Create Single Review for Person -
how go creating review person? instance if user, submitted review provided both rating , associated bit of information person's/service provider's quality of service... how should coded using json-ld? think code below how correctly accomplish i'm not certain. if have suggestions, please include code input provide maximum clarity.
please keep in mind code below not page lists of ratings rather single page displays rating.
person/service single review:
<script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "review", "itemreviewed": { "@type": "person", "name": "john smith", // person being reviewd }, "reviewrating": { "@type": "rating", "bestrating": "5", "ratingvalue": "3", "worstrating": "1" } "name": "excellent service!", "author": { "@type": "person", "name": "bob smith" }, "reviewbody": "john provided excellent service!" } </script>
ref: https://developers.google.com/structured-data/rich-snippets/reviews
apart comment , 2 comma errors valid json-ld. wouldn't expect show rich snippet though. page referenced lists entitz types reviews supported: "we support reviews , ratings wide range of schema.org types, including businesses, products, , different creative works such books or movies." if possible, associate review
service
instead (the person can made provider
of service).
here's snippets 2 minor syntactic issues fixed:
<script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "review", "itemreviewed": { "@type": "person", "name": "john smith" }, "reviewrating": { "@type": "rating", "bestrating": "5", "ratingvalue": "3", "worstrating": "1" }, "name": "excellent service!", "author": { "@type": "person", "name": "bob smith" }, "reviewbody": "john provided excellent service!" } </script>
Comments
Post a Comment