
Appendix D
Solutions to the Exercises
D.1 Solutions for Chapter 2
Solution to Exercise 2.1
There are many ways to describe the contents of this document in natural
language. Below is one possibility.
germany is a country.
capital_of is a property which relates cities to countries.
country is a class which is called Land in German.
berlin is a city which is the capital of germany. It is called Berlin in
German.
city is a class which is called Stadt in German.
The graph representation of the document looks as follows.
Solution to Exercise 2.2
@prefix swb: <http://www.semantic-web-book.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ...