Examples of SetOfLiterals


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

 
  @Test
  public final void testGetDataPropertyTargets() throws OWLReasonerRuntimeException {
    for( OWLNamedIndividual x : ontology.getIndividualsInSignature() ) {
      for( OWLDataProperty y : ontology.getDataPropertiesInSignature() ) { 
        SetOfLiterals expected = referenceReasoner.answer(new GetDataPropertyTargets(referenceReasoner.getDefaultKB(), x, y));
        SetOfLiterals actual = heraklesReasoner.answer(new GetDataPropertyTargets(heraklesReasoner.getDefaultKB(), x, y));     
        assertEquals( new HashSet<OWLLiteral>().addAll(expected), new HashSet<OWLLiteral>().addAll(actual) )
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.