Package de.fzi.herakles.commons.anytime

Examples of de.fzi.herakles.commons.anytime.AnytimeOWLReasoner


      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.AQAAnytimeStrategy" );
     
      AnytimeOWLReasoner reasoner = (AnytimeOWLReasoner) reasonerFactory.createReasoner( ont );

      System.out.println("Creating AnytimeListener...");
      AnytimeListener<OWLNamedIndividual> listener = new AnytimeListenerImpl();
           
            OWLClass cls = factory.getOWLClass( IRI.create( CLASS_URI ) );

            System.out.println( "Retrieving all individuals assigned to " + CLASS_URI + " ..." );
            reasoner.getIndividuals( cls, listener );

//      System.out.println( "\nIndividuals of " + CLASS_URI + ":" );
//      for( OWLIndividual ind : inds )
//        System.out.println( ind );
View Full Code Here


      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.AQAAnytimeStrategy" );
     
      AnytimeOWLReasoner reasoner = (AnytimeOWLReasoner) reasonerFactory.createReasoner( ont );

      System.out.println("Creating AnytimeListener...");
      AnytimeListener<OWLNamedIndividual> listener = new AnytimeListenerImpl();

      OWLClass cls = factory.getOWLClass(IRI.create(CLASS_URI));

      System.out.println("Retrieving all individuals assigned to " + CLASS_URI + " ...");
      reasoner.getIndividuals(cls, listener);

      System.out.println("Finished AQA demo!!!");
      try {
        Thread.sleep(5000000);
      } catch (InterruptedException e) {
View Full Code Here

      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.ScreechAnytimeStrategy" );
     
      AnytimeOWLReasoner reasoner = (AnytimeOWLReasoner) reasonerFactory.createReasoner( ont );

      System.out.println("Creating AnytimeListener...");
      AnytimeListener<OWLNamedIndividual> listener = new AnytimeListenerImpl();
     
            OWLClass cls = factory.getOWLClass( IRI.create( CLASS_URI ) );

            System.out.println( "Retrieving all individuals assigned to " + CLASS_URI + " ..." );
            reasoner.getIndividuals( cls, listener );

//      System.out.println( "\nIndividuals of " + CLASS_URI + ":" );
//      for( OWLIndividual ind : inds )
//        System.out.println( ind );
View Full Code Here

        return;
      }
     
      OWLReasoner reasoner = owlEditorKit.getModelManager().getReasoner();
      // AnytimeReasonerDummy reasoner = new AnytimeReasonerDummy(owlEditorKit.getOWLModelManager().getOWLOntologyManager());
      AnytimeOWLReasoner anytimeReasoner = null;
      try{   
        if(reasoner instanceof NoOpReasoner){
          Thread.currentThread().sleep(2000);
          reasoner = owlEditorKit.getModelManager().getReasoner();
        }
View Full Code Here

TOP

Related Classes of de.fzi.herakles.commons.anytime.AnytimeOWLReasoner

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.