Package org.semanticweb.owlapi.owllink

Examples of org.semanticweb.owlapi.owllink.OWLlinkReasonerConfiguration


            url = new URL("http://bioonto.gen.cam.ac.uk:8081");
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

        OWLlinkReasonerConfiguration reasonerConfiguration = new OWLlinkReasonerConfiguration(url);
        OWLlinkHTTPXMLReasonerFactory factory = new OWLlinkHTTPXMLReasonerFactory();
       
        try{
          reasoner = factory.createNonBufferingReasoner(ontology, reasonerConfiguration);
        }catch (OWLlinkReasonerIOException e){
View Full Code Here


    heraklesReasonerFactory = new HeraklesReasonerFactory(reasonerConfig)
    heraklesReasoner = heraklesReasonerFactory.createReasoner(ontology);
     
    // Set up reference reasoner
    URL url = new URL("http://" + host + ":" + port);
    OWLlinkReasonerConfiguration reasonerConfiguration = new OWLlinkReasonerConfiguration(url);
    referenceReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
    referenceReasoner = referenceReasonerFactory.createReasoner(ontology, reasonerConfiguration);
  }
View Full Code Here

    // Set up HeraklesReasoner and start Herakles as OWLlinkServer
    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.addRemoteReasoner("Pellet", "remotePellet", host, port)
    heraklesServer = new HeraklesOWLlinkServer();
    heraklesServer.start(reasonerConfig)
    OWLlinkReasonerConfiguration reasonerConfiguration1 = new OWLlinkReasonerConfiguration(new URL("http://127.0.0.1:8080"));
    heraklesReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
    heraklesReasoner = (OWLlinkHTTPXMLReasoner) heraklesReasonerFactory.createReasoner(ontology, reasonerConfiguration1)
     
    // Set up reference reasoner
    OWLlinkReasonerConfiguration reasonerConfiguration2 = new OWLlinkReasonerConfiguration(new URL("http://" + host + ":" + port));
    referenceReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
    referenceReasoner = (OWLlinkHTTPXMLReasoner) referenceReasonerFactory.createReasoner(ontology, reasonerConfiguration2);
  }
View Full Code Here

    // Set up HeraklesReasoner and start Herakles as OWLlinkServer
    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.addRemoteReasoner("Reasoner", "Pellet", host, port)
    heraklesServer = new HeraklesOWLlinkServer();
    heraklesServer.start(reasonerConfig)
    OWLlinkReasonerConfiguration reasonerConfiguration1 = new OWLlinkReasonerConfiguration(new URL("http://127.0.0.1:8080"));
    heraklesReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
    heraklesReasoner = heraklesReasonerFactory.createReasoner(ontology, reasonerConfiguration1)
     
    // Set up reference reasoner
    OWLlinkReasonerConfiguration reasonerConfiguration2 = new OWLlinkReasonerConfiguration(new URL("http://" + host + ":" + port));
    referenceReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
    referenceReasoner = referenceReasonerFactory.createReasoner(ontology, reasonerConfiguration2);
  }
View Full Code Here

   * Creates a new Reasoner in buffering mode
   * @param ontology ontology to be used by the reasoner
   * @throws OWLReasonerRuntimeException
   */
  public void createReasoner(OWLOntology ontology) throws OWLReasonerRuntimeException {         
    this.reasonerConfiguration = new OWLlinkReasonerConfiguration(this.url);
    owlReasoner = (OWLlinkHTTPXMLReasoner) owllinkHTTPXMLReasonerFactory.createReasoner(ontology, this.reasonerConfiguration);
    laden = true;   
  }
View Full Code Here

   * Creates a new Reasoner in non buffering mode
   * @param ontology ontology to be used by the reasoner
   * @throws OWLReasonerRuntimeException
   */
  public void createNonBufferingReasoner(OWLOntology ontology) throws OWLReasonerRuntimeException {
    this.reasonerConfiguration = new OWLlinkReasonerConfiguration(this.url);
    owlReasoner = (OWLlinkHTTPXMLReasoner) owllinkHTTPXMLReasonerFactory.createNonBufferingReasoner(ontology, this.reasonerConfiguration);       
      laden = true;
  }
View Full Code Here

      laden = true;       
  }
 
  private void setUpOWLReasonerConfiguration(OWLReasonerConfiguration conf) {   
      if (conf.getProgressMonitor() != null && conf.getIndividualNodeSetPolicy() != null) {
        this.reasonerConfiguration = new OWLlinkReasonerConfiguration(conf.getProgressMonitor(), this.url, conf.getIndividualNodeSetPolicy());
      } else if (conf.getIndividualNodeSetPolicy() != null) {
        this.reasonerConfiguration = new OWLlinkReasonerConfiguration(this.url, conf.getIndividualNodeSetPolicy());
      } else {
        this.reasonerConfiguration = new OWLlinkReasonerConfiguration(this.url);
      }    
  }
View Full Code Here

    URL url = new URL("http://127.0.0.1:8080");//Configure the server end-point
   
    org.semanticweb.owlapi.model.OWLOntology ont = manager.loadOntologyFromOntologyDocument(IRI.create( PHYSICAL_IRI ));
    OWLlinkHTTPXMLReasonerFactory factory = new OWLlinkHTTPXMLReasonerFactory();
   
    OWLlinkReasonerConfiguration reasonerConfiguration = new OWLlinkReasonerConfiguration(url);
   
    OWLReasoner reasoner = factory.createReasoner(ont, reasonerConfiguration);
   
    // Query Reasoner
   
View Full Code Here

      URL url = new URL("http://127.0.0.1:8080");

      ConsoleProgressMonitor progressMonitor = new ConsoleProgressMonitor();

      OWLlinkReasonerConfiguration reasonerConfiguration = new OWLlinkReasonerConfiguration(progressMonitor, url, IndividualNodeSetPolicy.BY_SAME_AS);
   
      OWLlinkHTTPXMLReasonerFactory reasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
     
      OWLReasoner reasoner = reasonerFactory.createReasoner(ontology, reasonerConfiguration)
           
View Full Code Here

      URL url = new URL("http://127.0.0.1:8080");

      ConsoleProgressMonitor progressMonitor = new ConsoleProgressMonitor();

      OWLlinkReasonerConfiguration reasonerConfiguration = new OWLlinkReasonerConfiguration(progressMonitor, url, IndividualNodeSetPolicy.BY_SAME_AS);
   
      OWLlinkHTTPXMLReasonerFactory reasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
     
      OWLlinkHTTPXMLReasoner reasoner = (OWLlinkHTTPXMLReasoner) reasonerFactory.createReasoner(ontology, reasonerConfiguration);     
       
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.owllink.OWLlinkReasonerConfiguration

Copyright © 2018 www.massapicom. 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.