Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created July 28, 2023 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angiejones/8c6731420307668e790ba457e3ed69ed to your computer and use it in GitHub Desktop.
Save angiejones/8c6731420307668e790ba457e3ed69ed to your computer and use it in GitHub Desktop.
ChatGPT-generated book reviews
const schema = {
"context": "https://schema.org/",
"type": "Review",
get uri() { return this.context + this.type}
}
let reviews = [
{
"@context": schema.context,
"@type": schema.type,
"itemReviewed": {
"@type": "Book",
"name": "The Great Gatsby",
"author": {
"@type": "Person",
"name": "F. Scott Fitzgerald"
},
"datePublished": "1925",
"genre": "Fiction"
},
"author": {
"@type": "Person",
"did": userDid
},
"datePublished": "2023-07-17",
"reviewRating": {
"@type": "Rating",
"ratingValue": "4.5"
},
"reviewBody": "A classic novel with timeless themes and memorable characters. Fitzgerald's prose is simply enchanting."
},
{
"@context": schema.context,
"@type": schema.type,
"itemReviewed": {
"@type": "Book",
"name": "To Kill a Mockingbird",
"author": {
"@type": "Person",
"name": "Harper Lee"
},
"datePublished": "1960",
"genre": "Fiction"
},
"author": {
"@type": "Person",
"did": userDid
},
"datePublished": "2023-07-17",
"reviewRating": {
"@type": "Rating",
"ratingValue": "5.0"
},
"reviewBody": "A powerful exploration of morality, justice, and the human condition. Truly a must-read."
},
{
"@context": schema.context,
"@type": schema.type,
"itemReviewed": {
"@type": "Book",
"name": "1984",
"author": {
"@type": "Person",
"name": "George Orwell"
},
"datePublished": "1949",
"genre": "Dystopian"
},
"author": {
"@type": "Person",
"did": userDid
},
"datePublished": "2023-07-18",
"reviewRating": {
"@type": "Rating",
"ratingValue": "4.7"
},
"reviewBody": "A disturbing vision of a totalitarian future. Orwell's work is as relevant today as it was when it was first published."
},
{
"@context": schema.context,
"@type": schema.type,
"itemReviewed": {
"@type": "Book",
"name": "Brave New World",
"author": {
"@type": "Person",
"name": "Aldous Huxley"
},
"datePublished": "1932",
"genre": "Dystopian"
},
"author": {
"@type": "Person",
"did": userDid
},
"datePublished": "2023-07-19",
"reviewRating": {
"@type": "Rating",
"ratingValue": "4.8"
},
"reviewBody": "A deeply disturbing yet essential read. Huxley's vision of a future driven by technology and hedonism serves as a potent warning for society."
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment