OntologyManager ontologyManager = new OntologyManager();
OWLOntology ontology = ontologyManager.getOntology(
IRI.create(new File("external" + File.separator + "ontology"
+ File.separator + "wine.owl")));
OWLOntoElementExtractor ontoExtractor = new OWLOntoElementExtractor(ontology);
OWLObjectPropertyExpressionGenerator owlObjectPropertyExpressionGenerator =
new OWLObjectPropertyExpressionGenerator(ontoExtractor);
OWLDataPropertyExpressionGenerator owlDataPropertyExpressionGenerator =
new OWLDataPropertyExpressionGenerator(ontoExtractor);
OWLClassExpressionGenerator generator =
new OWLClassExpressionGenerator(ontoExtractor,
owlObjectPropertyExpressionGenerator, owlDataPropertyExpressionGenerator);