Examples of GetEquivalentObjectProperties


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

  }
 
  @Test
  public final void testGetEquivalentObjectProperties() throws OWLReasonerRuntimeException {
    for( OWLObjectPropertyExpression x : ontology.getObjectPropertiesInSignature() ) {
      SetOfObjectProperties expected = referenceReasoner.answer(new GetEquivalentObjectProperties(referenceReasoner.getDefaultKB(), x));
      SetOfObjectProperties actual = heraklesReasoner.answer(new GetEquivalentObjectProperties(heraklesReasoner.getDefaultKB(), x));     
      assertEquals( new HashSet<OWLObjectPropertyExpression>().addAll(expected), new HashSet<OWLObjectPropertyExpression>().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.