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.
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.
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.
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.
PublicationIssue
,
and introduces ways to use external vocabularies and the Role
type to provide more specific information about the nature of
contributions.
This work
is licensed under a Creative
Commons Attribution-ShareAlike 4.0 International License.