: Schema.org BlogPosting mainEntityOfPage vs. WebPage mainEntity I am still having difficulty in trying to understand what the mainEntityOfPage.@id is and why it is recommended by Google. I am referring
I am still having difficulty in trying to understand what the mainEntityOfPage.@id is and why it is recommended by Google. I am referring specifically to articles, blog posts and similar schemas. Here is the article that I read:
developers.google.com/structured-data/rich-snippets/articles
I currently have my blog post page setup like this (I have left out most of the required fields otherwise this post gets too long):
<script type="application/ld+json">
{
"@@context": "http://schema.org",
"@@type": "WebPage",
"breadcrumb": {
"@@type": "BreadcrumbList",
"itemListElement": [{
"@@type": "ListItem",
"item": {
"@@id": "http://www.example.com",
"name": "My Website"
},
"position": 1
}, {
"@@type": "ListItem",
"item": {
"@@id": "http://www,example.com/blog",
"name": "Blog"
},
"position": 2
}, {
"@@type": "ListItem",
"item": {
"@@id": "http://www.example.com/blog/1001/test-blog-post",
"name": "Test Blog Post"
},
"position": 3
}]
},
"mainEntity": {
"@@type": "BlogPosting",
"headline": "Test Blog Post",
"url": "http://www.example.com/blog/1001/test-blog-post"
}
}
</script>
Using mainEntity the way I did, is this the same thing as using mainEntityOfPage.@id? If it is not, how do I change my code to fit in with Google's requirements?
More posts by @Berryessa370
1 Comments
Sorted by latest first Latest Oldest Best
@unor posted detailed answers here:
New required mainEntityOfPage for article structured data stackoverflow.com/questions/34466028/how-to-implement-mainentityofpage-to-this-specific-site/34467088#34467088
It would be much easier to understand if Google's structured data testing tool would remove the warning if you don't specify mainEntityOfPage.@id but specify mainEntity. This is how I currently have it.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.