哪种 BookFormatType 用于 PDF?
Which BookFormatType for PDF?
我用的是BookFormatType
for Google’s Book feature。
到目前为止我的结构没问题according to the SDTT。
我提供:
但是 PDF 应该使用什么?或者我应该为 PDF 使用不同的 Rich Snippet 吗?
这是正确的解决方案:
{
"@context": "http://schema.org/",
"@type": "Book",
"name": "Gone With the Wind",
"encoding": {
"@type": "MediaObject",
"contentSize": "2.1 megabytes",
"encodingFormat": "PDF"
},
"url": "http://www.ebookstodayfromthad.com/gonewiththewind"
}
来源Github
PDF 是电子书
如果 PDF 包含一本书,则它是一本电子书。 (参见维基百科:E-book: Formats and Comparison of e-book formats: Portable Document Format)。
所以对于这样的PDF,提供一个Book
with bookFormat
= https://schema.org/EBook
.
如果要提供电子书的文件类型,可以使用fileFormat
property with a value of application/pdf
(IANA Media Types).
多种格式的书
当您提供不同格式的书籍(平装本、多本电子书等)时,您应该使用一个 Book
项目代表作品,另一个 Book
项目代表每种格式.
你可以 link 他们 workExample
属性:
Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook.
JSON-LD示例
{
"@context": "http://schema.org/",
"@type": "Book",
"name": "Gone with the Wind",
"author": {
"@type": "Person",
"name": "Margaret Mitchell"
},
"workExample": [
{
"@type": "Book",
"name": "Paperback of 'Gone with the Wind'",
"bookFormat": "https://schema.org/Paperback"
},
{
"@type": "Book",
"name": "PDF of 'Gone with the Wind'",
"bookFormat": "https://schema.org/EBook",
"fileFormat": "application/pdf"
},
{
"@type": "Book",
"name": "EPUB of 'Gone with the Wind'",
"bookFormat": "https://schema.org/EBook",
"fileFormat": "application/epub+zip"
}
]
}
我用的是BookFormatType
for Google’s Book feature。
到目前为止我的结构没问题according to the SDTT。
我提供:
但是 PDF 应该使用什么?或者我应该为 PDF 使用不同的 Rich Snippet 吗?
这是正确的解决方案:
{
"@context": "http://schema.org/",
"@type": "Book",
"name": "Gone With the Wind",
"encoding": {
"@type": "MediaObject",
"contentSize": "2.1 megabytes",
"encodingFormat": "PDF"
},
"url": "http://www.ebookstodayfromthad.com/gonewiththewind"
}
来源Github
PDF 是电子书
如果 PDF 包含一本书,则它是一本电子书。 (参见维基百科:E-book: Formats and Comparison of e-book formats: Portable Document Format)。
所以对于这样的PDF,提供一个Book
with bookFormat
= https://schema.org/EBook
.
如果要提供电子书的文件类型,可以使用fileFormat
property with a value of application/pdf
(IANA Media Types).
多种格式的书
当您提供不同格式的书籍(平装本、多本电子书等)时,您应该使用一个 Book
项目代表作品,另一个 Book
项目代表每种格式.
你可以 link 他们 workExample
属性:
Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook.
JSON-LD示例
{
"@context": "http://schema.org/",
"@type": "Book",
"name": "Gone with the Wind",
"author": {
"@type": "Person",
"name": "Margaret Mitchell"
},
"workExample": [
{
"@type": "Book",
"name": "Paperback of 'Gone with the Wind'",
"bookFormat": "https://schema.org/Paperback"
},
{
"@type": "Book",
"name": "PDF of 'Gone with the Wind'",
"bookFormat": "https://schema.org/EBook",
"fileFormat": "application/pdf"
},
{
"@type": "Book",
"name": "EPUB of 'Gone with the Wind'",
"bookFormat": "https://schema.org/EBook",
"fileFormat": "application/epub+zip"
}
]
}