2015-11-17 39 views
0

給出一個視覺藝術作品這是18×24英寸認可:該物業的高度不是由谷歌的類型距離的物體

<div itemscope="itemscope" itemtype="http://schema.org/VisualArtwork"> 
    <span itemprop="height" itemscope="itemscope" 
    itemtype="http://schema.org/Distance">18 inches</span> 
    <span itemprop="width" itemscope="itemscope" 
    itemtype="http://schema.org/Distance">24 inches</span> 
</div> 

此標記失敗Structured Data Testing Tool與錯誤「,該物業高度 Google無法識別類型爲的對象距離。「 寬度同樣如此。有趣的是,如果將Schema.org的第一個例子VisualArtwork(關於Magritte繪畫的例子)插入到SDTT中,您會得到相同的錯誤。測試工具是否誤解了這一點?

回答

1

我建議使用[定量值]而不是[距離]。這裏有一個簡單的例子:

<div itemscope="itemscope" itemtype="http://schema.org/VisualArtwork"> 
    <span itemprop="height" itemscope="itemscope" itemtype="http://schema.org/QuantitativeValue"> 
    <span itemprop="value">18</span> 
    <span itemprop="unitCode" content="INH">inches</span> 
    </span> 
    <span itemprop="width" itemscope="itemscope" itemtype="http://schema.org/QuantitativeValue"> 
    <span itemprop="value">24</span> 
    <span itemprop="unitCode" content="INH">inches</span> 
    </span> 
</div> 

我已經給這個一些額外的信息在我的博客文章在http://www.lazaruscorporation.co.uk/blogs/arts-tech/posts/schema-dot-org-quantitative-value-accessibility-typography

我會看看上schema.org的例子,如果必要的更正(我是寫這些例子的人!)

Paul