Package org.semanticweb.owlapi.owllink.builtin.requests

Examples of org.semanticweb.owlapi.owllink.builtin.requests.GetFlattenedInstances


  }
 
  @Test
  public final void testGetFlattenedInstances() throws OWLReasonerRuntimeException {
    for( OWLClassExpression x : ontology.getClassesInSignature() ) {
      SetOfIndividuals expected = referenceReasoner.answer(new GetFlattenedInstances(referenceReasoner.getDefaultKB(), x, true));
      SetOfIndividuals actual = heraklesReasoner.answer(new GetFlattenedInstances(heraklesReasoner.getDefaultKB(), x, true));     
      assertEquals( new HashSet<OWLIndividual>().addAll(expected), new HashSet<OWLIndividual>().addAll(actual) )
   
      expected = referenceReasoner.answer(new GetFlattenedInstances(referenceReasoner.getDefaultKB(), x, false));
      actual = heraklesReasoner.answer(new GetFlattenedInstances(heraklesReasoner.getDefaultKB(), x, false));     
      assertEquals( new HashSet<OWLIndividual>().addAll(expected), new HashSet<OWLIndividual>().addAll(actual) );     
    }
  }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.owllink.builtin.requests.GetFlattenedInstances

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.