4. Making ontologies: theoretical basics and instructions
4. An example of an ontology
To represent an ontology, you can follow a structured approach that outlines the core concepts, their properties, and the relationships between these concepts within a specific domain. Below is a simplified example of an ontology for a basic domain: "Pets."
Domain: Pets
Concepts and Classes:
Pet: The primary class representing animals kept for companionship or leisure.
Dog, Cat, Bird: Subclasses of Pet, representing specific types of pets.
Owner: Represents individuals who own pets.
Properties (Attributes):
Pet
Name (string)
Age (integer)
Breed (string, applicable for Dogs and Cats)
Species (string, applicable for Birds)
Owner
Name (string)
Address (string)
Phone Number (string)
Relationships:
owns: A relationship between Owner and Pet (e.g., John owns Bella).
isA: A hierarchical relationship indicating that Dog, Cat, and Bird are all types of Pet.
friendOf: An optional relationship indicating friendship between Pets (e.g., Bella is a friend of Max).
Instances:
Pets
Bella (Dog): Name="Bella", Age=5, Breed="Labrador"
Whiskers (Cat): Name="Whiskers", Age=3, Breed="Siamese"
Tweety (Bird): Name="Tweety", Age=2, Species="Canary"
Owners
John: Name="John", Address="123 Elm St", Phone Number="555-1234"
Jane: Name="Jane", Address="456 Pine St", Phone Number="555-5678"