gpt4 book ai didi

semantic-web - Schema.org:将 ImageGallery 与 ImageObject 一起使用?

转载 作者:行者123 更新时间:2023-12-02 21:44:05 25 4
gpt4 key购买 nike

我已经开始使用 schema.org 中的模式在我的 HTML 代码中,并准备了一个图像库(下面的片段)。当我将代码粘贴到Google Structured Data Testing Tool时,我没有收到任何错误,因此我认为我使用这些模式的方式是正确的,但如果是的话,我仍然如此。是吗?

<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 propertyImageGallery a) 需要一个 URL,b) 定义为:

URL of an image of the item.

所以你的标记说:“My ImageGallery 可以用三个图像来描述。”;虽然它可能应该说:“My ImageGallery 由三个图像组成。”。

因此,使用image,您可以指定一个可用于代表整个图库的图像。

对于图库中的每张图像,您可能应该使用 associatedMedia property (但我不能 100% 确定我是否正确理解了它的定义,“编码”在这里让我感到困惑)。

每个 ImageObject 的标记我觉得不错。

关于semantic-web - Schema.org:将 ImageGallery 与 ImageObject 一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19839463/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com