5ISS Lab 1

Purpose

The intent of these lab is to have you create an ontology step by step so that you get accointed with its main components. You will also use a reasoner to see what automatic deductions can be made thorough the lifecycle of the ontology design.

Before you start

Designing the ontology

You will now start building the ontology. Its requirements are the following:

Designing a lightwheight ontology

Translate the following statements into ontology elements by creating classes:

  1. Nice weather and Bad weather are two types of Weather event.
  2. Shower and Fog are two types of Bad weather, Sunshine is a type of Nice weather.
  3. Observable parameter, Instant and Observation are additional classes in the ontology.
  4. City, Country and Continents are types of Places.

Translate the following statements into ontology elements by adding properties. Link these properties to the classes you've just created by setting their Domain and Range. Note that two types of properties are available: Object properties, linking two class instances, and Data properties, linking a class instance to a litteral (string, numerical value, date...).

  1. A Weather event is characterized by Observable parameters.
  2. A Weather event has a duration expressed as an xsd:float value (in minutes).
  3. A Weather event starts at an Instant.
  4. A Weather event ends at an Instant.
  5. An Instant has for date an xsd:dateTimeStamp.
  6. A Weather event has for symptom an Observation.
  7. An Observation measures an Observable parameter.
  8. An Observation has for value an xsd:float. Modelling units is out of scope for this lab.
  9. An Observation is located in a Place.
  10. An Observation is dated at an Instant.
  11. A Place is located in another Place.
  12. A Place is the location of another Place
  13. A Country has for capital a City

Populating the knowledge base

Implement the following statements using the ontology you just built, by instantiating individuals and adding Object property assertions and Data property assertions to describe them. After each statement, run the reasoner (pick Hermitt in the Reasoner tab, then press CTRL+R each time you want the reasoner to run). Document the deductions in the lab report.

  1. Temperature, Hygrometry, Rainfall, Athmospheric pressure, Wind speed and Wind strength are instances of Observable parameter.
  2. Température is a French synonym to Temperature. Add it as a label (properly setting the language tag) in the individual's annotations.
  3. Wind speed and Wind strength are equivalent.
  4. Toulouse is located in France. Note that the individuals are not typed in the statement: do not create them as a City or a Country, but as untyped individuals. What does the reasoner infer ?
  5. Toulouse is a City.
  6. Paris is the capital of France. Create Paris as an untyped individual.
  7. 10/11/2015 at 10AM is an instant wel'll call I1. Its timestamp is 2015-11-10T10:00:00Z.
  8. P1 is an observation measuring a value of 3mm of rainfall at Toulouse at moment I1.
  9. A1 has for symptom P1.

Designing a heavy ontology

You will now add logical axioms to the ontology to make it more expressive. Express the following statements in the ontology. Note that some definitions are provided here to explain the properties characteristics you can set in Protégé.

  1. A City instance cannot be a Country instance.
  2. A Short Event is a Weather Event that lasts less than 15 minutes. Create the Short Event class, and add the following axiom to its equivalent classes: Event that ’has for duration’ some xsd:float [< 15]. Note that you may need to adjust the class and property names according to your own choices in the previous questions.
  3. A Long Event is a Weather Event that lasts more than 15 minutes.
  4. The property is located in is the inverse of is location of.
  5. If some Place A is located in some place B, and B is located in C, then A is located in C.
  6. A City can only be the capital of one Coutry, and a Country may only have one capital.
  7. If a City is the capital of a Country, then this City is located in that Country. Hint: use the notion of sub-properties.
  8. A Shower is a Weather Event that has for symptom a Rainfall Observation which value is more than zero: 'Weather Event' that ’has for symptom’ some (Observation that ('measures' value Rainfall) and (’has value some xsd:float [> 0]))

Populating the ontology

As you did previously, for each assertion, observe the deductions from the reasoner and document relevant information in your lab report.

Finally, what does the reasoner say about A1 ?

Go to lab 2