Schema.org - 如何跨多个页面定义一个对象? [英] Schema.org - How can you define an object across multiple pages?
问题描述
使用 schema.org 标记,如果我在多个页面上定义了许多具有相同名称的项目,但在每个页面上定义了不同的属性集,那么每个项目是否仅在其定义的页面范围内相关,或者有没有办法将所有项目联系在一起以创建一个完整的定义?
语法:itemid
Microdata 定义了一个 itemid
属性:
[...] 为项目提供全局标识符,以便它可以与 Web 上其他地方页面上的其他项目相关联.
词汇表(在这种情况下,Schema.org)必须定义这样一个全局标识符的确切含义,以及是否多个项目可能具有相同的全局标识符,如果是,这些项目应该如何已处理.
到目前为止,Schema.org 没有定义这一点.
一个明显的假设是:具有相同 itemid
的项目(无论是在同一页面上还是在不同页面上,无论是在同一网站上还是在不同网站上)都是相同的.>
词汇:独特的属性值
通过指定期望唯一值的属性,消费者可以(如果他们愿意)推断出两个或多个项目大致相同.
属性 sameAs
和 url
是合适的候选,因为它们可用于任何 Schema.org 类型.
一些更具体的类型定义了其他合适的属性,例如 globalLocationNumber
、email
等
Using schema.org markup, if I define many items with the same name across multiple pages, but with different sets of properties defined on each page, is each item only relevant within the scope of the page it is defined on, or is there a way to tie all of them items together to create a single, complete definition?
Syntax: itemid
Microdata defines an itemid
attribute:
[…] to give a global identifier for the item, so that it can be related to other items on pages elsewhere on the Web.
The vocabulary (in this case, Schema.org) would have to define what exactly such a global identifier should mean, and if or if not multiple items may have the same global identifier, and if yes, how these items should be processed.
So far, Schema.org does not define this.
An obvious assumption would be: Items (whether on the same page or on different pages, whether on the same site or on different sites) with the same itemid
are about the same thing.
Vocabulary: unique property values
By specifying properties that expect unique values, consumers could (if they want to) deduce that two or more items are about the same thing.
The properties sameAs
and url
are appropriate candidates, as they can be used for any Schema.org type.
Some more specific types define other suitable properties, like globalLocationNumber
, email
etc.
这篇关于Schema.org - 如何跨多个页面定义一个对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!