Event

The following is an advanced example of markup for Event following schema.org/Event context. Use it to understand how you can explicitly structure relevant data about upcoming or finished events on your own webpage resources.

The example, as all examples on XooCode uses the json+ld data language, as per google and schema.org recommendations. At XooCode we recommend to always and exclusively utilize json+ld for all markup, due to its readability and clear styling.

Full example of schema.org/Event json-ld markup

The markup is verified as valid with Structured Data Testing Tool from Google as of 2019-03-18.

Quick JSON FAQ

What is JSON?

JSON is a notation syntax for storing and exchanging data.

What is JSON-LD?

JSON-LD is a notation syntax based on JSON. It extends JSON to help the syntax operate accross seperate resources (read: webpages). Using globally unique identifiers marked with “@id”, JSON-LD can begin data markup on one host and continue on another.

What is JSON short for?

The abbreviation JSON is short for JavaScript Object Notation.

What is the LD in JSON-LD short for?

The letters LD in the abbreviation JSON-LD are short for Linked Data and refers to the way this specific flavor of JSON syntax is specified to be able to link accross code hosts. Simply put: LD extends JSON by adding functionality that allows JSON code to span across multiple webpages.

Why is it called JavaScript Object Notation?

It is called JavaScript Object Notation because JSON is very simply put a text which is written in standardised JavaScript object notation. So it is text marked up in a way which is already standardised in the notation for the JavaScript object language.

XooCode Color Map

<

Standard HTML/Text.

{

JSON Object enclosure.

[

JSON Array enclosure.

@

JSON Attribute.

:

JSON Declaring Colon

a

JSON String.

,

JSON Line Separator.

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Event",
  "name": "XooCon 2018",
  "url": "https://xoocode.com/xoocon-2018/",
  "sameAs": "https://wikipedia.org/Event/XooCon2018/",
  "description": "Come together for the coding even of the year at XooCon 2018!",
  "alternateName": "Xoo Code Convention 2018",
  "image": "https://xoocode.com/images/xoocode-1018-promo-image-front.jpg",
  "location": {
    "@id": "https://xoocode.com#thunderdome",
    "@type": "Place",
    "name": "Kopenhagen Thunderdome",
    "url": "https://thunderdome.dk/",
    "address": "Thunderdome vej 12"
  },
  "maximumAttendeeCapacity": "3000",
  "remainingAttendeeCapacity": "512",
  "organizer": { 
    "@type": "Organization",
    "name": "Xoo Code Inc.",
    "url": "https://xoocode.com"
  },
  "offers": [ 
    { "@id": "https://xoocode.com/shop/events/xoocon-2018-single-day-ticket",
      "name": "XooCon Day Pass",
      "availability": "In Stock",
      "price": "995",
      "priceCurrency": "DKK",
      "validFrom": "2018-04-20",
      "url": "https://xoocode.com/shop/events/xoocon-2018-single-day-ticket"
    },
    { "name": "XooCon Full Pass",
      "availability": "In Stock",
      "price": "1495",
      "priceCurrency": "DKK",
      "validFrom": "2018-04-20",
      "url": "https://xoocode.com/shop/events/xoocon-2018-full-pass-ticket"
    },
    { "@id": "https://xoocode.com/shop/events/ict-year-ticket",
      "name": "Tour Year Pass",
      "availability": "In Stock",
      "price": "595",
      "priceCurrency": "EUR",
      "validFrom": "2018-01-04",
      "url": "http://internationalcodetour.com/shop/year-pass"
    }
  ],
  "identifier": "XC-ID-2018",
  "potentialAction": "Participation",
  "typicalAgeRange": "24-40",
  "subjectOf": "https://youtube.com/XooCon2018-promo-video/",
  "about": "Programming Code",
  "attendee": [ { 
      "@id": "https://xoocode.com#attendee-github",
      "@type": "Organization",
      "name": "GitHub Inc."
    },
    { "@id": "https://xoocode.com#attendee-safra-cruz",
      "@type": "Person",
      "name": "Safra Catz",
      "jobTitle": "CEO",
      "worksFor": { 
        "@type": "Organization",
        "name": "Oracle Inc."
      }
    }
  ],
  "audience": {
    "audienceType": "Programmers",
    "geographicArea": {
      "@type": "AdministrativeArea",
      "address": "Denmark"
    }
  },
  "contributor":  [ { 
      "@id": "https://xoocode.com#xoo-partner1",
      "@type": "Organization",
      "name": "Xoo Parnter 1"
    },
    { "@type": "Organization",
      "name": "Xoo Parnter 2"
    }
  ],
  "performer": {
    "@id": "https://xoocode.com#attendee-safra-cruz"
  },
  "workFeatured": "Schema Examples 2018",
  "startDate": "2018-04-20",
  "endDate": "2018-04-21",
  "doorTime": "2018-04-20T10:00:00",
  "duration": "D2",
  "eventStatus": "Rescheduled",
  "previousStartDate": "2018-03-10",
  "funder": { 
    "@id": "https://xoocode.com#funder-microsoft-global",
    "@type": "Organization",
    "name": "Microsoft Global"
  },
  "inLanguage": "Danish",
  "isAccessibleForFree": "True",
  "subEvent": {
    "@type": "Event",
    "name": "Schema Coder of the Year 2018",
    "description": "Award ceremony honoring the most prominent markup coder of the year 2018",
    "url": "https://xoocode.com/events/scy2018/",
    "location": {
      "@id": "https://xoocode.com#thunderdome"
    },
    "startDate": "2018-04-20",
    "endDate": "2018-04-20",
    "offers": {
      "@id": "https://xoocode.com/shop/events/xoocon-2018-single-day-ticket"
    },
    "performer": {
      "@id": "https://xoocode.com#funder-microsoft-global"
    },
    "image": "https://xoocode.com/images/scy-2018.jpg"
  },
  "superEvent": {
    "@type": "Event",
    "name": "Code Tour 2018",
    "description": "The official grand coding tour for the year 2018 kicks off in January and tours 14 locations throughout the year!",
    "url": "http://internationalcodetour.com",
    "location": {
      "@id": "https://xoocode.com#thunderdome"
    },
    "startDate": "2018-01-04",
    "endDate": "2018-12-20",
    "offers": {
      "@id": "https://xoocode.com/shop/events/ict-year-ticket"
    },
    "performer": {
      "@id": "https://xoocode.com#funder-microsoft-global"
    },
    "image": "https://xoocode.com/images/code-tour-main-image-2018.jpg"    
  },
  "translator": {
    "@type": "Organization",
    "name": "Intl. Translator Services Inc.",
    "url": "http://itsi.com"
  }
}
</script>
Posted in Schema Examples.

Leave a Reply

Your email address will not be published. Required fields are marked *