56 
 
 
Figure 5.6 Defining the hasCaloricContent data property restriction 
Using the datatype property, we have created, we will now create defined classes that specify a range of 
interesting values. We will define a HighCaloriePizza to be any pizza that has a calorific value equal 
to or higher than 400. 
Exercise 32: Create a HighCaloriePizza Defined Class  
_____________________________________________________________________________________ 
1. Navigate to the Classes tab.    
2.  Select the Pizza class. Create a subclass of Pizza called HighCaloriePizza.   
3 Make sure HighCaloriePizza is selected. Click on the (+) icon next to the SubClass Of field in the 
Description view. In the Class expression editor type hasCaloricContent some xsd:integer[>= 400] and 
click OK. 
4. Make sure HighCaloriePizza is still selected and use Edit>Convert to defined class to make it a defined 
class.