HTW Berlin Fotopedia, cc-by-nc, Andrea Kirkby, 2008

HTW Berlin
Fachbereich 4
Internationaler Studiengang
Internationale Medieninformatik (Master)
Semantic Modeling
Summer Term 2024

Lab 2: Hello Semantic Web

  1. I hate Hello World. But this is so complex, we are going to have to say hello a bit. We will be doing the "Hello Semantic Web World" exercise from Hebeler et al in Chapter 2 (18 MB! Also in Moodle). If you do not have the book, see me for a copy of the exercise! You need to have installed:
    1. Java 1.8 Software Development Kit
    2. Eclipse Integrated Development Environment 3.5
    3. Protégé Ontology Editor
    4. Jena Semantic Web Framework
    5. Pellet Ontology Reasoner
  2. Now, don't worry if you don't understand exactly what you are doing. We're looking at a worked example here. Set up a HelloSemanticWeb project and a HelloSemanticWeb class and add all the jars to your classpath.
  3. Set up the Friend of a Friend (FOAF) ontology and search for yourself.
  4. Search for your friends and say hello to them.
  5. Add new friends with the Person ontology and say hello to everyone.
  6. Oops, the ontology needs to be semantically aligned, add alignment statements and say hello to everyone.
  7. Now just say hello to your email friends.
  8. Now just say hello to your friends who have a gmail account.
  9. Say good-bye to all of your friends.
  10. (If you want to experiment more) Generate yourself and some friends with the FOAF-a-Matic and see if this example still works.

Prepare a report detailing what you did to get this working. You should work in groups of 2 or 3. Submit your written report (everyone should have their own copy submitted) to the Moodle area by 22.00 the evening before our next session. We will discuss it at the start of class.


Some rights reserved. CC-BY-NC Prof. Dr. Debora Weber-Wulff
Questions or comments: <weberwu@htw-berlin.de>