schema.org - OpenGraph 还是 Schema.org?

标签 schema.org microdata facebook-opengraph rdfa

只是想知道你们是否喜欢遵循如下标记的 OpenGraph 协议(protocol):

<meta property="og:title" content="The Rock" />
<meta property="og:type" content="movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />

或者 Schema.org 协议(protocol)

<div itemscope itemtype="http://schema.org/Product">
  <span itemprop="name">Kenmore White 17" Microwave</span>
  <img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
  <div itemprop="aggregateRating"
    itemscope itemprop="http://schema.org/AggregateRating">

我应该集成哪一个,因为我认为只需要 1 个? [其实只能整合一个或者吗?]

坦率地说,恕我直言 - 我认为 OpenGraph 对整个代码库的“侵入性较小” - 因为它更容易实现部分 View [使用 ASP.NET MVC],而 Schema.org 协议(protocol)需要 [至少在我看来] 破坏性的 HTML您的代码中是否有插件?

编辑:似乎我最终将两者集成 - 不确定这是否允许,但 Schema.org 上的文档尚不清楚。值得注意的是,this link doesn't provide much info

Q: How does schema.org relate to Facebook Open Graph?
Facebook Open Graph serves its purpose well, but it doesn't provide the detailed information search engines need to improve the user experience.

A single web page may have many components, and it may talk about more than one thing. If search engines understand the various components of a page, we can improve our presentation of the data. Even if you mark up your content using the Facebook Open Graph protocol, schema.org provides a mechanism for providing more detail about particular entities on the page.
For example, a page about a band could include any or all of the following:

  • A list of albums
  • A price for each album
  • A list of songs for each album, along with a link to hear samples of each song
  • A list of upcoming shows Bios of the band members

所以我认为它们是兼容的。

最佳答案

因此,首先,先讲几个陈词滥调和扭曲的隐喻 - 我们谈论的是苹果和橘子,比较 OG 和 Schema.org,当谈到此元数据时,它就是类(class)的马。

正确的答案取决于您向页面添加元数据的意图。你希望获得什么?你在这里的胜利是什么?不同形式的元数据的用途略有不同。

Google 已明确表示,它正在从对微格式的关注转向对 Schema.org 的关注,以便为搜索构建丰富的数据结果。如果您想针对 Google、Bing 和其他搜索引擎进行优化,请添加 Schema.org 标记。这是 HTML5 的发展方向。

如果您希望通过将内容转变为社交对象并使其与 Facebook 宇宙的社交图谱实现多点连接而受益,则需要添加 Facebook OG 标记。

根据我的经验,大多数人都希望从这两种方法中获益 - 尽其所能地提高搜索排名,并通过社交 channel 扩大覆盖范围和传播。因此,恕我直言,最好尽可能彻底地添加适合您内容的 Schema.org 标记并使用开放图谱元数据。他们所做的事情略有不同,但互补。

关于schema.org - OpenGraph 还是 Schema.org?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6402528/

相关文章:

facebook-like - 正文中的元标记

url - Google SDTT : "All values provided for url must point to the same page."中的错误

html - 在 Article sheme 上设置 logo 属性

HTML 组织微数据就在关于我们页面或首页也

seo - 如果 Microdata 和 RDFa 都在同一个网页上会发生什么

seo - Google 是否支持文章丰富网页摘要?

google-search - Google 搜索 : is it necessary to make “carousel” the root element? 中 "ItemList"片段的结构化数据

javascript - jQuery AJAX : Get Meta-Data from Cross Domain HTML-Page

facebook - 打开图元标记