anjaliua 0 Newbie Poster

hiii am currently trying to use owl api to load an ontology from protege and use reasoner to query it.I was able to load the ontology but craeting reasoner it showed null pointer exception error.Could sumone help me with the code?can anyone give me a code for loading reasoner and query the ontology.