uk.ac.manchester.owl.owlapi.tutorial.examples
Class SimpleHierarchyExample
java.lang.Object
uk.ac.manchester.owl.owlapi.tutorial.examples.SimpleHierarchyExample
public class SimpleHierarchyExample
- extends java.lang.Object
Simple example. Read an ontology, and display the class hierarchy. May use a
reasoner to calculate the hierarchy.
Author: Sean Bechhofer
The University Of Manchester
Information Management Group
Date: 17-03-2007
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
printHierarchy(OWLClass clazz,
int level)
Print the class hierarchy from this class down, assuming this class is at
the given level. |
void |
printHierarchy(OWLOntology ontology,
OWLClass clazz)
Print the class hierarchy for the given ontology from this class down, assuming this class is at
the given level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleHierarchyExample
public SimpleHierarchyExample(OWLOntologyManager manager,
java.lang.String reasonerURL)
throws OWLException,
java.net.MalformedURLException
- Throws:
OWLException
java.net.MalformedURLException
printHierarchy
public void printHierarchy(OWLOntology ontology,
OWLClass clazz)
throws OWLException
- Print the class hierarchy for the given ontology from this class down, assuming this class is at
the given level. Makes no attempt to deal sensibly with multiple
inheritance.
- Throws:
OWLException
printHierarchy
public void printHierarchy(OWLClass clazz,
int level)
throws OWLException
- Print the class hierarchy from this class down, assuming this class is at
the given level. Makes no attempt to deal sensibly with multiple
inheritance.
- Throws:
OWLException
main
public static void main(java.lang.String[] args)