2016-03-25 35 views
1

因此,我有以下JSON-LD标记通过标记测试程序(https://www.google.com/webmasters/markup-tester/),没有错误,但未通过结构化数据测试工具(https://developers.google.com/structured-data/testing-tool/),并且必须附加“ContactPoint给一个声明类型的父母“。结构化数据测试工具与标记测试程序中的不同验证结果

据我所知,我的ContactPoint连接到我的GovernmentService对象。有没有我没有看到的东西?

<script type='application/ld+json'> 
{ 
    "@context": "http://schema.org", 
    "@type": "GovernmentService", 
    "name": "Jibber Jabber", 
    "serviceType": "Jabber Application", 
    "description": "The Jibber Jabber application is tired of you Jibber jabber!", 
    "availableChannel": { 
    "@type": "ServiceChannel", 
    "serviceUrl": "http://rustled.jimmies.com/", 
Error-->"servicePhone": { 
     "@type" : "ContactPoint", 
     "telephone" : "+1505890897", 
     "name" : "Jabber phone service", 
     "contactType": "customer support" 
    } 
    }, 
    "url": "http://jibjab.rustled.jimmies.com", 
    "provider": { 
    "@type": "GovernmentOrganization", 
    "name": "Jibbering and Howling", 
    "url": "http://desertbluffs.state.az.gov", 
    "logo": "http://desertbluffs.state.az.gov/Eagle.gif" 
    } 
} 
</script> 

回答

1

你的JSON-LD似乎是正确的,你的Schema.org的使用似乎是适当的:

  1. GovernmentService可以有availableChannel财产
  2. availableChannel需要一个ServiceChannel
  3. ServiceChannel可以有servicePhone属性
  4. servicePhone预计一个ContactPoint

这个最小的JSON-LD给出了同样的错误,在谷歌的SDTT:

<script type="application/ld+json"> 
{ 
    "@context": "http://schema.org", 
    "@type": "GovernmentService", 
    "availableChannel": { 
    "@type": "ServiceChannel", 
    "servicePhone": { 
     "@type" : "ContactPoint" 
    } 
    } 
} 
</script> 

错误消息指的是谷歌的知识图谱功能Corporate Contacts。除非我错过了某些东西,否则这似乎是Google工具does not mean中的错误导致您的标记错误的很多情况之一。

+0

我觉得这是与该工具有关的,因为还有其他人有类似的问题,其中的错误应该是一个警告。我只是想知道是否有办法让它得到验证,以便Google不会忽略/忽略我认为重要的内容 – Nielsvh