IT TIP

OpenGraph 또는 Schema.org?

itqueen 2020. 10. 16. 19:21
반응형

OpenGraph 또는 Schema.org?


다음과 같은 마크 업을 따르는 OpenGraph 프로토콜을 선호하는지 궁금합니다.

<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 프로토콜을

<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 개만 필요하다고 생각하므로 어느 것을 통합해야합니까? [실제로는 하나만 통합 할 수 있습니까?]

솔직히 IMHO-OpenGraph는 전체 코드베이스에 "적어도 방해가되지 않는다"고 생각합니다. Schema.org 프로토콜에는 [적어도 내 생각에는] 파괴적인 HTML 추가 기능이 필요한 반면 [ASP.NET MVC 사용] 부분보기를 구현하는 것이 더 쉽기 때문입니다. 당신의 코드에서?

편집 : 내가 둘 다 통합 한 것 같습니다-이것이 허용되는지 확실하지 않지만 Schema.org의 문서는 명확하지 않습니다. 특히, 이 링크는 많은 정보를 제공하지 않습니다.

Q : schema.org는 Facebook Open Graph와 어떤 관련이 있습니까?
Facebook Open Graph는 그 목적을 잘 수행하지만 검색 엔진이 사용자 경험을 개선하는 데 필요한 세부 정보를 제공하지 않습니다.

단일 웹 페이지에는 많은 구성 요소가있을 수 있으며 여러 가지에 대해 이야기 할 수 있습니다. 검색 엔진이 페이지의 다양한 구성 요소를 이해하면 데이터 표시를 개선 할 수 있습니다. Facebook Open Graph 프로토콜을 사용하여 콘텐츠를 마크 업하더라도 schema.org는 페이지의 특정 엔터티에 대한 자세한 정보를 제공하는 메커니즘을 제공합니다.
예를 들어 밴드에 대한 페이지에는 다음 중 일부 또는 모두가 포함될 수 있습니다.

  • 앨범 목록
  • 각 앨범 가격
  • 각 앨범의 노래 목록과 각 노래의 샘플을들을 수있는 링크
  • 다가오는 밴드 멤버의 약력 목록

그래서 나는 그들이 함께 호환된다고 가정합니다.


그래서, 몇 가지 진부하고 엉망인 은유로 시작하기 위해, 우리는 OG와 Schema.org를 약간 비교하여 사과와 오렌지를 이야기하고 있으며,이 메타 데이터에 관해서는 코스의 말입니다.

정답은 페이지에 메타 데이터를 추가하는 의도에 따라 다릅니다. 당신이 얻고 자하는 것은 무엇입니까? 여기서 당신의 승리는 무엇입니까? 다른 형식의 메타 데이터는 용도가 약간 다릅니다.

Google은 검색을위한 리치 데이터 결과를 구축하기 위해 마이크로 포맷에 초점을 맞추지 않고 Schema.org에 초점을 맞추고 있음을 분명히했습니다. Google, Bing 및 기타 검색 엔진에 최적화하려면 Schema.org 마크 업을 추가하세요. 그것은 HTML5가 들어온 방향입니다.

콘텐츠를 소셜 개체로 전환하고 Facebook 유니버스 인 소셜 그래프에 대한 다중 지점 연결을 활성화하는 것이 원하는 경우 Facebook OG 마크 업을 추가해야합니다.

내 경험상 대부분의 사람들은 두 가지 접근 방식 모두에서 이익을 얻고 자합니다. 검색 순위에서 가능한 한 그렇게하고 소셜 채널을 통해 도달 범위와 배포를 늘리는 것입니다. 따라서 IMHO, 콘텐츠에 맞는 Schema.org 마크 업을 추가하고 Open Graph 메타 데이터를 사용하는 것이 가능한 한 철저하게하는 것이 가장 좋습니다. 그들은 약간 다르지만 보완적인 일을합니다.


여기서는 구문어휘 라는 두 가지 개별 개념에 대해 이야기 하고 있습니다.

오픈 그래프 프로토콜Schema.org가 있다 어휘 . 다른 어휘로는 더블린 코어 , FOAF , SIOC 등이 있습니다.

이러한 어휘는 일반적으로 특정 구문과 결합 되지 않습니다 . 이러한 어휘를 사용하여 HTML 문서에서 콘텐츠를 설명하려는 경우 RDFa 및 / 또는 Microdata 구문을 사용할 수 있습니다 .

1 개만 필요하다고 생각하므로 어느 것을 통합해야합니까? [실제로는 하나만 통합 할 수 있습니까?]

첫 번째 예제는 RDFa (= 구문)와 함께 오픈 그래프 프로토콜 (= 어휘)을 사용합니다. 두 번째 예에서는 Microdata (= 구문)와 함께 Schema.org (= 어휘)를 사용합니다.

원하는대로 혼합 할 수 있습니다. (동일한 페이지에서 두 구문 모두에서 두 어휘를 모두 사용할 수 있습니다. 하나의 구문으로 두 어휘를 모두 사용할 수 있습니다. 두 구문 모두에서 하나의 어휘 만 사용하거나 하나의 구문으로 만 사용할 수 있습니다.…). 특정 사용 사례에 전적으로 달려 있습니다.

