SSSW2008-Exercise

From LoaWiki

Jump to: navigation, search

Contents

Goal

To develop an OWL ontology starting from a use case (problem space), and using ontology design patterns (solution space). The first exercise trains students in using XD, the second exercise needs students' creativity.

Time

  • 10 minutes introduction
  • 30 minutes Story 1
  • 30 minutes Story 2
  • 20 minutes discussion

Guidelines for Exercise 1

  • Student teams will solve an exercise of pattern-based ontology design
  • The exercise simulates an XD iteration (see tutorial slides)
  • From this page, the student teams will read the analysis of the story, and will use the components provided:
    • simple sentences from the story
    • instance-free abstracted sentences
    • competency questions cqs
    • unit tests
    • CPs associated with cqs
  • Student teams have to:
    • create a new ontology
    • import the CPs indicated for each sentence (one at a time, incrementally)
    • specialize, compose, and expand CPs approriately
    • test the resulting ontology against the unit tests
    • annotate the newly defined ontology elements with rdfs:comment and rdfs:label
    • annotate the ontology

Exercise 1: ontology development context

The Warner Bros recording label has decided to manage its own productions by means of an ontology-driven application. They provide the designers with documents describing scenarios that have to be stored in the knowledge base. From this documents one story is extracted and assigned to ontology designers.

Story for exercise 1: album production

The “Red Hot Chili Peppers” are: Anthony Kiedis (vocals), Flea (bass, trumpet, keyboards, and vocals), John Frusciante (guitar), and Chad Smith (drums). During 2005, the band recorded the album “Stadium Arcadium”. The album contains 28 tracks and has been released in May 2006. It includes the track of the song “Hump de Bump”, which was composed in January 2004. The critic Crian Hiatt defines the album as "the most ambitious work of its twenty-three-year career".

Simple sentences of album production story

  • s1: The “Red Hot Chili Peppers” are: Anthony Kiedis (vocals), Flea (bass, trumpet, keyboards, and vocals), John Frusciante (guitar), and Chad Smith (drums).
  • s2: During 2005, the band recorded the album “Stadium Arcadium”.
  • s3: The album contains 28 tracks, and has been released in May 2006.
  • s4: It includes the track of the song “Hump de Bump”, which was composed in January 2004.
  • s5: The critic Crian Hiatt defines the album as "the most ambitious work of its twenty-three-year career".

Instance-free sentences of album production story

  • instance-free s1:
  1. Band members are persons
  2. A person has a role
  3. A person can play an instrument
  • instance-free s2:
  1. Members of a band record an album at a certain time interval
  • instance-free s3:
  1. A recorded album contains tracks and is released at a certain time interval.
  • instance-free s4:
  1. Songs are composed at a certain time and recorded as tracks at a certain time.
  • instance-free s5:
  1. A critique by a Person about an album has a text.

Competency questions, unit tests, and selected CPs for album production story

