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

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


  }
 
  @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


 
  @Test
  public final void testGetFlattenedObjectPropertyTargets() throws OWLReasonerRuntimeException {
    for( OWLNamedIndividual x : ontology.getIndividualsInSignature() ) {
      for( OWLObjectPropertyExpression y : ontology.getObjectPropertiesInSignature() ) {
        SetOfIndividuals expected = referenceReasoner.answer(new GetFlattenedObjectPropertyTargets(referenceReasoner.getDefaultKB(), x, y));
        SetOfIndividuals actual = heraklesReasoner.answer(new GetFlattenedObjectPropertyTargets(heraklesReasoner.getDefaultKB(), x, y));     
        assertEquals( new HashSet<OWLIndividual>().addAll(expected), new HashSet<OWLIndividual>().addAll(actual) )
      }
    }
  }
View Full Code Here

TOP

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

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.