英文:
Is there a specific schema.org type that fits well for structured data on a webbook with multiple chapters?
问题
我在我的个人网站上写、构建并发布了一本网络书籍。为了消除歧义,"网络书籍" 指的是一本内容可以直接在 HTML 格式的网站上阅读的书,而不是可下载的 EPUB 或 PDF。
这本网络书籍分成多个网页,每个网页是一章。
我目前正在处理媒体所需的元数据方面的工作:性能、SEO、可用性、可访问性等。这让我想到了结构化数据的问题。
所以我的问题是:对于一本网络书籍,我可以声明什么作为结构化数据?
我发现了 schema.org 的 "CreativeWork",它有点类似于网络书籍,但有点模糊,还有它的子类型 "Chapter"。我还发现了 "WebContent",但它也很模糊。
"Book" 似乎局限于实体书籍。而且似乎没有任何主要公司支持它(或者你必须足够大才能出现在 Google 的应用程序上)。 "Article" 起初似乎适合,但 Google 展示数据的方式使其在我看来不适合(章节在新闻源中显示为文章)。 顺便说一下,我还查了一下必应的站长工具关于其支持的类型的帮助,但与 Google 相比,列出的选项更少。
也许我应该放弃试图正确声明我的内容,因为我不会从结构化数据中获得任何好处吗?
如果您想查看我所说的网络书籍,可以在这里访问(它是法语,但内容对于我的问题并不重要):https://nemulumen.lightnovel.online/tnbs1/
英文:
I wrote, built, and published a webbook on my personal website. To disambiguate, the word "webbook" refers to a book whose content is directly readable on a website in HTML format, not an epub to download or a PDF.
This webbook is split across multiple webpages. Each webpage is a chapter.
I am currently working on the meta-aspects required by the medium: performance, SEO, usability, accessibility, etc. Which leads me to the structured data question.
So my question is: What can I declare as structured data for a webbook?
I have found schema.org's "CreativeWork", which is kind of matching a webbook yet a little vague, and its subtype "Chapter". I have also found "WebContent", but it's vague as well.
"Book" seems limited to physical books. And it looks like it is not supported by any major company (or you must be big enough to appear on Google's apps). "Article" seemed to fit at first, but the way Google presents the data makes it—in my opinion—unfit for the task (chapters appearing as articles in a news feed). As a side note, I also checked Bing's Webmaster Tools help about its supported types, but even fewer options are listed compared to Google.
Maybe I should just give up on trying to properly declare my content because I would get no benefit from that structured data?
> If you want to see the webbook I'm talking about, you can access it here (it's in French but the content is not what matters for my issue): https://nemulumen.lightnovel.online/tnbs1/
答案1
得分: 1
Book
是正确的类型。它不仅限于实体/纸质作品,因为其定义只是说“一本书”,没有提及格式。还有 bookFormat
属性,其中定义了像 EBook
和 AudiobookFormat
这样的值,如果 Book
类型仅用于纸质书,这是没有意义的。
要表达 Book
以 HTML 形式提供,您可以使用 encoding
属性(其中 Book
将表示作品,而 MediaObject
将表示此作品的 HTML 编码),或者使用 encodingFormat
属性。
要将 Book
与每个 Chapter
关联起来,您可以使用 hasPart
/isPartOf
属性。
英文:
Book
is the right type here.
It’s not limited to physical/paper-based works, as its definition just says "A book", without mentioning the format. There’s also the bookFormat
property, for which values like EBook
and AudiobookFormat
are defined, which wouldn’t make sense if the Book
type were only intended for paper-based books.
To convey that the Book
is available as HTML, you can use the encoding
property (where the Book
would represent the work, and the MediaObject
would represent the HTML encoding of this work), or the encodingFormat
property.
To connect the Book
with each Chapter
, you can use the hasPart
/isPartOf
property.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论