schemaorg / suggestions-questions-brainstorming

Suggestions, questions, and brainstorming
19 stars 15 forks source link

Updated JSON-LD example for location #170

Open WeaverStever opened 6 years ago

WeaverStever commented 6 years ago

Topic: http://schema.org/location

Example 1 is way out of spec with Google SDTT. This also appear to be very similar to Example 9 on http://schema.org/Event

This one works. BTW: the instructions for http://schema.org/validFrom are cryptic, I assume that it means the day/time the item becomes available for sale. No?

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Event",
  "name": "Miami Heat at Philadelphia 76ers - Game 3 (Home Game 1)",
  "startDate": "2016-04-21T20:00",
  "endDate": "2016-04-21",
  "url": "http://example.com/nba-miami-philidelphia-game3.html",
  "performer": ["Miami Heat", "Philadelphia 76ers"],
  "image": "http://example.com/wells-fargo-center.png",
  "description" : "Game 3",

  "location": {
    "@type": "Place",
    "name":"Wells Fargo Center Philadelphia",
    "address": {
      "@type": "PostalAddress",    
      "addressLocality": "Philadelphia",
      "addressRegion": "PA"
    }    
  },
  "offers": {
    "@type": "AggregateOffer",
    "price": "35",
    "priceCurrency": "USD",
    "url": "http://example.com/tickets-wells-fargo-center.html",
    "availability": "Pre-order",
    "validFrom": "2016-04-21"
  }
}
</script>
RichardWallis commented 4 years ago

See issue #7 for the context of the move from the main Schema.org issue tracker to this repository.