Created
July 5, 2018 11:08
-
-
Save boly38/0935d8b0a83b7a2fe4254fa2a6b92113 to your computer and use it in GitHub Desktop.
Repeating Comment in JSON-LD Article (Schema.org specifications)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to: