Monday, 1 June 2015

Part III : Protege Tutorial (cont)

C. Adding Object Properties.

 1. Save the previous file. We named our file as Ontology IRI.

Figure 1 : Saving file

2. Open the object properties.

Figure 2. Object Properties pop up

3. Create a sub-properties, named as teaches and studies as in Figure 3.

Figure 3 : teaches and studies sub-properties created

4. Then, set the domain for the studies is the student and the range is the module.
 
5. Meanwhile, the domain teaches is teacher and the range is module.


D. Adding Data Properties
 
1. Data properties is used to add details to the classes. Add data properties such as first name or anything.
 
Figure 4 : add data properties

2. Add data properties student_id, domain set is lecturer and the range is an integer.
 
3. Next,  data properties staff_id, domain set is student and the range is an integer.

4. After that, last_name and first_name domain is a person class and the range is string.

Figure 5 : completed setting

5. Then, test it by starting the reasoner to see whether there is any error.

Figure 6 : Reasoner started


6. If the reasoner did not show any error, yo can stop the reasoner.

Figure 7 : Reasoner stopped


 
 
 





No comments:

Post a Comment