JSON-LD
Google page on Event structured data
JSON-LD keywords start with an ampersand.
@context
Every JSON-LD entry must have a "@context": "https://schema.org" at the top level.
The @context is assumed to be inheritted by all descendents, so only needs to appear once.
@type
Something like "@type": "MusicEvent", ie something in the schema.org vocabulary.
but each child object must have "@type" : "Place" or "@type" : "Offer" etc.
@id
There’s a bit of overlap between JSON-LD and schema.org keywords, and the rule seems to be JSON-LD is higher up in the hierarchy and should be prefered given the choice.
| JSON-LD | schema.org |
|---|---|
| @id | identifier |
| @graph | ItemList |