Pages

Thursday, May 4, 2017

BIW 30803 Web Semantic Lab 4 (Ontology Exercise)

Group Member: Eu Lay Tien (AI140156), Ng Su Mei (AI140151)


1. Change the Dataset X into a set of relations.

A simplified bookstore data (dataset “X”)
ID
Author
Title
Publisher
Year
ISBN-0-00651409-X
id_xyz
The Glass Palace
id_qpr
2015

ID
Name
Home Page
id_xyz
Razi Rahim
http://www.razirahim.com

ID
Publisher Name
City
id_qpr
Pustaka RR
Kuala Lumpur

ANSWER:





2. Change the Dataset Z into a set of relations.

Another bookstore data (Dataset “Z”)

ID
Titre
Traducteur
Original
ISBNO 2020
Le Palais des miroirs
John Kenu
ISBN-0-00651409-X

ID
Auteur
ISBN-0-00651409-X
Razi Rahim


ANSWER:


3. The Combination of two datasets. Dataset X and Dataset Z.

ANSWER:



4. Model the following ontologies into set of relations:
  • Herbivores, Carnivores, and Omnivores are animals
  • People are omnivores
  • People have names of type “string”
  • Vegetarians are people who are herbivores
  • “eats” is a property of animals and the values of the property must be of the type “food”
  • Meat and Veggies are types of food

ANSWER:






Wednesday, May 3, 2017

BIW 30803 Web Semantic Lab 4 (Ontology - Protege)

Group Member: Eu Lay Tien (AI140156), Ng Su Mei (AI140151)


2.1 Creating the Classes

1. First, start Protege and  start a new ontology.



2. Enter an Ontology IRI as shown in the figure below.


3. Save it as university.owl




4. In the Classes tab,  create class "Person" as the subclass of "Thing".


5. Then, inside the "Person" class, create "Lecturer" and "Student" as subclasses. 



6. Create subclass "Module" under "Thing".


7. Create "CSModule" and "MathModule" as subclasses of "Module".




8. The Classes should look like this. 



2.2 Creating the Object Properties

 

Template by BloggerCandy.com