// Create our ontology manager and data factory in the usual way.
OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
OWLDataFactory factory = manager.getOWLDataFactory();
// Load a copy of the pizza ontology. We'll load the ontology from the web.
OWLOntology ontology = manager.loadOntologyFromOntologyDocument(IRI.create( PHYSICAL_IRI ));
// Create a reasoner factory. In this case, we will use pellet, but we could also
// use FaCT++ using the FaCTPlusPlusReasonerFactory.
// Pellet requires the Pellet libraries (pellet.jar, aterm-java-x.x.jar) and the
// XSD libraries that are bundled with pellet: xsdlib.jar and relaxngDatatype.jar