使用Schema.org标记博客的首选方法

Mar*_*tin 13 blogs semantic-markup microdata schema.org

背景/上下文

由于schema.org相对较新,或许这个问题会促进更多的讨论,而不是一个明确的答案.无论哪种方式,希望可以从别人的应用/经验中学到一些知识.

在研究了http://schema.org文档页面之后 - 虽然似乎有丰富的属性(读取:itemprop属性)可用于丰富博客文章,但似乎存在一些不一致和"灰色区域"的问题.标记博客评论的最佳方法.让我举一个例子:

博客的schema.org文档可以在Thing> CreativeWork> Blog中找到,供参考,博客文章位于Thing> CreativeWork>文章> BlogPosting中

到目前为止,在上述页面的文档和标记的例子提供足够的参考格式化博客索引页,以及内容的个别文章内的总体(author,pubDate,articleBody,interactionCount,等)

问题:将UserInteraction架构应用于各个博客评论

当我们开始查看单个UserInteraction元素(博客评论)时interactionCount,事情变得有点模糊.文档引导我们进入Thing> Event> UserInteraction> UserComments,并被描述为"用户交互:关于项目的评论".然而,所有建议的属性UserInteraction都面向物理事件.

唯一似乎与此架构文档中的博客评论相关的属性是description; 这可以用于评论机构.缺乏的是用户对博客帖子的评论的一些特定背景.还没有证据表明所述评论的示例标记,即使在网站上搜索"评论"似乎也没有任何明确性.

有没有人使用schema.org标记他们的博客 - 你是如何处理/解决这个问题的?

我还将通过schema.org反馈表提出此事,如果有任何问题,请更新此帖.

Erv*_*ald 11

请查看http://schema.org/WebPage中的示例,并注意评论如何用于书籍.

你可以对文章中的评论做同样的事情,这是一个例子:

 <div itemscope itemtype="http://schema.org/Article"> 

     <-- Article content -->

     <div itemprop="comment" itemscope itemtype="http://schema.org/UserComments">     
       <meta itemprop="discusses" content="A masterpiece of literature" />             
       <span itemprop="creator">John Doe</span>   
       <time itemprop="commentTime" datetime="2011-05-08T19:30">May 8, 7:30pm</time>    

       <span itemprop="commentText">I really enjoyed this book. It captures the essential  
       challenge people face as they try make sense of their lives.</span>    
     </div>

     <div itemprop="comment" itemscope itemtype="http://schema.org/UserComments">     
       <meta itemprop="discusses" content="A masterpiece of literature" />             
       <span itemprop="creator">John Doe</span>   
       <time itemprop="commentTime" datetime="2011-05-08T19:30">May 8, 7:30pm</time>    

       <span itemprop="commentText">I really enjoyed this book. It captures the essential  
       challenge people face as they try make sense of their lives.</span>    
     </div>

 </div>
Run Code Online (Sandbox Code Playgroud)


uno*_*nor 5

几年后,http://schema.org/Comment已经推出.

对项目的评论 - 例如,对博客文章的评论.评论的内容通过"text"属性表示,其主题通过"about"表示,属性与所有CreativeWorks共享.