2016-03-25 42 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