Using schema.org branchOf with itemref

About itemref:

  1. it has to be specified on elements with itemscope
  2. it is used to reference other properties (= itemprop in Microdata)

So this means for you:

  • move itemref to the Hotel
  • move itemprop="branchOf" to the Organization

Minimal example:

<div itemprop="branchOf" itemscope itemtype="http://schema.org/Organization" id="schema-organization">
 <h1 itemprop="name">The Hotel Chain</h1>
</div>

<div itemscope itemtype="http://schema.org/Hotel" itemref="schema-organization">
 <h2 itemprop="name">Hotel Location 1</h2>
</div>

Leave a Comment