Skip to content

Instantly share code, notes, and snippets.

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 boly38/0935d8b0a83b7a2fe4254fa2a6b92113 to your computer and use it in GitHub Desktop.
Save boly38/0935d8b0a83b7a2fe4254fa2a6b92113 to your computer and use it in GitHub Desktop.
Repeating Comment in JSON-LD Article (Schema.org specifications)
{
"@context": "http://schema.org",
"@graph": [
{
"@type": "Article",
"@id": "/articles/foobar",
"url" : "https:\/\/exemple.com/article?id=1234",
"author" :{"@type" : "Person","name" : "Didier"},
"image" : "https:\/\/exemple.com/article.jpg",
"mainEntityOfPage" : "https:\/\/exemple.com",
"dateModified" : "2018-06-14T19:50:02+02:00",
"datePublished" : "2018-06-14T19:50:02+02:00",
"publisher" : {"@type" : "Organization","name" : "exemple.com", "logo" : {"@type" : "ImageObject", "url" : "https:\/\/exemple.com\/logo.png"}},
"headline" : "my article",
"text" : "blah blah",
"commentCount" : 2
},
{
"@type": "Comment",
"@id": "/articles/foobar#comment-1",
"@reverse": {"comment": {"@id": "/articles/foobar"}},
"author" : {"@type" : "Person", "name" : "Didier"},
"text" : "comment first!!",
"dateCreated" : "2018-06-14T21:40:00+02:00"
},
{
"@type": "Comment",
"@id": "/articles/foobar#comment-2",
"@reverse": {"comment": {"@id": "/articles/foobar"}},
"author" : {"@type" : "Person", "name" : "Robert"},
"text" : "second comment",
"dateCreated" : "2018-06-14T23:23:00+02:00"
}
]
}
@boly38
Copy link
Author

boly38 commented Jul 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment