문제

스키마를 사용하기 시작했습니다 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는 세 가지 이미지로 설명 할 수 있습니다."; 아마도 말해야 할 것입니다."내 ImageGallery는 세 가지 이미지로 구성됩니다.".

그래서 image 전체 갤러리를 나타내는 데 사용할 수있는 이미지를 지정할 수 있습니다.

갤러리의 각 이미지에 대해 associatedMedia 재산 (그러나 나는 정의를 올바르게 얻는다면 100% 확신하지 못한다.

각각의 마크 업 ImageObject 나 한테보기 좋다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top