我想将微数据添加到页面,但项目的数据被分解为页面的几个不连续部分。如果我有两个 span
元素与 itemscope
属性,是否有可能让搜索引擎合并两个项目范围并将它们解释为单个项目?
例如*:
<span itemscope itemtype="http://schema.org/Person">
Hello, my name is <span itemprop="name">Glinda</span>.
</span>
I like to fly around in a giant bubble.
<span itemscope itemtype="http://schema.org/Person">
I live in the <span itemprop="location">Land of Oz</span>.
</span>
有没有办法添加类似的东西 itemid
属性告诉网络蜘蛛那两个人 itemscopes
应该作为一个项目而不是两个项目消费?
也许是这样的。
<span itemscope itemtype="http://schema.org/Person" itemid="7f6ba1">
Hello, my name is <span itemprop="name">Glinda</span>.
</span>
I like to fly around in a giant bubble.
<span itemscope itemtype="http://schema.org/Person" itemid="7f6ba1">
I live in the <span itemprop="location">Land of Oz</span>.
</span>
*我明白在这个例子中我可以使用一个大跨度,但我不能用我必须使用的实际页面来做到这一点。
编辑: 也许我需要一个更好的例子。这有点做作,但证明了我的问题。请记住,重新组织页面不是一种选择。
<h1>Locations</h1>
<ul>
<li itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Bob</span> lives in <span itemprop="location">Berkeley</span>
</li>
<li itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Carol</span> lives in <span itemprop="location">Cupertino</span>
</li>
</ul>
<h1>Jobs</h1>
<ul>
<li itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Bob</span> works at <span itemprop="affiliation">Borders</span>
</li>
<li itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Carol</span> works at <span itemprop="affiliation">Capitol One</span>
</li>
<ul>
有没有办法让这个微数据结果在两个Person项中,而不是四个?
我希望Bob住在伯克利,在Borders工作,Carol住在Cupertino,在Capitol One工作。