The unit tests are here substantiated as SPARQL queries. Syntax has to be adjusted in order to comply to namespaces prefixes and ontology element names used in the actual ontology.

  SELECT ?member ?band
  WHERE { ?member a :Person .
  ?band a :Band.
  ?band :hasBandMember ?member}
    • cq3: What roles has a certain person?
    • cq4: Who has a certain role?
  SELECT ?person ?role
  WHERE { ?person a :Person .
  ?role a :Role.
  ?person :hasRole ?role}
    • cq5: What instruments can play a certain person?
    • cq6: Who can play a certain instrument?
  SELECT ?person ?instrument
  WHERE { ?person a :Person .
  ?instrument a :InstrumentType.
  ?person :canPlayInstrument ?instrument}
  SELECT ?album ?date  
  WHERE {?time a :TimeInterval.
  ?album a :RecordedAlbum.
  ?recording_sit a :RecordingSituation.
  ?recording_sit :hasRecordingTime ?time.
  ?time :hasRecordingDate ?date .
  ?recording_sit :forAlbum ?album}
    • cq8: Who is involved in the recording of a certain album?
  SELECT ?person ?album
  WHERE {?person a :Person.
  ?album a :RecordedAlbum.
  ?recording_sit a :RecordingSituation.
  ?recording_sit :forAlbum ?album.
  ?recording_sit :involvesMusician ?person}
  • s3 -> situation, time interval
    • cq9: When was a certain album released?
    • cq10: What albums have been released at a certain time interval?
  SELECT ?album ?date
  WHERE {?album a :RecordedAlbum.
  ?time a :TimeInterval.
  ?album :hasReleaseTime ?time.
  ?time :hasReleaseDate ?date}
    • cq11: What tracks are included in a certain album?
    • cq12: What albums a certain track is contained in?
  SELECT ?album ?track
  WHERE {?album a :RecordedAlbum.
  ?track a :Track.
  ?album :containsTrack ?track.}
    • cq13: What tracks were produced for albums recorded at a certain time interval?
  SELECT ?track ?album ?date
  WHERE {?track a :Track.
  ?album a :RecordedAlbum.
  ?time a :TimeInterval.
  ?time :hasRecordingDate ?date.
  ?recording_sit :hasRecordingTime ?time.
  ?recording_sit :forAlbum ?album.
  ?recording_sit :producesTrack  ?track}
  SELECT ?track ?song
  WHERE {?track a :Track.
  ?song a :Song.
  ?song :songInTrack ?track}
    • cq15: When was a song composed?
  SELECT ?song ?date
  WHERE {?song a :Song.
  ?time a :TimeInterval.
  ?time :hasCompositionDate ?date.
  ?song :hasCompositionTime ?time}
    • cq16: When was a track recorded?
  SELECT ?track ?date
  WHERE {?track a :Track.
  ?time a :TimeInterval.
  ?time :hasRecordingDate ?date.
  ?recording_sit :producesTrack ?track.
  ?recording_sit :hasRecordingTime ?time}
    • cq17: When was a song recorded as a track?
  SELECT ?song ?track ?date
  WHERE {?song a :Song.
  ?track a :Track.
  ?time a :TimeInterval.
  ?time :hasRecordingDate ?date.
  ?song :isRealizedBy ?track.
  ?recording_sit :producesTrack ?track.
  ?recording_sit :hasRecordingTime ?time}
  • s5 -> agent role, situation
    • cq17: Who did express a critique about a certain album?
    • cq18: What albums did review a certain critic?
  SELECT ?critic ?album
  WHERE {?critic a :Person.
  ?album a :RecordedAlbum.
  ?critique_sit :onAlbum ?album.
  ?critique_sit :byCritic ?critic}
    • cq19: What does a certain critic say about a certain album?
  SELECT ?critic ?album ?text
  WHERE {?critic a :Person.
  ?album a :RecordedAlbum.
  ?critique_sit :onAlbum ?album.
  ?critique_sit :byCritic ?critic.
  ?critique_sit :hasCritiqueText ?text}

Guidelines for Exercise 2

  • Student teams will solve an exercise of pattern-based ontology design
  • The exercise requires an XD iteration (see tutorial slides)
  • The student teams will read and analyze the story
  • The teams will process the story in order to produce:
    • simple sentences from the story
    • instance-free abstracted sentences
    • competency questions cqs
    • unit tests
    • CPs associated with cqs
  • After this processing, the student teams will:
    • create a new ontology
    • import/propose CPs for representing each sentence (one at a time, incrementally)
    • specialize, compose, and expand CPs approriately
    • test the resulting ontology against the unit tests creating by the students
    • annotate the newly defined ontology elements with rdfs:comment and rdfs:label
    • annotate the ontology

Exercise 2: ontology development context

The Italian Ministry of Health wants to monitor the roles taken by employees in hospitals, and is creating a semantic infrastructure for that purpose. The following story is typical of the facts to be represented in its knowledge base.

Story for exercise 2: the male nurse union representative

Pasquale Di Gennaro is the union representative for male nurses at Ospedale Riunito delle Tre Valli in Nocera Inferiore (IT) from 2002.

Solutions

Download a pattern-based OWL ontology for Story 1

Personal tools