Microdata itemref - multiple references to the same item

Lieuwe

I have an item that I am trying to reference from several other items on my page and I am struggling to get this right, hopefully someone can enlighten me. One of several attempts is this:

<div id="daughter">
    <span itemprop="name">Mary</span>
</div>

<div itemscope itemtype="http://schema.org/Person">
    <span itemprop="name">John</span>
    <meta itemprop="children" itemscope itemtype="http://schema.org/Person" itemref="daughter"/>
</div>

<div itemscope itemtype="http://schema.org/Person">
    <span itemprop="name">Julie</span>
    <meta itemprop="children" itemscope itemtype="http://schema.org/Person" itemref="daughter"/>
</div>

However if I test this with the Google structured data tool, it produces 2 instances (items) of Mary. I guess this is correct as I am adding an itemscope attribute to the meta tag, but it isn't the result I want.

What is the correct way (if any) of creating 1 item of type "Person" (the child) which is referred to by several other items of type "Person" (the parents) using its property "children"?

Lieuwe

Finally stumbled upon the answer .. the following code does what I was looking for - incase it helps anyone else.

<div id="daughter" itemprop="children" itemscope itemtype="http://schema.org/Person">
    <span itemprop="name">Mary</span>
</div>

<div itemscope itemtype="http://schema.org/Person" itemref="daughter">
    <span itemprop="name">John</span>
</div>

<div itemscope itemtype="http://schema.org/Person" itemref="daughter">
    <span itemprop="name">Julie</span>
</div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Multiple occurences of same itemprop in Microdata schema.org

From Dev

Multiple occurences of same itemprop in Microdata schema.org

From Dev

Multiple references pointing to the same string?

From Dev

Multiple references pointing to the same string?

From Dev

W3C validation of Microdata itemref technique when combined with <meta>

From Dev

Mapping an entity with multiple references to the same type

From Dev

ServiceStack OrmLite multiple references of same type load

From Dev

Multiple Smart Pointer References to Same Object

From Dev

Destroying multiple references to the same object in Java

From Dev

multiple key vault references in same ARM template

From Dev

Multiple and repeated phone numbers in Microdata

From Dev

Microdata markup with properties on multiple pages

From Dev

Multiple and repeated phone numbers in Microdata

From Dev

EF 6 SaveChanges with multiple references to same (changed) object

From Dev

MS Word 365 - Multiple footnote references same word

From Dev

Prevent multiple foreign key references to same row in primary table

From Dev

Link same Microdata domain without nesting

From Dev

Count item across multiple columns in same table

From Dev

Search with multiple range values on same item

From Dev

Recycling views shows same item multiple times

From Dev

Count item across multiple columns in same table

From Dev

HTML Microdata for multiple organization telephone numbers

From Dev

Microdata format for showing an event with multiple date/time

From Dev

Are these references really the same?

From Dev

Indexes for references in same table

From Dev

Detect same item selection for multiple select/dropdowns with AngularJS

From Java

Shuffle the array of objects without picking the same item multiple times

From Dev

Android In-app Billing, multiple purchases of the same item

From Dev

scrollTop jumps when called multiple times on same item

Related Related

  1. 1

    Multiple occurences of same itemprop in Microdata schema.org

  2. 2

    Multiple occurences of same itemprop in Microdata schema.org

  3. 3

    Multiple references pointing to the same string?

  4. 4

    Multiple references pointing to the same string?

  5. 5

    W3C validation of Microdata itemref technique when combined with <meta>

  6. 6

    Mapping an entity with multiple references to the same type

  7. 7

    ServiceStack OrmLite multiple references of same type load

  8. 8

    Multiple Smart Pointer References to Same Object

  9. 9

    Destroying multiple references to the same object in Java

  10. 10

    multiple key vault references in same ARM template

  11. 11

    Multiple and repeated phone numbers in Microdata

  12. 12

    Microdata markup with properties on multiple pages

  13. 13

    Multiple and repeated phone numbers in Microdata

  14. 14

    EF 6 SaveChanges with multiple references to same (changed) object

  15. 15

    MS Word 365 - Multiple footnote references same word

  16. 16

    Prevent multiple foreign key references to same row in primary table

  17. 17

    Link same Microdata domain without nesting

  18. 18

    Count item across multiple columns in same table

  19. 19

    Search with multiple range values on same item

  20. 20

    Recycling views shows same item multiple times

  21. 21

    Count item across multiple columns in same table

  22. 22

    HTML Microdata for multiple organization telephone numbers

  23. 23

    Microdata format for showing an event with multiple date/time

  24. 24

    Are these references really the same?

  25. 25

    Indexes for references in same table

  26. 26

    Detect same item selection for multiple select/dropdowns with AngularJS

  27. 27

    Shuffle the array of objects without picking the same item multiple times

  28. 28

    Android In-app Billing, multiple purchases of the same item

  29. 29

    scrollTop jumps when called multiple times on same item

HotTag

Archive