对 ImageObject 使用 PropertyValue / Schema.org
Using PropertyValue for ImageObject / Schema.org
例子来自http://schema.org/ImageObject
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="Exposure Time">
<meta itemprop="value" content="1/659 sec.">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="FNumber">
<meta itemprop="value" content="f/4.0">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="MaxApertureValue">
<meta itemprop="value" content="2.00">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="Metering Mode">
<meta itemprop="value" content="Pattern">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="Flash">
<meta itemprop="value" content="Flash did not fire.">
</div>
这些 itemprop 名称和值是完全自定义的,对吧?我的问题是,是否有命名约定?因为例子中的MaxApertureValue是写成一个单词,并且是CamelCase,而Metering Mode是正常的。如果我只放 Aperture 不是更好吗?
是的,使用哪个名称(即 name
属性 的值)取决于作者。当然,使用标准名称是有意义的,如果它们存在的话。
在这个例子中,作者完全按照文件中指定的方式标记了 Exif 数据:
<!-- We assume the following EXIF meta-data is available, but currently not shown:
Exposure Time: 1/659 sec.
FNumber: f/4.0
MaxApertureValue: 2.00
Metering Mode: Pattern
Flash: Flash did not fire.
-->
我不知道Exif,但是according to its Wikipedia article,名字好像是这样写的(即MaxApertureValue
,Metering Mode
等)
所以这就是消费者对 exifData
属性 的期望。
例子来自http://schema.org/ImageObject
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="Exposure Time">
<meta itemprop="value" content="1/659 sec.">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="FNumber">
<meta itemprop="value" content="f/4.0">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="MaxApertureValue">
<meta itemprop="value" content="2.00">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="Metering Mode">
<meta itemprop="value" content="Pattern">
</div>
<div itemprop="exifData" itemscope itemtype="http://schema.org/PropertyValue">
<meta itemprop="name" content="Flash">
<meta itemprop="value" content="Flash did not fire.">
</div>
这些 itemprop 名称和值是完全自定义的,对吧?我的问题是,是否有命名约定?因为例子中的MaxApertureValue是写成一个单词,并且是CamelCase,而Metering Mode是正常的。如果我只放 Aperture 不是更好吗?
是的,使用哪个名称(即 name
属性 的值)取决于作者。当然,使用标准名称是有意义的,如果它们存在的话。
在这个例子中,作者完全按照文件中指定的方式标记了 Exif 数据:
<!-- We assume the following EXIF meta-data is available, but currently not shown: Exposure Time: 1/659 sec. FNumber: f/4.0 MaxApertureValue: 2.00 Metering Mode: Pattern Flash: Flash did not fire. -->
我不知道Exif,但是according to its Wikipedia article,名字好像是这样写的(即MaxApertureValue
,Metering Mode
等)
所以这就是消费者对 exifData
属性 的期望。