2016-09-09 1 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' (또는 '링크', 클릭 할 수없는 경우). – unor

답변

4

예,이 목적으로 복수 Organization 항목을 사용하는 것이 맞습니다.

, 당신은

  • 합니다 (WebPage의) author/publisher 가치로 자신의 Organization이 목록의 일부가 아닌 것이 분명 제공 할 수 있도록하고,
  • 목록에 대한 ItemList을 제공 다른 조직의
  • 조직이 목록은 해당 페이지의 주 내용 인 경우

있습니다 (ItemList에 대한) mainEntity를 사용하고 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> 
관련 문제