您能否在同一个 Schema.org "LocationFeatureSpecification" 中列出多个功能?

Can you list multiple features within the same Schema.org "LocationFeatureSpecification"?

我正在为旅游网站上的大量度假村制作 Schema.org Resort 模式,并试图找到最有效的方式来填写有关便利设施的模式。

当前代码如下所示:

"amenityFeature": [
  {
    "@type":"http://schema.org/LocationFeatureSpecification",
    "name":"Spa",
    "value":"true"
  },
  {
    "@type":"http://schema.org/LocationFeatureSpecification",
    "name":"Internet Access",
    "value":"true"
  },
  {
    "@type":"http://schema.org/LocationFeatureSpecification",
    "name":"Tennis Courts",
    "value":"true"
  }
]

我的问题是,我可以这样写来缩短代码行吗:

{
  "@type":"http://schema.org/LocationFeatureSpecification",
  "name":[
    "Spa", "Internet Access", "Tennis Courts"
  ],
  "value":"true"
}

当我在Google的结构化数据测试工具中测试时,它没有给出任何错误。这是我用简短的方式编写时在 SDTT 中的样子:

这就是我按照 first/long 方式进行操作时的样子:

如果我这样做的捷径,我想确保所有这些项目都被列为设施,而不仅仅是相同设施的不同名称。否则,我会走远路。

不,每个LocationFeatureSpecification代表一个特征:

Specifies a location feature by providing a structured value representing a feature of an accommodation as a property-value pair of varying degrees of formality.

您的第二个代码段将代表一个具有多个名称的特征。