Examples of loadOntology()


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

    public final static void main(String[] args) throws Exception  {
    String file = "http://www.mindswap.org/2004/owl/mindswappers#";
   
    System.out.print("Reading file " + file + "...");
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLOntology ontology = manager.loadOntology(IRI.create(file));

    PelletReasoner reasoner = PelletReasonerFactory.getInstance().createReasoner( ontology );
    System.out.println("done.");
   
    reasoner.getKB().realize();
View Full Code Here

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

    System.out.println( "----------------------------------------------" );

    // read the ontology
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLDataFactory factory = manager.getOWLDataFactory();
    OWLOntology ontology = manager.loadOntology( IRI.create( mindswappers ) );

    // we want a non-buffering reasoner here (a buffering reasoner would not process any additions, until manually refreshed)
    PelletReasoner reasoner = com.clarkparsia.pellet.owlapiv3.PelletReasonerFactory.getInstance().createNonBufferingReasoner( ontology );
    manager.addOntologyChangeListener( reasoner );
View Full Code Here

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

    // create an ontology manager
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLDataFactory factory = manager.getOWLDataFactory();
   
    // read the ontology
    OWLOntology ontology = manager.loadOntology( IRI.create(ont) );
   
    // load the ontology to the reasoner
    PelletReasoner reasoner = com.clarkparsia.pellet.owlapiv3.PelletReasonerFactory.getInstance().createReasoner( ontology );
   
    // create property and resources to query the reasoner
View Full Code Here

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

  private void run() throws Exception {
    // Create an OWLAPI manager that allows to load an ontology
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();

    // Load the ontology file into an OWL ontology object
    OWLOntology ontology = manager.loadOntology( IRI.create( file ) );
   
    // Get some figures about the ontology and print them
    System.out.println( "The ontology contains "
      + ontology.getLogicalAxiomCount() + " axioms, "
      + ontology.getClassesInSignature().size() + " classes, and "
View Full Code Here

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

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

    // create an ontology manager
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLDataFactory factory = manager.getOWLDataFactory();
   
    // read the ontology
    OWLOntology ontology = manager.loadOntology( IRI.create(ont) );
   
    // load the ontology to the reasoner
    PelletReasoner reasoner = com.clarkparsia.pellet.owlapiv3.PelletReasonerFactory.getInstance().createReasoner( ontology );
   
    // create property and resources to query the reasoner
View Full Code Here

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

    public final static void main(String[] args) throws Exception  {
    String file = "http://www.mindswap.org/2004/owl/mindswappers#";
   
    System.out.print("Reading file " + file + "...");
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLOntology ontology = manager.loadOntology(IRI.create(file));

    PelletReasoner reasoner = PelletReasonerFactory.getInstance().createReasoner( ontology );
    System.out.println("done.");
   
    reasoner.getKB().realize();
View Full Code Here

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

  private void run() throws Exception {
    // Create an OWLAPI manager that allows to load an ontology
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();

    // Load the ontology file into an OWL ontology object
    OWLOntology ontology = manager.loadOntology( IRI.create( file ) );
   
    // Get some figures about the ontology and print them
    System.out.println( "The ontology contains "
      + ontology.getLogicalAxiomCount() + " axioms, "
      + ontology.getClassesInSignature().size() + " classes, and "
View Full Code Here

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

    System.out.println( "----------------------------------------------" );

    // read the ontology
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLDataFactory factory = manager.getOWLDataFactory();
    OWLOntology ontology = manager.loadOntology( IRI.create( mindswappers ) );

    // we want a non-buffering reasoner here (a buffering reasoner would not process any additions, until manually refreshed)
    PelletReasoner reasoner = com.clarkparsia.pellet.owlapiv3.PelletReasonerFactory.getInstance().createNonBufferingReasoner( ontology );
    manager.addOntologyChangeListener( reasoner );
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.