I'm new to the concepts ontology and inferencing. I have an ontology saved in .owl format. My target is to load the .owl file using jena API in netbeans 7.4, inference it to grab the required information from the ontology. I followed the documentation given in jena site(https://jena.apache.org/documentation/ontology ). So far I tried to load the .owl file to netbeans using the following code set.
String path = "C:/datafiles/wine.owl";
Model model = FileManager.get().loadModel("file:" + path);
Reasoner reasoner = ReasonerRegistry.getOWLReasoner();
InfModel infmodel = ModelFactory.createInfModel(reasoner, model);
But I get this error.
log4j:WARN No appenders could be found for logger (org.apache.jena.riot.stream.JenaIOEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
How do I fix this?