Examples of loadOntology()


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

    renderer.startRendering( out );

    // Create an OWLAPI manager that allows to load an ontology file and
    // create OWLEntities
    OWLOntologyManager manager = OWL.manager;
    OWLOntology ontology = manager.loadOntology( IRI.create( file ) );

    // Create the reasoner and load the ontology
    PelletReasoner reasoner = PelletReasonerFactory.getInstance().createReasoner( ontology );

    // Create an explanation generator
View Full Code Here

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

    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
   
    OWLOntology rootOntology = null;
    try {
      String inputOntologyURI = FileUtils.toURI( m_InputOntologyPath );
      rootOntology = manager.loadOntology( IRI.create( inputOntologyURI ) );
    } catch( Exception e ) {
      throw new PelletCmdException( e );
    }
   
    output( getOWL2DLProfileViolations( rootOntology ) );
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.