0

I'm trying to use structured data to specify multiple organizations (see below). But Google's structured data testing tool only recognizes the first item of each type.

How can I list multiple alumniOf items?

<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "Organization",
    "name": "My Org",
    "founder": {
      "@type": "Person",
      "name":"Me",
      "alumniOf":{
        "@type": "Organization",
        "name": "My Org 1"
      },
      "alumniOf":{
        "@type": "Organization",
        "name": "My Org 2"
      }

  }
</script>
unor
  • 92,415
  • 26
  • 211
  • 360
s2t2
  • 2,462
  • 5
  • 37
  • 47
  • @Richard Wallis blogged on this topic here: http://dataliberate.com/2015/04/15/the-role-of-role-in-schema-org/ – Jay Gray Mar 06 '17 at 11:37

1 Answers1

5

You can list multiple alumniOf items simply by putting them like this:

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Organization",
    "name": "My Org",
    "founder": {
        "@type": "Person",
        "name":"Me",
        "alumniOf": [
            {
                "@type": "Organization",
                "name": "My Org 1"
            },
            {
                "@type": "Organization",
                "name": "My Org 2"
            }
        ]
    }
}
</script>

Tested here. https://search.google.com/structured-data/testing-tool

shivamsupr
  • 470
  • 1
  • 6
  • 16