Problemcore
Ontology classification
Also called TBox classification.
Compute the subsumption hierarchy among all concept names of an ontology.
Ontology classification is the problem of computing all subsumptions between the concept names and of a TBox , usually given as the hierarchy of direct subsumptions. It is the first thing an ontology tool does after loading an ontology, and it shows both the class tree and the names that cannot have instances. With a subsumption test as a black box it needs up to tests for names, so the methods differ in how many tests they avoid.
In plain words
An ontology names many kinds of things and gives rules about them. You want to see the kinds as a tree, with each kind below the kinds that include it, such as "mother" below "woman" and below "parent". The rules often say this only in an indirect way, so a program must work it out. The simple method asks about every pair of kinds. Better methods put the kinds into the tree one at a time, and ask only about the places where a kind can go. They also skip questions whose answer follows from earlier answers.
Definition
The logic is ALC (or another description logic), with interpretations and a TBox of GCIs (see TBox and ABox). Let be the set of concept names in , with .
- Input. A TBox .
- Output. The relation , together with the names that are unsatisfiable with respect to (those with ).
The relation is a preorder: reflexive and transitive. Names with form one class, and the classes form a partial order. The taxonomy is its Hasse diagram, the transitive reduction: is a direct subsumer of when , , and no name lies strictly between them. Unsatisfiable names sit below every other name, and are usually listed apart. As a decision problem, the question is whether a given pair is in the relation, which is concept subsumption for names. The input has no ABox, so the complexity is combined complexity.
Variants
- With an ABox. Classify the TBox, then find for each individual its most specific names (realization).
- Incremental classification. Update the hierarchy after a small change of the TBox, without starting again.
- Classification of complex concepts. Insert a concept that is not a name into a known hierarchy, to find its direct subsumers and subsumees.
Examples
Take the family TBox from the Description Logic Handbook (Chapter 2), without its number restriction:
- ,
- ,
- ,
- ,
The TBox has 10 names, so the brute force makes subsumption tests. Of these, 24 succeed, and no name is unsatisfiable. The taxonomy has 11 direct edges:
| name | direct subsumers |
|---|---|
| Person, Female | none (top level) |
| Woman | Person, Female |
| Man | Person |
| Parent | Person |
| Mother | Woman, Parent |
| Father | Man, Parent |
| Grandmother | Mother |
| MotherWithoutDaughter | Mother |
| Wife | Woman |
The subsumption comes from the disjunction in the definition of Parent, and then follows by transitivity, so a smart method does not test it.
Known algorithms
- Brute force. Test every ordered pair of names with a subsumption procedure, such as the tableau algorithm for ALC. This makes tests.
- Enhanced traversal. Insert the names one at a time into the taxonomy built so far. A top search goes down from and keeps only the nodes that subsume the new name, to find its direct subsumers. A bottom search goes up from to find its direct subsumees. Subsumptions that are told in the TBox, and the transitivity of the order, prune the search (Baader and others 1994).
- Known and possible subsumers. Build a model for each name once. A name that is false for an instance of in this model is not a subsumer of , and needs no test. Only the pairs that are still possible get a test (Glimm and others 2012).
- Saturation for EL. EL classification derives all subsumptions between names in one run, in polynomial time.
When no name subsumes another, every method that uses only subsumption tests makes all tests. A failed test rules out only the pairs with and , and here the only such pair is itself.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| EL classification by completion rules | O(n^3) worst | O(n^2) extra | builds modeldeterministicexactsaturation | 1 language |
Bounds
| logic and TBox | complexity | reason |
|---|---|---|
| ALC, acyclic TBox | PSPACE-complete | tests in polynomial space, and one subsumption reduces to it |
| ALC, general TBox | EXPTIME-complete | tests in exponential time, and one subsumption reduces to it |
| EL, general TBox | in P | polynomial saturation |
The bounds for one test are on the page concept subsumption, and the EXPTIME lower bound is on ALC with general TBoxes is EXPTIME-complete.
Reductions
- To subsumption. Classification makes at most calls to subsumption, and calls to satisfiability for the unsatisfiable names.
- From subsumption. To decide , classify for new names and , and look at the pair .
Applications
- Ontology editors. Tools show the inferred hierarchy next to the one the modeller wrote, and list the unsatisfiable names as errors.
- Large terminologies. Medical terminologies such as SNOMED CT are classified with EL reasoners, and the hierarchy is the product that users see.
- Faster reasoning. Later tasks, such as realization and query answering, use the stored hierarchy instead of new subsumption tests.
References
- Franz Baader, Bernhard Hollunder, Bernhard Nebel, Hans-Jürgen Profitlich and Enrico Franconi, An empirical analysis of optimization techniques for terminological representation systems, or: making KRIS get a move on, Applied Intelligence 4(2), 1994, pages 109 to 132, the brute force, the simple traversal and the enhanced traversal methods to build the hierarchy (top search and bottom search)
- Birte Glimm, Ian Horrocks, Boris Motik, Rob Shearer and Giorgos Stoilos, A novel approach to ontology classification, Journal of Web Semantics 14, 2012, pages 84 to 101 (known and possible subsumptions from models, and the count of subsumption tests)
- Franz Baader, Diego Calvanese, Deborah L. McGuinness, Daniele Nardi and Peter F. Patel-Schneider (eds.), The Description Logic Handbook, second edition, Cambridge University Press, 2007, Chapter 9, Implementation and Optimization Techniques, by Ian Horrocks (classification and the optimizations of the hierarchy computation)
- Franz Baader, Ian Horrocks, Carsten Lutz and Ulrike Sattler, An Introduction to Description Logic, Cambridge University Press, 2017, Chapter 2 (classification as a reasoning task) and Chapter 6 (classification of EL TBoxes in polynomial time)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag V950Q8 Edit this page History Report an error Markdown