Ontologies vary on whether classes can contain other classes, whether a class can belong to itself, whether there is a universal class (that is, a class containing everything), etc. Sometimes restrictions along these lines are made in order to avoid certain well-known
paradoxes.
Subsumption and subclassing Classes can
subsume each other. We say usually that if A and B are classes, and all A instances are also B instances, then B subsumes A, or A is a subclass of B, for example in the OWL Language it is called 'subclassof'. Importantly, a class can subsume or be subsumed by other classes; a class subsumed by another is called a
subclass (or
subtype) of the subsuming class (or
supertype). For example,
Vehicle subsumes
Car, since (necessarily) anything that is a member of the latter class is a member of the former. The subsumption relation is used to create a hierarchy of classes, typically with a maximally general class like
Anything at the top, and very specific classes like
2002 Ford Explorer at the bottom. The critically important consequence of the subsumption relation is the inheritance of properties from the parent (subsuming) class to the child (subsumed) class. Thus, anything that is necessarily true of a parent class is also necessarily true of all of its subsumed child classes. In some ontologies, a class is only allowed to have one parent (
single inheritance), but in most ontologies, classes are allowed to have any number of parents (
multiple inheritance), and in the latter case all necessary properties of each parent are inherited by the subsumed child class. Thus a particular class of animal (
HouseCat) may be a child of the class
Cat and also a child of the class
Pet.
Partition A
partition is a set of related classes and associated rules that allow objects to be classified by the appropriate subclass. The rules correspond with the aspect values that distinguish the subclasses from the superclasses. For example, to the right is the partial diagram of an ontology that has a partition of the
Car class into the classes
2-Wheel Drive Car and
4-Wheel Drive Car. The partition rule (or subsumption rule) determines if a particular car is classified by the
2-Wheel Drive Car or the
4-Wheel Drive Car class. If the partition rule(s) guarantee that a single
Car cannot be in both classes, then the partition is called a disjoint partition. If the partition rules ensure that every concrete object in the super-class is an instance of at least one of the partition classes, then the partition is called an exhaustive partition. == See also ==