2
私はJSON-LDでペーパーバックと電子ブックの両方の形式で本を提示したいと思います。JSON-LDで2 'mainEntity'を使用
私は別のmainEntity
を追加している場合は、構造化データテストツールは、重複キーを見つけます。
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"mainEntity":{
"@type": "Book",
"author": "http://mywebsite.com/authors",
"bookFormat": "http://schema.org/EBook",
"datePublished": "2017-08-26",
"image": "http://mywebsite.com/images/coverImage.jpg",
"inLanguage": "en-US",
"isbn": "ebook isbn",
"name": "my website",
"numberOfPages": "200",
"offers": {
"@type": "Offer",
"availability": "http://schema.org/InStock",
"price": "30",
"priceCurrency": "USD"
},
"mainEntity":{
"@type": "Book",
"author": "http://mywebsite.com/authors",
"bookFormat": "http://schema.org/Paperback",
"datePublished": "2017-08-26",
"image": "http://mywebsite.com/images/coverImage.jpg",
"inLanguage": "en-US",
"isbn": "book isbn",
"name": "my website",
"numberOfPages": "200",
"offers": {
"@type": "Offer",
"availability": "http://schema.org/InStock",
"price": "55",
"priceCurrency": "USD"
},
"publisher": "Publisher name",
}
}
</script>
あなたは私にそれを実装するための最良の方法を教えていただけますか?