文章或博客似乎都不适合有主题和讨论的论坛。或者文章是否考虑过任何通用帖子或评论?
我根据this消息使用Article作为主题,使用ItemList作为论坛中的主题列表。
https://schema.org/DiscussionForumPosting似乎是schema.org推荐的解决方案,他们说这是为:
发布到讨论论坛。
他们甚至提供了一个JSON_LD示例:
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"DiscussionForumPosting",
"@id":"http://www.reddit.com/r/webdev/comments/2gypch/is_schemaorg_still_a_thing/"
"headline":"Is Schema.org still a thing?",
"author": {
"@type": "Person",
"name": "haecceity123"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/CommentAction",
"userInteractionCount": 25
},
}
JSON-LD是架构的推荐解决方案,所以我正在寻找一些真实世界的例子。在Schema网站上,它给出了DiscussionForumPosting的描述:发布到讨论论坛。
这似乎表明主题中的每个帖子都应该有结构化数据(这对我来说很有意义)。
他们使用interactionStatistic属性提供的示例似乎表明这是针对主题中的第一篇论坛帖子。
论坛由类别(通常)组成,类别由主题组成,主题各有1个或多个表单。
使用DiscussionForumPosting我们如何处理多个帖子的主题。大论坛主题可以有很多页面和100多个帖子
Stackoverflow本身使用QAPage作为HTML元素,Question作为问题元素Answer作为答案元素。例:
<html itemscope="" itemtype="http://schema.org/QAPage">
...
<div itemprop="mainEntity" itemscope="" itemtype="http://schema.org/Question">
<h1 itemprop="name"><a href="...">The title of question</a></h1>
<div role="main" aria-label="Question and answers">
<div class="question">
<div itemprop="text">
The text of question
</div>
<div>
Answers Count: <span itemprop="answerCount">2</span>
</div>
</div>
<div class="answers">
<div itemprop="acceptedAnswer" itemscope="" itemtype="http://schema.org/Answer">
<div itemprop="text">
The text of answer
</div>
</div>
<div itemprop="suggestedAnswer" itemscope="" itemtype="http://schema.org/Answer">
<div itemprop="text">
The text of answer
</div>
</div>
</div>
</div>
</div>
...
</html>
有关更多详细信息,您可以检查Internet上可用论坛的来源。此外,您可以通过Structured data testing tool验证您的结构化数据。
(准备使用架构示例)
用于WebSite SEO视频示例的模式标记优化Json-ld Schema.org SEO公司Ganpati区域
https://www.youtube.com/watch?v=L4LZ3-m2xMQ&feature=youtu.be
模式视频优化标记示例视频对象库编码jsonld模式组织Ganpati区域
https://www.youtube.com/watch?v=bN_vSAMtjm0&feature=youtu.be