"isPartOf" 或 "articleSection" 对于 "TechArticle" 的部分
"isPartOf" or "articleSection" for sections of a "TechArticle"
我正在为产品文档准备结构化数据(使用 Schema.org 和 JSON-LD)。文档页面分为 4 个部分(CSS、组件、JavaScript 和部分)。
我使用 TechArticle
标记这些页面。
我应该使用 articleSection
还是 isPartOf
来定义它们属于哪里?
articleSection
属性比较合适
用isPartOf
property would convey that the TechArticle
is part of another creative work, but a category (like "CSS") isn’t a creative work. The page about such a category would be a creative work (CollectionPage
), which could be used as value for isPartOf
/ where hasPart
could be used, but on that page I’d prefer to use an ItemList
(as mainEntity
)代替。
我正在为产品文档准备结构化数据(使用 Schema.org 和 JSON-LD)。文档页面分为 4 个部分(CSS、组件、JavaScript 和部分)。
我使用 TechArticle
标记这些页面。
我应该使用 articleSection
还是 isPartOf
来定义它们属于哪里?
articleSection
属性比较合适
用isPartOf
property would convey that the TechArticle
is part of another creative work, but a category (like "CSS") isn’t a creative work. The page about such a category would be a creative work (CollectionPage
), which could be used as value for isPartOf
/ where hasPart
could be used, but on that page I’d prefer to use an ItemList
(as mainEntity
)代替。