schemaorg-coda :: Example

eg-0332

From v29.4

JSON-LD

{
  "@context": "https://schema.org/",
  "@type": "Course",
  "description": "In this course you will get an introduction to the main tools and ideas in the data scientist's toolbox...",
  "hasCourseInstance": {
    "@type": "CourseInstance",
    "courseMode": ["MOOC","online"],
    "endDate": "2019-03-21",
    "startDate": "2019-02-15"
  }
}

RDFa

<body vocab="https://schema.org/">
<!-- A MOOC / free online course. As a simple one-off course -->
<!-- Based on https://www.coursera.org/course/datascitoolbox -->

<main typeof="Course">
  <h1 property="name">The Data Scientist's Toolbox</h1>
  <h2>About this Course</h2>
  <p property="description">
       In this course you will get an introduction to the main tools and ideas in the
       data scientist's toolbox...</p>
  <div rel="hasCourseInstance" typeof="CourseInstance">
    <meta property="courseMode" content="MOOC" />
    <meta property="courseMode" content="online" />
    <h2>Session dates</h2>
    <span property="startDate" content="2019-02-15">February 15</span> -
    <span property="endDate" content="2019-03-21">March 21</span>
  </div>
</main>
</body>

Pre-Markup

<body vocab="https://schema.org/">
<!-- A MOOC / free online course. As a simple one-off course -->
<!-- Based on https://www.coursera.org/course/datascitoolbox -->

<main>
  <h1>The Data Scientist's Toolbox</h1>
  <h2>About this Course</h2>
  <p>In this course you will get an introduction to the main tools and ideas in the
       data scientist's toolbox...</p>
  <div>
    <h2>Session dates</h2>
    <span>February 15</span> -
    <span>March 21</span>
  </div>
</main>
</body>