LODLAM Toronto 2016: RDFa with schema.org codelab: overview

By Dan Scott,

About this codelab

In this codelab, you will take several different types of web pages and enhance them so that they contain structured data, and then enhance that further to publish granular linked 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 different types of web pages drawn from the real web with sample markup exercises. Work through the Organization codelab first, as it covers all of the basics of RDFa and schema.org, before diving into any other exercises.

  1. Organization: This is the core exercise, introducing RDFa and schema.org. Work through this before attempting anything else. You will learn how to represent organizational information such as hours of operation, location, contact information, and organizational relationships.
  2. Book: This exercise introduces the CreativeWork class, with a specific example of a Book, to demonstrate how to mark up descriptive metadata and link to external vocabularies to identify subject headings, authors, and the like.
  3. Holdings: This exercise introduces the Product and Offer classes as a way of describing the items cultural institutions can provide to their community, with corresponding terms of access. A Book is enhanced with markup to identify the location of each copy, along with its shelf mark, its availability, and its terms of use.
  4. Periodicals: This exercise marks up the table of contents for an online journal.
  5. Comic books: This exercise marks up a comic book as a special instance of a PublicationIssue, and introduces ways to use external vocabularies and the Role type to provide more specific information about the nature of contributions.

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