Package org.semanticweb.owlapi.owllink.builtin.response

Examples of org.semanticweb.owlapi.owllink.builtin.response.OK


            CreateKB createKBRequest = new CreateKB(IRI.create(ou));
            kbResponse = reasoner.answer(createKBRequest);
            System.out.println("Created KB: "+kbResponse.getKB());
            LoadOntologies loadOntologies = new LoadOntologies(kbResponse.getKB(),IRI.create(new File(DOCUMENT_IRI)));
           // Tell tellRequest = new Tell(kbResponse.getKB(), oldOntology.getAxioms());
            OK okResponse = reasoner.answer(loadOntologies);
        } catch (OWLlinkErrorResponseException e) {
            System.out.println(e.getMessage());
        }   
  }
View Full Code Here


    OWLClass newowlclass = manager.getOWLDataFactory().getOWLClass(IRI.create("http://www.ricordo.eu/ricordo.owl#RICORDO_"+ricordoid));
    OWLAxiom axiom = manager.getOWLDataFactory().getOWLEquivalentClassesAxiom(newowlclass, classExp);
    Set<OWLAxiom> axiomSet = new HashSet<OWLAxiom>();
    axiomSet.add(axiom);
    Tell tellRequest = new Tell(IRI.create(ou),axiomSet);
    OK okResponse = (OK)executeReasoner(tellRequest);//reasoner.answer(tellRequest);
     
    //add to owlfile
    manager.addAxioms(oldOntology, axiomSet);
    writeToOWLFile();
   
View Full Code Here

  }
 
  @Test
  @Ignore
  public final void testClassify() throws OWLReasonerRuntimeException {
    OK expected = referenceReasoner.answer(new Classify(referenceReasoner.getDefaultKB()));
    OK actual = heraklesReasoner.answer(new Classify(heraklesReasoner.getDefaultKB()));     
    assertEquals( expected, actual );
  }
View Full Code Here

  }
 
  @Test
  @Ignore
  public final void testRealize() throws OWLReasonerRuntimeException {
    OK expected = referenceReasoner.answer(new Realize(referenceReasoner.getDefaultKB()));
    OK actual = heraklesReasoner.answer(new Realize(heraklesReasoner.getDefaultKB()));     
    assertEquals( expected, actual );
  }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.owllink.builtin.response.OK

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.