2016-09-09 71 views
0

我有一個網站,該網站列出多個公司,我的標記是這樣的:我可以使用http://schema.org/Organization的多個實例嗎?

<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倍數次,以幫助履帶更好地識別內容。

  1. 這是一個合適的使用https://schema.org/Organization
  2. 如何讓我自己的https://schema.org/Organization與我上市的公司標記不衝突?
+0

請注意,你必須使用一個鏈接元素如果url屬性的值應該是一個URL(而不是一個字符串)。因此,而不是'span',你應該使用例如'a'(或'link',如果它不應該是「可點擊的」)。 – unor

回答

4

是的,爲此使用多個Organization項目是正確的。

要清楚你自己Organization不在此列表中的一部分,你可以

在案件的組織名單是該網頁的主要內容,您可以使用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> 
相關問題