I am using schema.org (Breadcrumb) and the open graph protocol on my website. Googles Structured Data Tesing Tool mixes them both and throws out an error.
我在我的网站上使用schema.org(Breadcrumb)和开放图形协议。谷歌结构化数据测试工具将它们混合在一起并抛出错误。
You can copy and paste the code to the tool to see the error messages.
您可以将代码复制并粘贴到工具中以查看错误消息。
What did I misunderstood or did wrong? Thanks for any help.
我误解了什么或做错了什么?谢谢你的帮助。
Here is the code:
这是代码:
<html lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
<meta property="og:url" content="http://example.com/examples/example" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Examples and so on" />
<meta property="og:description" content="A lot of examples here" />
<meta property="og:image" content="http://example.com/example.jpg" />
</head>
<body>
<ol class='breadcrumb' vocab='http://schema.org/' typeof='BreadcrumbList'>
<li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/'><span property='name'>Home</span></a><meta property='position' content='1'></li>
<li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/examples'><span property='name'>Examples</span></a><meta property='position' content='2'></li>
<li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/examples/example'><span property='name'>Examples and so on</span></a><meta property='position' content='3'></li>
</ol>
</body>
</html>
1 个解决方案
#1
1
rdfa(opengraph) and microdata(schema) cannot be used on same html page
rdfa(opengraph)和microdata(schema)不能在同一个html页面上使用
"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."
“3)我们将继续支持我们现有的丰富网页摘要标记格式。如果您已经使用微格式或RDFa在您的网页上进行了标记,我们将继续支持它。需要注意的一点需要注意:虽然可以使用新的schema.org标记或继续使用现有的微格式或RDFa标记,你应该避免在同一网页上混合使用这些格式,因为这会让我们的解析器感到困惑。“
Source: http://googlewebmastercentral.blogspot.in/2011/06/introducing-schemaorg-search-engines.html
#1
1
rdfa(opengraph) and microdata(schema) cannot be used on same html page
rdfa(opengraph)和microdata(schema)不能在同一个html页面上使用
"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."
“3)我们将继续支持我们现有的丰富网页摘要标记格式。如果您已经使用微格式或RDFa在您的网页上进行了标记,我们将继续支持它。需要注意的一点需要注意:虽然可以使用新的schema.org标记或继续使用现有的微格式或RDFa标记,你应该避免在同一网页上混合使用这些格式,因为这会让我们的解析器感到困惑。“
Source: http://googlewebmastercentral.blogspot.in/2011/06/introducing-schemaorg-search-engines.html