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

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


  }
 
  @Test
  public final void testGetInstances() throws OWLReasonerRuntimeException {
    for( OWLClassExpression x : ontology.getClassesInSignature() ) {
      SetOfIndividualSynsets expected = referenceReasoner.answer(new GetInstances(referenceReasoner.getDefaultKB(), x, true));
      SetOfIndividualSynsets actual = heraklesReasoner.answer(new GetInstances(heraklesReasoner.getDefaultKB(), x, true));     
      assertEquals( expected.getFlattened(), actual.getFlattened() );
   
      expected = referenceReasoner.answer(new GetInstances(referenceReasoner.getDefaultKB(), x, false));
      actual = heraklesReasoner.answer(new GetInstances(heraklesReasoner.getDefaultKB(), x, false));     
      assertEquals( expected.getFlattened(), actual.getFlattened() );
    }
  }
View Full Code Here


 
  @Test
  public final void testGetObjectPropertyTargets() throws OWLReasonerRuntimeException {
    for( OWLNamedIndividual x : ontology.getIndividualsInSignature() ) {
      for( OWLObjectPropertyExpression y : ontology.getObjectPropertiesInSignature() ) {
        SetOfIndividualSynsets expected = referenceReasoner.answer(new GetObjectPropertyTargets(referenceReasoner.getDefaultKB(), x, y));
        SetOfIndividualSynsets actual = heraklesReasoner.answer(new GetObjectPropertyTargets(heraklesReasoner.getDefaultKB(), x, y));     
        assertEquals( expected.getFlattened(), actual.getFlattened() );
      }
    }
  }
View Full Code Here

  }
 
  @Test
  public final void testGetDifferentIndividuals() throws OWLReasonerRuntimeException {
    for( OWLNamedIndividual x : ontology.getIndividualsInSignature() ) {
      SetOfIndividualSynsets expected = referenceReasoner.answer(new GetDifferentIndividuals(referenceReasoner.getDefaultKB(), x));
      SetOfIndividualSynsets actual = heraklesReasoner.answer(new GetDifferentIndividuals(heraklesReasoner.getDefaultKB(), x));     
      assertEquals( expected.getFlattened(), actual.getFlattened() );
    }
  }
View Full Code Here

TOP

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

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.