我有一个列出多家公司的网站,我的标记是这样的:
<h2>Checkout those cool companies</h2>
<div itemscope="itemscope" itemtype="https://schema.org/Organization">
<img itemprop="logo" src="logo1.jpg" alt="">
<h3 itemprop="name">Company1</h3>
<p itemprop="description">It's a great company</p>
<span itemprop="url">http://company1.com</span>
</div>
<div itemscope="itemscope" itemtype="https://schema.org/Organization">
<img itemprop="logo" src="logo2.jpg" alt="">
<h3 itemprop="name">Company2</h3>
<p itemprop="description">It's a great company as well</p>
<span itemprop="url">http://company2.com</span>
</div>
<div itemscope="itemscope" itemtype="https://schema.org/Organization">
<img itemprop="logo" src="logo3.jpg" alt="">
<h3 itemprop="name">Company3</h3>
<p itemprop="description">It's a amazing company</p>
<span itemprop="url">http://company3.com</span>
</div>我使用itemtype="https://schema.org/Organization倍数来帮助爬虫更好地识别内容。
https://schema.org/Organization的适当使用吗?https://schema.org/Organization不与我所列出的公司标记冲突?发布于 2016-09-09 02:57:20
是的,为此目的使用多个Organization项是正确的。
要明确表示您自己的Organization不在此列表中,您可以
author/publisher ( WebPage)的值提供,以及ItemList。如果这个组织列表是该页面的主要内容,您可以使用mainEntity (对于ItemList)并使用CollectionPage而不是WebPage。
<body itemscope itemtype="http://schema.org/CollectionPage">
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
</div>
<section itemprop="mainEntity" itemscope itemtype="http://schema.org/ItemList">
<h2>Checkout those <span itemprop="name">cool companies</span></h2>
<article itemprop="itemListElement" itemscope itemtype="http://schema.org/Organization"></article>
<article itemprop="itemListElement" itemscope itemtype="http://schema.org/Organization"></article>
<article itemprop="itemListElement" itemscope itemtype="http://schema.org/Organization"></article>
</section>
</body>https://stackoverflow.com/questions/39402664
复制相似问题