发布者和名称微数据 [英] Publisher and Name Microdata
问题描述
在博客或文章中,如果发布者是个人,如何使用 Schema.org 和微数据?
我可以找到答案:在 BlogPosting 中使用publisher"的正确方法
<块引用><span itemprop="name">一些名字</span>
但是 Google 测试工具说:
<块引用>属性publisher.itemtype 的值无效
也许我不太明白答案?publisher
如果是人或者和作者一样怎么用?
如果发布者是个人,这是提供发布者的正确方式.
不幸的是,大多数情况下,Google 的 SDTT 都会报告一些错误,这不是 Schema.org/Microdata 的错误,而是 Google 要求获取其丰富结果之一的要求.
这里似乎也是这种情况:文章富媒体搜索结果,Google 仅将组织(而非个人)视为发布商:
<块引用>出版商
组织
;必需 (AMP),忽略(非 AMP)
文章的出版商.
因此,如果发布者是个人,请忽略此错误.
如果发布者与作者相同,您可以在同一个itemprop
属性中同时使用这两个属性:
In a BlogPosting or an Article if the publisher is a person how to use Schema.org and Microdata?
I could find that answer:
Proper way to use 'publisher' in BlogPosting
<div itemprop="publisher" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Some Name</span>
</div>
But the Google Testing Tool says:
The attribute publisher.itemtype has an invalid value
Perhaps I do not understand well well the answer? How to use publisher
if it is a person or if it is the same than the author?
解决方案 That is the correct way to provide the publisher in case it’s a person.
Unfortunately, most of the time Google’s SDTT reports something as error which isn’t an error with Schema.org/Microdata, but with Google’s requirements for getting one of their rich results.
This seems to be the case here, too: it’s likely an error for the AMP version of the Articles rich result, for which Google only considers organizations (and not persons) as publishers:
publisher
Organization
; required (AMP), ignored (non-AMP)
The publisher of the article.
So if the publisher is a person, simply ignore this error.
If the publisher is the same as the author, you can use both properties in the same itemprop
attribute:
<div itemprop="author publisher" itemscope itemtype="http://schema.org/Person">
这篇关于发布者和名称微数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文