private boolean isOWLClass(String str){
return ontology.containsClassInSignature(IRI.create(str));
}
public static void main(String[] args){
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);