Reputation: 203
I am doing structured data for my website articles. for that, I am using a JSON-LD, made using Google Markup Helper and also added some attributes to remove errors. Now, there is only one error
The attribute publisher.itemtype has an invalid value.
I also have different structured data for my organization. But, it does not accept that value, also. Here is one of the article code I'm using
{
"@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"
}
and following is the organization makup code. It is error free.
{"@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"}
Upvotes: 3
Views: 1342
Reputation:
The specification of the property publisher tells us:
Values expected to be one of these types: Organization or Person.
In your markup, you do not specify a embed type for this property. If install the type Organization as embedded, then inside this type you can apply your markup to your organization.
Eg.:
{
"@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":"[email protected]",
"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"
}
}
Note the following my changes in this markup:
Deleted the property articleBody because this property duplicates the full content of the article, lowers the download speed and this property is not supported by Google.
Added the property mainEntityOfPage according to Google recommendations to Article.
Added the property speakable according to Google recommendations. This property will help the bot to determine the content that is useful for voice search. In this particular markup, a path is specified for obtaining information from the meta title and the meta description of the web page. However, this property is only supported for news websites. So if your website is not news, then just delete it. Note that in the content for the voice there should be no dates and different symbols and elements that may be incomprehensible for voice issuance. Read more Guide of Google to speakable.
A more complete markup for the property author with the embedded type Person. This will help establish information about the person in charge of the content that can be identified as Your Money Or Your Life: YMYL. This can correspond to the Search Quality Raters Guideline of Google and the requirements Expertise, Authoritativeness, Trustworthiness: EAT.
Added the property dateModified according to Google recommendations to Article.
Well, of course, the markup for the property publisher has been added and corrected.
Read more the Guide of Google to Article.
Upvotes: 1