I'm trying to use OWL API in Android in order to manage OWL ontologies. I've just started but my app stops working when instantiating the manager and the ontology. I'm using owlapi-distribution-4.1.4 and I added the jar file to the app/libs folder. I'd like to know how to solve this. I'm sure I'm missing something important, but since I'm new to this I can't spot it. There are some lines of my code:
import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLClass;
import org.semanticweb.owlapi.model.OWLClassAxiom;
import org.semanticweb.owlapi.model.OWLDataFactory;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
import org.semanticweb.owlapi.model.OWLOntologyManager;
OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
File ontologyFile = new File("C:/Users/Acer/Documents/myOntology.owl");
try {
OWLOntology myOntology = manager.loadOntologyFromOntologyDocument(ontologyFile);
} catch (OWLOntologyCreationException e) {
e.printStackTrace();
}
I hope you will suggest me how to solve the problem. Thank you in advance!