Learn Linked Data
Use this course to learn how to publish data on the web so that it joins up with everyone else’s, and how to ask questions of it once it does.
The course starts from something you already do: joining two tables on a key. It follows that idea, one step at a time, until the key is a URI that anyone on the web can use, look up and query.
In this course you’ll learn how to:
- turn the keys and codes in your tables into URIs
- decide who mints a URI and keep it stable
- describe things as RDF using shared vocabularies
- serve one resource in many formats with content negotiation
- read a vocabulary and predict what its terms say about your data
- describe things as instances of a vocabulary’s classes
- describe a table with CSV on the Web and convert it to RDF
- query graphs with SPARQL
The examples follow one water quality sampling point, the samples taken there and the observations made on them, and a discharge permit whose effluent is sampled at that same point, so each module builds on the one before.
Start nowBefore you start
You’ll find the course easier if you’ve joined two tables before, in a spreadsheet lookup or a SQL query.
You’ll need:
- a web browser
- a terminal with
curl, from Module 4 onwards - Python 3 with the
rdflibpackage, from Module 4 onwards, andowlrl, from Module 6 onwards - Docker or Podman, from Module 8 onwards
Each module ends with a short quiz. Choose an answer and you’ll see straight away whether it’s right, and why. You can change your answer as often as you like.
Course contents
- Module 1: From keys to URIs Why codes break when they leave their table, and how a URI carries its meaning with it. Available
- Module 2: Authority, minting and persistence Who is responsible for a URI, how to mint one, and why identifiers should only change when the thing they identify does. Available
- Module 3: Triples and vocabularies Statements as triples, and the vocabularies that describe catalogues, concepts and observations: DCAT, SKOS and SOSA. Available
- Module 4: Serialisation and content negotiation One graph written as Turtle, N-Triples, RDF/XML, JSON-LD and RDFa, and one URI serving different formats on request. Available
- Module 5: Reading a vocabulary Looking up a term, telling classes, properties and concepts apart, and predicting what a property’s domain and range say about your data. Available
- Module 6: Making instances Describing a water discharge permit and its discharge point by hand, linked to the sampling point that monitors it. Coming soon
- Module 7: Describing tables with CSV on the Web Writing CSVW metadata that turns each row of a table into the graph you meant, with keys becoming URIs. Coming soon
- Module 8: From CSV to RDF Converting tables to RDF with csv2rdf in minimal mode, and checking the output against your hand-written graph. Coming soon
- Module 9: Querying with SPARQL Asking questions of a graph: patterns, joins on URIs, BIND, string functions, UNION and OPTIONAL. Coming soon