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

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


 
  @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.requests.GetFlattenedObjectPropertyTargets

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.