How do I read .owl
files in java and display its contents?
The OWL API in source forge (http://owlapi.sourceforge.net/) has all the basic functions, although the documentation is barely enough. You may end up wasting time figuring out how do the complex functions not shown in the examples.
I would recommend going for the Protege API for OWL files. (http://protegewiki.stanford.edu/wiki/ProtegeOWL_API_Programmers_Guide/). This API has good documentation and the wiki is easy to navigate. OWL files are not easy to work around because of its semantic nature and building your own API might not be easy. Protege also has SWRL API if you want to process axioms and rules.