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

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

Lab 6: Ontology Queries

  1. Get the report on problems with your ontology from the other group. See if your ontology is fixable. If all else fails, use an ontology you can find on the web, such as one of the pizza ontologies or FOAF.
  2. Use Jena to query your ontology. Here is a simple introduction by IBM (link fixed).
    You can either use the ARQ command line utilities to execute SPARQL queries. You may have to download the ARQ distribution separately to obtain the command line utilities. Or you can create a Java program for executing the queries.
    Create at least four queries for your ontology (both RDF and RDFS files). If you are using a university Ontology, this might be:
  3. The output of this exercise consists of the queries in a separate file, the RDF(S) files, and, finally, a file containing the query results. Please include some comments in the query files to indicate what the query is meant to do.

Prepare a report detailing what you did. 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 the session it is due.


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