質問

私はからのスキーマを使い始めました schema.org 私のHTMLコードで、画像ギャラリーを準備しました(以下のスニペット)。コードを貼り付けたとき Google構造化データテストツール, 、私はエラーを受けなかったので、これらのスキーマの使用が適切であると思いましたが、それでもそうであれば。それは...ですか?

<figure itemscope itemtype="http://schema.org/ImageGallery">
  <figcaption itemprop="description">The castle through the ages: 1423, 1858, and 1999 respectively.</figcaption>
  <figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
    <figcaption itemprop="caption">Etching. Anonymous, ca. 1423.</figcaption>
    <a href="castle1423.jpeg" itemprop="contentURL"> <img src="castle1423_thumb.jpeg" alt="The castle has one tower, and a tall wall around it." itemprop="thumbnailUrl"> </a> </figure>
  <figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
    <figcaption itemprop="caption">Oil-based paint on canvas. Maria Towle, 1858.</figcaption>
    <a href="castle185.jpeg" itemprop="contentURL"> <img src="castle1858_thumb.jpeg" alt="The castle now has two towers and two walls." itemprop="thumbnailUrl"> </a> </figure>
  <figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
    <figcaption itemprop="caption">Film photograph. Peter Jankle, 1999.</figcaption>
    <a href="castle1999.jpeg" itemprop="contentURL"> <img src="castle1999_thumb.jpeg" alt="The castle lies in ruins, the original tower all that remains in one piece." itemprop="thumbnailUrl"> </a> </figure>
</figure>
役に立ちましたか?

解決

image 財産ImageGallery a)URLを期待し、b)は次のように定義されます。

アイテムの画像のURL。

だからあなたのマークアップは言う:」私のImageGalleryは、3つの画像で説明できます。「;おそらく言うべきだ:」私のImageGalleryは3つの画像で構成されています。".

だから image ギャラリー全体を表すために使用できる画像を指定できます。

ギャラリーの各画像について、おそらく使用する必要があります associatedMedia 財産 (しかし、私はその定義を正しく取得するかどうか100%確信していません、「エンコード」はここで私を混乱させます)。

それぞれのマークアップ ImageObject は、私にはよく見えますよ。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top