You are on page 1of 3

Winter Semester 2014/15

Lab course for Lecture


Semantic Web Technologies

Hasso Plattner Institute


University of Potsdam
Dr. Harald Sack,
Magnus Knuth, Dinesh Reddy, Tamara Bobic
{harald.sack |
magnus.knuth | dinesh.reddy | tamara.bobic}
@hpi.de

Exercise Sheet 3

You should be able to present, to explain, and to discuss exercise solutions in the session to all
participants in the lab course session on 19.11.2014.

Exercise 1:
Expand a copy of the HPI Soft-Skills-Kolloquium-page1 (a) with RDFa and (b) with Schema.org, to
include and semantically distinguish individual events including theme, speaker, location, time etc.
For the RDFa annotations use most commonly used RDF vocabularies that are appropriate for that use
case and justify your choice.
Exercise 2:
The following knowledge base is given:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ex: <http://example.org/Example#> .
ex:loves rdf:type rdf:Property .
ex:loves rdfs:domain ex:Lover .
ex:loves rdfs:range ex:Beloved .
Determine the types of resources with the names MatchMe (respectively matchMe) from the following
triples:
ex:MatchMe rdf:rest ex:Something .
ex:Something ex:loves ex:MatchMe .
ex:MatchMe ex:loves ex:Something .
ex:Something rdf:type ex:MatchMe .
ex:Something rdfs:label "MatchMe" .
ex:Something ex:matchMe "other" .
ex:MatchMe rdf:predicate ex:Something .
ex:MatchMe rdf:type ex:Something .
The following types are available: rdfs:Literal, rdf:Property, ex:Lover, ex:Beloved, rdfs:Class,
ex:Something, rdf:Statement, and rdf:List.

1 http://hpi.de/das-hpi/veranstaltungen/hpi-veranstaltungen/soft-skills-kolloquium.html

Exercise 3:
Describe the essential entities and classes of the New York Times article Are European Museum Passes Worth the Money? 2 with RDF(S) using Turtle syntax. Use the namespace nyt:
<http://example.org/nytimes/> for the properties validityPeriod, price, includesAdmission,
discountsAdmission, etc. Think of URIs for the given entities and classes. Try to model the facts
in a consistent way so that you can discern which card saves you how much on which attractions.
Exercise 4:
The Figure 1 represents a knowledge base. Which types do the following entities have (also consider
RDFS inference):
dbo:Breaking_Bad
ex:Teacher
ex:DrugDealer
ex:Winnebago
Please add the following facts to the knowledge base (in RDF Turtle syntax).
All actors are also persons.
The property dbo:spouse is intended to be used as a relation between persons.
A fictional character is not a person.

http://www.nytimes.com/2014/11/04/travel/are-european-museum-passes-worth-the-money.html

Figure 1: RDF(S)-Graph

You might also like