gpt4 book ai didi

schema.org - 结构化数据说 "The attribute publisher.itemtype has an invalid value."

转载 作者:行者123 更新时间:2023-12-03 22:25:34 26 4
gpt4 key购买 nike

我正在为我的网站文章做结构化数据。为此,我使用了一个 JSON-LD,它是使用 Google Markup Helper 制作的,还添加了一些属性来消除错误。现在,只有一个错误

The attribute publisher.itemtype has an invalid value.

我的组织也有不同的结构化数据。但是,它也不接受该值。这是我正在使用的文章代码之一

{
"@context" : "http://schema.org",
"@type" : "Article",
"name" : "Registration and Expiration Date in PHP and MySQL",
"image" : "https://i0.wp.com/technopoints.co.in/wp-content/uploads/2018/07/Expiration.jpg?resize=900%2C506&ssl=1",
"articleBody" : "Hey Technoz, In this tutorial we are going to learn how to create automatic registration and expiration date in php ...",
"url" : "https://technopoints.co.in/expiration-date-in-php/",
"author" : "Ashish Joshi",
"datePublished" : "01/07/2018",
"headline" : "Registration and Expiration Date in PHP and MySQL",
"publisher" : "Softglobe Technologies"
}

以下是组织结构代码。它没有错误。

{"@context":"https:\/\/schema.org","@type":"Organization","url":"https:\/\/technopoints.co.in\/","sameAs":["https:\/\/www.facebook.com\/technopoints.co.in","https:\/\/plus.google.com\/116699158294208258487"],"@id":"https:\/\/technopoints.co.in\/#organization","name":"Softglobe Technologies","logo":"https:\/\/technopoints.co.in\/wp-content\/uploads\/2017\/12\/iconnew.png"}

最佳答案

属性(property)规范 publisher 告诉我们:

Values expected to be one of these types: Organization or Person.

在您的标记中,您没有为此属性指定嵌入类型。如果将类型 Organization 安装为嵌入式,则在此类型中,您可以将标记应用于您的组织。

例如:

{
"@context" : "https://schema.org",
"@type" : "Article",
"name" : "Registration and Expiration Date in PHP and MySQL",
"image" : "https://i0.wp.com/technopoints.co.in/wp-content/uploads/2018/07/Expiration.jpg?resize=900%2C506&ssl=1",
"mainEntityOfPage":"https://technopoints.co.in/expiration-date-in-php/",
"speakable":
{
"@type": "SpeakableSpecification",
"xpath": [
"/html/head/title",
"/html/head/meta[@name='description']/@content"
]
},
"author" :{
"@type": "Person",
"name":"Ashish Joshi",
"alumniOf":"An organization that the person is an alumni of",
"award":"An award won by or for this item",
"memberOf":"An Organization (or ProgramMembership) to which this Person or Organization belongs",
"email":"zzz@hhhrr.com",
"honorificSuffix":"An honorific suffix preceding a Person's name such as M.D. /PhD/MSCSW",
"knowsAbout":"Of a Person, and less typically of an Organization, to indicate a topic that is known about - suggesting possible expertise but not implying it",
"sameAs":[
"https:\/\/plus.google.com\/0000",
"https:\/\/facebook.com\/0000",
"https:\/\/twitter.com\/0000"
]
},
"datePublished" : "01/07/2018",
"dateModified":"10/08/2018",
"headline" : "Registration and Expiration Date in PHP and MySQL",
"publisher" : {
"@type": "Organization",
"name":"Softglobe Technologies",
"url":"https:\/\/technopoints.co.in",
"logo":{
"@type":"ImageObject",
"url":"https://technopoints.co.in/images/logo.jpg",
"contentUrl":"https://technopoints.co.in/images/logo.jpg",
"width":"300",
"height":"100"
},
"sameAs":"https:\/\/plus.google.com\/116699158294208258487"
}
}

请注意我在此标记中所做的以下更改:

  • 删除了属性 articleBody,因为该属性复制了文章的全部内容,降低了下载速度,并且 Google 不支持该属性。

  • 根据 Google 对 Article 的建议添加属性 ma​​inEntityOfPage

  • 根据 Google 的建议添加了 speakable 属性。此属性将帮助机器人确定对语音搜索有用的内容。在这个特定的标记中,指定了一个路径,用于从网页的元标题和元描述中获取信息。但是,此属性仅支持新闻网站。因此,如果您的网站不是新闻,则删除它即可。请注意,在语音内容中不应有日期和不同的符号和元素,这些符号和元素对于语音发布而言可能难以理解。阅读更多 Guide of Google to speakable

  • 具有嵌入类型 Person 的属性作者的更完整标记。这将有助于确定可识别为Your Money Or Your Life: YMYL 的内容负责人的信息。这可以对应于 Google 的搜索质量评估指南 和要求 Expertise, Authoritativeness, Trustworthiness: EAT

  • 根据 Google 的建议将属性 dateModified 添加到文章中。

  • 当然,属性发布者的标记已添加并更正。

阅读更多 Guide of Google to Article .

关于schema.org - 结构化数据说 "The attribute publisher.itemtype has an invalid value.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51806778/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com