Examples of loadOntologyFromOntologyDocument()


Examples of org.semanticweb.owlapi.model.OWLOntologyManager.loadOntologyFromOntologyDocument()

      // 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
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.