Package org.semanticweb.owlapi.owllink

Examples of org.semanticweb.owlapi.owllink.OWLlinkHTTPXMLReasonerFactory


        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

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


    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

    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

    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

      this.url = new URL("http://" + this.host + ":" + this.port);
    } catch (MalformedURLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
   
    this.owllinkHTTPXMLReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();

    HeraklesConfiguration config = new HeraklesConfiguration();
    config.loadHeraklesConfiguration();
   
//    this.reasonerProperties = this.remoteAdapter.getReasonerProperties();
View Full Code Here

    OWLDataFactory factory2 = manager.getOWLDataFactory();
   
    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
   
    OWLClass cls = factory2.getOWLClass(IRI.create( CLASS_IRI ) );
    NodeSet<OWLNamedIndividual> namedIndividuals = reasoner.getInstances(cls, true);
View Full Code Here

      ConsoleProgressMonitor progressMonitor = new ConsoleProgressMonitor();

      OWLlinkReasonerConfiguration reasonerConfiguration = new OWLlinkReasonerConfiguration(progressMonitor, url, IndividualNodeSetPolicy.BY_SAME_AS);
   
      OWLlinkHTTPXMLReasonerFactory reasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
     
      OWLReasoner reasoner = reasonerFactory.createReasoner(ontology, reasonerConfiguration)
           
            // Get SubClasses          
        OWLClass cls = factory.getOWLClass(IRI.create( CLASS_IRI ) );
      NodeSet<OWLClass> subClasses = reasoner.getSubClasses( cls, true );
      System.out.println(subClasses);
View Full Code Here

      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);     
       
            // Get SubClasses+       
      OWLClass cls = factory.getOWLClass(IRI.create( CLASS_IRI ) );
      GetSubClasses getSubClasses = new GetSubClasses(reasoner.getDefaultKB(), cls);
      SetOfClassSynsets synsets = reasoner.answer(getSubClasses);
View Full Code Here

TOP

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

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.