OWLOntoElementExtractor ontoExtractor = new OWLOntoElementExtractor(ontology);
OWLObjectPropertyExpressionGenerator owlObjectPropertyExpressionGenerator =
new OWLObjectPropertyExpressionGenerator(ontoExtractor);
OWLDataPropertyExpressionGenerator owlDataPropertyExpressionGenerator =
new OWLDataPropertyExpressionGenerator(ontoExtractor);
OWLClassExpressionGenerator generator =
new OWLClassExpressionGenerator(ontoExtractor,
owlObjectPropertyExpressionGenerator, owlDataPropertyExpressionGenerator);
ClassExpressionAnalyser analyser = new ClassExpressionAnalyser();
OWLClassExpression expression = generator.getOWLClassExpression();
System.out.println(expression);
System.out.println("-----------------------");
for(String s: analyser.getFeatures(ontology, expression)){
System.out.print(s + "\t");
}