We help IT Professionals succeed at work.
Get Started

issues getting schema.org right for multiple sportsevents

202 Views
Last Modified: 2016-02-01
hi

I'm fairly new to the schema.org side of things and wanted to add some data for our rugby club for the next matches to be shown on the google search results.

When validating only the first event comes up and I'm getting an exclamation mark next to my use of "SportsEvent" at the top. I'm wondering If this should be RugbyClub with the events created under them?

Would anyone be able to steer me in the right direction by correcting this piece of code, or pointing me to some working examples I can learn more from.

Thanks, Neil


<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "SportsEvent",
  "name": "Lordswood First XV",  
  "awayTeam": "Lordswood",
  "homeTeam": "Sheppey",
  "startDate" : "2016-02-13T14:00",
  "endDate" : "2016-02-13T16:00",
  "url" : "http://www.lordswoodrfc.co.uk/teams/lordswood-1st-xv/fixtures/",
  "location" : {
    "@type" : "Place",
    "sameAs" : "http://www.pitchero.com/clubs/sheppeyrfc",
    "name" : "Sheppey Rugby Football Club",
    "address" : "Lower Rd, Sheerness ME12 3ST"
  }
},
{
  "@context": "http://schema.org",
  "@type": "SportsEvent",
  "name": "Lordswood First XV",  
  "awayTeam": "Beccehamian",
  "homeTeam": "Lordswood",
  "startDate" : "2016-02-20T14:00",
  "endDate" : "2016-02-20T16:00",
  "url" : "http://www.lordswoodrfc.co.uk/teams/lordswood-1st-xv/fixtures/",
  "location" : {
    "@type" : "Place",
    "sameAs" : "http://www.lordswoodrfc.co.uk",
    "name" : "Lordswood Rugby Football Club",
    "address" : "The Clubhouse, North Dane Way, Chatham ME5 8YE"
  }
}
</script>

Open in new window

Comment
Watch Question
The More I know, the more I don't know
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE