schema.org - 结构化数据显示“属性 publisher.itemtype 的值无效。”
问题描述
我正在为我的网站文章做结构化数据。为此,我使用的是 JSON-LD,使用 Google Markup Helper 制作,还添加了一些属性来消除错误。现在,只有一个错误
属性 publisher.itemtype 的值无效。
我的组织也有不同的结构化数据。但是,它也不接受该值。这是我正在使用的文章代码之一
{
"@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"}
解决方案
属性发布者的规范告诉我们:
在您的标记中,您没有为此属性指定嵌入类型。如果将组织类型安装为嵌入式,则在此类型中您可以将标记应用于您的组织。
例如。:
{
"@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 对文章的建议添加属性mainEntityOfPage 。
根据 Google 的建议添加了可说的属性。此属性将帮助机器人确定对语音搜索有用的内容。在这个特定的标记中,指定了从网页的元标题和元描述中获取信息的路径。但是,此属性仅支持新闻网站。因此,如果您的网站不是新闻,那么只需将其删除。请注意,在语音的内容中不应有日期和不同的符号和元素,这些符号和元素可能对语音发布来说是难以理解的。阅读更多Google 语音指南。
具有嵌入类型 Person 的属性作者的更完整标记。这将有助于建立有关可识别为Your Money Or Your Life: YMYL的内容负责人的信息。这可以对应于Google 的 Search Quality Raters Guideline和要求Expertise, Authoritativeness, Trustworthiness: EAT。
将属性 dateModified 根据 Google 建议添加到文章。
好吧,当然,属性发布者的标记已添加并更正。
阅读更多谷歌文章指南。
推荐阅读
- flurry - Flurry 获取细分中所有用户的用户旅程
- python - 我声明--> str1="bbccaa"。但是,我希望结果是所有 b 和 a 即 'bbaa'
- php - 如何创建动态 sql php 日历?
- python-3.x - Python 在初始化类时的行为
- javascript - 函数节点将文件上传到 ipfs 并返回文件哈希
- java - 如何映射可以具有不同类型并从另一个类扩展的请求对象数据?
- ios - 防止 SwiftUI 系统图像动态更改导航栏项的大小
- python - 如何将 if...else 子句应用于 Python3 中的整个列?
- bash - 如何在shell的变量中保留/删除数字?
- tensorflow - 理解 tf.cond 的图