RDFa with schema.org codelab: overview

By Dan Scott,

About this codelab

In this codelab, you're going to take a variety of library web pages and enhance them so that they contain structured data. You will use the schema.org vocabulary and express it via RDFa attributes.

Audience: Beginner

Prerequisites: To complete this codelab, you will need a basic familiarity with HTML. The exercises can be found in codelab.zip, with the solutions found in the rdfa_exercises subdirectory. There are frequent checkpoints through the code lab, so if you get stuck at any point, you can use the checkpoint file to resume and work through this codelab at your own pace.

Codelab sections

The codelab contains a number of different types of web pages with sample markup exercises; we highly recommend that you work through the Book codelab first, as it covers all of the basics of RDFa and schema.org, before diving into any other exercises.

  1. Book: This is the core exercise, introducing RDFa and schema.org. Work through this before attempting anything else.
  2. Library holdings: This exercise builds on the Book exercise, adding the representation of holdings as Offers.
  3. Library branch information: This exercise covers how to represent branch information such as hours of operation, location, contact information, and branch relationships.
  4. Periodicals: This exercise introduces the proposed schema.org extension for periodicals.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.