EXERCISES INF3580 SPRING 2010 WEEK 1

A bird.

A bird.

This document contains exercises made for INF3580. Please send any comments, errors, bug or improvement reports to this exercise set to martige@ifi.uio.no. Feedback is most welcome! Alphabetically thanks to Audun Stolpe, Espen H. Lian, Martin Giese and Rune Dahl for feedback.

The main curriculum for INF3580 spring 2010 is Semantic Web Programming by John Hebeler et al., Wiley Publishing, 2009. They have a website with additional articles and all source code used in the book at http://semwebprogramming.org/. Auxiliary curriculum is the book Foundations of Semantic Web Technologies by Hitzler, Krützsch, Rudolph, CRC Press 2009.

Keep all the work you do for these exercises in a safe place. Setting up a version control system like cvs, svn or git for the work you do is smart. You can create a svn repository on IfI's svn server, see their help section for more information. There is also a walk-through from old INF3120 on how to set up a svn repository and connect it to Eclipse, but news is that you'll need the plug-in subclipse to make it work. Please contact me if you have any smart tips to share.

1 Getting started

Each week's exercises will start by indicating the most relevant chapters from the curriculum to read.

Read

  • Semantic Web Programming: chapters 1, 2.
  • Foundations of Semantic Web Technologies: chapter 1.

1.1 Software

The task for the first week's exercises is to install all necessary software packages to get started, and to confirm that everything is set up correctly by running a first semantic web program.

1.1.1 Exercise

First install the latest versions of the following software.

Note that if you are using a lab computer you can probably skip this exercise; all necessary software should be installed and the Jena API is "included" in the next exercise.

1.1.1.1 Tip

To get Java working properly on Ubuntu I had to follow the instructions on Ubuntu Linux Install JDK and JRE.

1.1.2 Exercise

Read through chapter 2 in the book, set up all software, import project from the book's homepage and execute the Hello Semantic Web World project.

Note you don't need to understand everything in this chapter, but this chapter will give a good idea of what you will learn in this course, and having a functioning system is key for the rest of the course and the exercises.

1.2 Protégé and the pizza ontology

The set of exercises under this heading is written for the lectures on OWL, but are included here to introduce you to the ontology tool Protégé. This means that there are notions that you are not likely to understand, but try anyway. We will revisit this exercises when you have learnt about OWL.

The pizza ontology is a well-known ontology in the semantic web community. It is developed for educational purposes by the University of Manchester, which is a leading university in the development of semantic technologies.

The pizza ontology and a tutorial that uses it is found at

The tutorial is primarily for learning how to use Protégé 4. Use it to get help on how to use Protégé in the coming exercises.

1.2.1 Exercise

Open the pizza ontology in Protégé. Take some time to browse the class hierarchy, the property hierarchies and the individuals and note how the ontology describes the domain of pizzas.

1.2.2 Exercise

Find hasIngredient. What is the domain and range of this property? What are the subproperties of hasIngredient? What is the inverse property of hasIngredient? What property characteristics does hasIngredient have?

1.2.3 Exercise

Find Margherita and see how it is defined as a pizza with only cheese and tomato topping. Look at the definition of VegetarianPizza. Is a Margherita pizza a vegetarian pizza? Why / why not?

1.3 What is Semantic Web?

1.3.1 Exercise

Here is a list of links to movies or other media about or using semantic web technology.

Author: Martin G. Skj?veland <martige@ifi.uio.no>

Date: 2010-03-12 15:31:23 CET

HTML generated by org-mode 6.34trans in emacs 23