类型和 属性 用于人口、土地面积和人口密度

Type and property to be used for population, land area, and population density

我浏览了官方文档以查找用于人口、土地面积和人口密度的类型和属性,但发现 none。我能看到的最接近的似乎是 PropertyValue, QuantitativeValue, or Number for both population and population density, and area 土地面积,尽管所有这些都是模糊的。

问题是文档说该区域只能用于 BroadcastService 类型。并且没有任何关于 属性 和类型用于人口和人口密度的提示。

我试过这样做但不确定它是否正确:

<ul itemscope itemtype='http://schema.org/AdministrativeArea'>
  <li>Village: <span itemprop='name'>San Jose</span></li>
  <li><span itemscope itemtype='http://schema.org/PropertyValue'>Population (2016): <span itemprop='value'>15,437</span></span></li>
  <li><span itemscope itemtype='http://schema.org/PropertyValue'>Land area: <span itemprop='value'>51.41<</span> <span itemprop='unitText'>square kilometers</span></span></li>
  <li><span itemscope itemtype='http://schema.org/PropertyValue'>Population density</span>: <span itemprop='value'>300</span> <span itemprop='unitText'>per square kilometer</span></li>
</ul>

您需要将 添加 (relate/connect) PropertyValue 项到 AdministrativeArea 项。简单地嵌套 HTML 个元素 . You add items by using a property (in Microdata with itemprop). In this case, you’ll want to use the additionalProperty 属性:

<ul itemscope itemtype='http://schema.org/AdministrativeArea'>
  <li><span itemprop='additionalProperty' itemscope itemtype='http://schema.org/PropertyValue'><!-- … --></li>
  <li><span itemprop='additionalProperty' itemscope itemtype='http://schema.org/PropertyValue'><!-- … --></li>
  <li><span itemprop='additionalProperty' itemscope itemtype='http://schema.org/PropertyValue'><!-- … --></li>
</ul>

PropertyValue中,需要用name属性来指定名称,否则item只有value和unit text,但不清楚价值是什么。

<span itemprop='name'>Population (2016)</span>

<span itemprop='name'>Land area</span>

<span itemprop='name'>Population density</span>