Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Schema.org预期的类型也可以是集合吗?_Schema.org_Structured Data - Fatal编程技术网

Schema.org预期的类型也可以是集合吗?

Schema.org预期的类型也可以是集合吗?,schema.org,structured-data,Schema.org,Structured Data,类型的对象可以具有类型的属性,sameAs属性可以是单个项或数组 Schema.org上的文档没有提到sameAs可以是单个项目还是数组。这只是谷歌偏离了Schema.org吗?或者Schema.org中的所有属性都可以是单个项或数组?每个Schema.org属性都可以有多个值。对于某些属性(例如),它不一定有意义,但它仍然是允许的 在JSON-LD中: “sameAs”:[“/foo”、“/bar”], 在微数据中: 在RDFa中: 这并不一定意味着谷歌(或任何其他消费者)也会对每一

类型的对象可以具有类型的属性,
sameAs
属性可以是单个项或数组


Schema.org上的文档没有提到
sameAs
可以是单个项目还是数组。这只是谷歌偏离了Schema.org吗?或者Schema.org中的所有属性都可以是单个项或数组?

每个Schema.org属性都可以有多个值。对于某些属性(例如),它不一定有意义,但它仍然是允许的

在JSON-LD中:

“sameAs”:[“/foo”、“/bar”],
在微数据中:


在RDFa中:



这并不一定意味着谷歌(或任何其他消费者)也会对每一处房产都支持这一点。因此,当谷歌在他们的文档中明确提到这一点时,您可以确定相应的搜索结果功能适用于多个值。

很高兴知道。你有任何文件支持这一点吗?