Skip to content

Latest commit

 

History

History
95 lines (58 loc) · 3 KB

tutorial-intro-to-ld-api-part1.md

File metadata and controls

95 lines (58 loc) · 3 KB

Tutorial: Linked Data APIs Part 1

A tutorial introducing content negotiation and RDF software libraries via a python-based Jupyter notebook.

In this tutorial, we will learn to:

  1. Build a very simple Pizza ontology from scratch
  2. Import an ontology into the Topbraid editor
  3. Begin querying data using RDF and OWL

Learning Objectives

Attendees will: *

Pre-requisites and assumptions

  • Access to a Jupyter notebook server with the following python libraries installed:
    • RDFlib
    • requests
  • Familiarity with the HTTP protocol
  • Familiarity with RDF

Part 1. RDF Graphs (20-30mins)

Objective: Understand how to work with RDF graphs and output different serialisations

In this part of the tutorial, we will be parsing an RDF file and loading it in using the RDFLib python module.

You'll need to open up this Jupyter notebook: Linked Data Example 1.ipynb

Exercise 1

Run through Section 1 of Linked Data Example 1.ipynb.

For discussion

Part 2. HTTP Content Negotiation (Conneg) (20-30mins)

Objective: Understand how to issue HTTP Content Negotiation mediated calls using python

In this part of the tutorial, we will be parsing an RDF file and loading it in using the RDFLib python module.

You'll need to open up this Jupyter notebook: Linked Data Example 2.ipynb

Exercise 2.A. Content Negotiation By Media type

Run through Part 1 of Linked Data Example 2.ipynb .

For discussion

Exercise 2.B. Content Negotiation By Profile

Run through Part 2 of Linked Data Example 2.ipynb.

For discussion

References

Check out the Learning resources section for more material.

Other related pages: