Forskjell mellom versjoner av «Making ontologies»

Fra mn/ifi/camsem
Hopp til: navigasjon, søk
(Ny side: ==  Shared properties == If you want two classes to share a property, please make sure that the properties does not include any classes in its domain! Lets say I have two classe…)
 
Linje 1: Linje 1:
==  Shared properties ==
+
==  Shared properties ==
  
If you want two classes to share a property, please make sure that the properties does not include any classes in its domain!
+
If you want two classes to share a property, please make sure that the properties does not include any classes in its domain!  
 
 
Lets say I have two classes, Municipality and County. Both of this units are identified, for instance, by the property "Name". Then you need to:
 
  
 +
Lets say I have two classes, Municipality and County. Both of this units are identified, for instance, by the property "Name". We thus want to add this property to both of the classes. Then you need to:
  
 +
<br>
  
 
*Create the property within the correct Ontology. After creation, please check that it has no domains.
 
*Create the property within the correct Ontology. After creation, please check that it has no domains.
  
#Click on the Menu-item "Edit ontologies".
+
#Click on the Menu-item "Edit ontologies".  
#Click the Ontology which have the classes that will share the property, in this case the Municipality and County class.
+
#Click the Ontology which have the classes that will share the property, in this case the Municipality and County class.  
#Click on the New Property button, the second leftmost in the bottom of the Ontologies window.
+
#Click on the New Property button, the second leftmost in the bottom of the Ontologies window.  
#Type in the name in the Name-field.
+
#Type in the name in the Name-field.  
#Click "Change the type of this property."
+
#Click "Change the type of this property."  
#Double click String
+
#Double click String  
#Click Create.
+
#Click Create.  
 
#Click Save.
 
#Click Save.
  
 
*Edit every class that, and add the property to the class.
 
*Edit every class that, and add the property to the class.
  
#Click the Class that shall have the property.
+
#Click the Class that shall have the property.  
#Click the tab named "Properties"
+
#Click the tab named "Properties"  
#Click in the field "Search Properties".
+
#Click in the field "Search Properties".  
#Type in the name of the property, in this case "Name".
+
#Type in the name of the property, in this case "Name".  
#Double click the Name-property. Make sure the property is within the same ontology!
+
#Double click the Name-property. Make sure the property is within the same ontology!  
#Click in the search field again.
+
#Click in the search field again.  
#Hit the backspace-button (delete your search-term).
+
#Hit the backspace-button (delete your search-term).  
#Make sure all the old properties, and the new one, is listed in the Properties tab.
+
#Make sure all the old properties, and the new one, is listed in the Properties tab.  
 
#Start from point 1 for the next class.
 
#Start from point 1 for the next class.

Revisjonen fra 5. jul. 2010 kl. 11:53

 Shared properties

If you want two classes to share a property, please make sure that the properties does not include any classes in its domain!

Lets say I have two classes, Municipality and County. Both of this units are identified, for instance, by the property "Name". We thus want to add this property to both of the classes. Then you need to:


  • Create the property within the correct Ontology. After creation, please check that it has no domains.
  1. Click on the Menu-item "Edit ontologies".
  2. Click the Ontology which have the classes that will share the property, in this case the Municipality and County class.
  3. Click on the New Property button, the second leftmost in the bottom of the Ontologies window.
  4. Type in the name in the Name-field.
  5. Click "Change the type of this property."
  6. Double click String
  7. Click Create.
  8. Click Save.
  • Edit every class that, and add the property to the class.
  1. Click the Class that shall have the property.
  2. Click the tab named "Properties"
  3. Click in the field "Search Properties".
  4. Type in the name of the property, in this case "Name".
  5. Double click the Name-property. Make sure the property is within the same ontology!
  6. Click in the search field again.
  7. Hit the backspace-button (delete your search-term).
  8. Make sure all the old properties, and the new one, is listed in the Properties tab.
  9. Start from point 1 for the next class.