OpenGraph或Schema.org? [英] OpenGraph or Schema.org?

查看:108
本文介绍了OpenGraph或Schema.org?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道你们是否喜欢以下标记之后的OpenGraph协议:

Just wondering whether you guys out there are favouring the OpenGraph protocol following markup like:

<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协议

Or the Schema.org protocol with

<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个? [实际上您只能集成一个或一个吗?]

Which one should I integrate as I think only 1 is necessary ? [actually can you only integrate one or ?]

坦率地说,恕我直言-我认为OpenGraph对整个代码库不那么侵入"-因为更容易实现部分视图(使用ASP.NET MVC),而Schema.org协议要求[至少在我看来]破坏性的HTML您的代码中的加载项?

Frankly, IMHO - I think OpenGraph is "less intrusive" to the total codebase - as it's easier to implement Partial Views [using ASP.NET MVC] whereas the Schema.org protocol requires [at least in my opinion] disruptive HTML add-ins across your code ?

似乎我最终集成了这两者-不确定是否允许这样做,但是Schema.org上的文档尚不清楚.值得注意的是,此链接没有提供太多信息

Seems I ended up integrating both - not sure whether this is allowed but the documentation on Schema.org is unclear. Notably, this link doesn't provide much info

问: schema.org与Facebook Open Graph有何关系?
Facebook Open Graph很好地实现了它的目的,但是它 没有提供详细的 信息搜索引擎需要 改善用户体验.

单身 网页可能包含许多组件,并且 它可能谈论的不止一件事. 如果搜索引擎了解 页面的各个组成部分,我们可以 改善我们的数据表示方式. 即使您使用标记内容 Facebook Open Graph协议, schema.org提供了一种机制 提供有关特定内容的更多详细信息 页面上的实体.
例如,一个 有关乐队的页面可能包含任何或 所有以下内容:

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

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

So I assume that they are compatible together.

推荐答案

因此,从几个陈词滥调和残缺不全的隐喻开始-我们在谈论苹果和橙子,比较OG和Schema.org,以及何时推出.到了这个元数据,课程必不可少.

So, to start with a couple of cliche's and mangled metaphors - we're talking apples and oranges a bit comparing OG and Schema.org, and when it comes to this metadata it's horses for courses.

正确的答案取决于您的意图,即向页面添加元数据.您希望获得什么?您在这里获得的胜利是什么?元数据的不同形式是出于稍微不同的目的.

The right answer depends on your intent, in adding metadata to your page. What is it that you're hoping to gain? What is the win for you here? The different forms of metadata are for slightly different purposes.

Google已经明确表示,它将不再关注微格式,而是关注Schema.org,以构建用于搜索的丰富数据结果.如果您想针对Google进行优化,则必应和其他搜索引擎会添加Schema.org标记.这就是HTML5介入的方向.

Google has made it clear that it's moving away from a focus on microformats and onto a focus on Schema.org in order to build rich-data results for search. If you want to optimize for Google, Bing and other search engines add the Schema.org markup. It's the direction HTML5 has stepped in.

如果要从内容转换为社交对象并使其与Facebook宇宙的社交图建立多点连接中受益,则要添加Facebook OG标记.

Facebook OG markup is to be added if what you want is to benefit from turning your content into a social object and enable its multi-point connectivity to the social graph that is the Facebook universe.

根据我的经验,大多数人都希望从这两种方法中获益-在搜索排名中尽其所能,并通过社交渠道增加覆盖面和分布.因此,恕我直言,最好是尽可能全面地添加Schema.org标记,使其适合您的内容并使用Open Graph元数据.他们做的事情略有不同,但却是相辅相成的.

In my experience most people are looking to gain from both approaches - do as well as they can in search rankings and increase reach and distribution through social channels. So, IMHO, it's probably best to be as thorough as possible adding the Schema.org markup where it fits your content and use Open Graph metadata. They do slightly different, but complementary things.

这篇关于OpenGraph或Schema.org?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