무엇을 성취하고 싶습니까? 콘텐츠를 파싱하는 특정 타사에 관심이있는 경우 해당 문서를 확인해야합니다. 일반적으로 특정 구문이있는 특정 어휘 만 지원합니다.

그러나 특정 사용 사례를 염두에 두지 않고 의미 론적 메타 데이터로 콘텐츠를 마크 업하려는 경우 하나의 구문을 고수하고 콘텐츠에 적합한 어휘를 사용할 수 있습니다. 개인적으로 RDFa ( Lite )를 선택합니다 . HTML 이외의 다른 형식에서도 작동 하는 RDF를 기반으로 합니다. W3C 권장 사항입니다 (Microdata는 아닙니다). 그리고 여러분이 찾을 수있는 대부분의 어휘는 RDF (S)에 정의되어 있습니다. RDFa 및 Microdata의 미래에 대한 내 대답을 참조하십시오 .


둘 다 안전하게 함께 사용할 수 있습니다. 현재 두 가지 노력은 서로 다른 구문을 사용하여 데이터를 HTML (W3C RDFa 또는 Microdata)로 인코딩하지만 W3C에서 이러한 디자인의 최종 수렴에 대한 활발한 논의가 있습니다. 또는 적어도 더 큰 호환성. Schema.org와 OGP 사이의 어휘 수준에서 수렴이 있을지 또는 둘 다 소비하는 서비스가 있는지 여부는 아직 밝혀지지 않았습니다. 그러나 그 동안 둘 다 가치를 더하고 안전하게 결합 할 수 있습니다.


웹 사이트를 소셜 세계 (페이스 북) 또는 검색 엔진에 마크 업하려는 경우 모두 다릅니다. 둘 다 권장되지만 시간이 있다면 회사의 마케팅 초점을 우선시하십시오. OGP는 페이스 북에서 거대하지만 SEO에서는 사용하지 않습니다. Seo는 마이크로 데이터에 완전히 의존하며 적절한 html5 생성을위한 방법입니다.

HTML5Doctor on Microdata http://html5doctor.com/microdata/

Google talking about markup: http://www.google.com/support/webmasters/bin/answer.py?answer=1211158

Bing talking about markup: http://onlinehelp.microsoft.com/en-us/bing/hh207238.aspx


Update

For anyone finding this answer, a lot has changed since I first posted it. Schema.org is widely used by all major search engines and then some but the markup is now preferred to JSON-LD. Great article from SEO Skeptic outlining the change made by Google.

Google Structured Data provides documentation in JSON-LD and is greatly encouraged although RDFa and microdata is still partial supported.

JSON-LD should be used in conjunction with any social channels you are trying to target OGP for Facebook, Twitter Cards for Twitter, etc


Why not use json-ld for markup? I'm thinking of implementing json-ld based schema.org markup. That way it'll not be intrusive. My ghost blog uses it. Don't know if it's well supported by search engines yet. But all examples on schema.org now includes implementation for json-ld. see here http://schema.org/WebPage

And all my apps use twitter cards, fb opengraph tags and microformats tags like rel and structured schema.org metadata. And I find implementing schema.org metadata most instrusive. So replacing this last bit with json-ld and keeping code clean is nice. Too many tags and it's recommended to keep your html small ;)


Google does favor schema, and open graph is better for web content that is related to social media. Your sample code looks good, but don't forget to include the prefix

<html prefix="og: http://ogp.me/ns#">

in the head of each page that has ogp.

You can check to make sure the ogp or schema works by using the rich snippet testing tool

http://www.google.com/webmasters/tools/richsnippets

In the case of Schema, you can check by using the SDTT: Structured Data Testing Tool

https://search.google.com/structured-data/testing-tool


RDFa og serves as uniform way to recognize content better by REST for consideration when embedding within containers not predicted at the time of creation. If the container is predetermined as search results, then schema.org microdata is well-understood by search bots. With og presentation is responsibility of container publisher & such quality freedom might improvise search ranking, while schema.org will improvise search result comprehensibility in the context of content creator's intent. The vocabularies usually are ignored when used with the competing semantic markup technique so best to use microdata with schema.org only and og with RDFa only. Both microdata and RDFa can coexist in same document.


rdfa(opengraph) and microdata(schema) cannot be used on same html page

"3) We’ll continue to support our existing rich snippets markup formats. If you’ve already done markup on your pages using microformats or RDFa, we’ll continue to support it. One caveat to watch out for: while it’s OK to use the new schema.org markup or continue to use existing microformats or RDFa markup, you should avoid mixing the formats together on the same web page, as this can confuse our parsers."

SRC: http://googlewebmastercentral.blogspot.in/2011/06/introducing-schemaorg-search-engines.html

참고URL : https://stackoverflow.com/questions/6402528/opengraph-or-schema-org

반응형