Package org.mindswap.pellet

Examples of org.mindswap.pellet.KnowledgeBase.realize()


    KnowledgeBase kb = ((PelletInfGraph) model.getGraph()).getKB();

    for( int test = 0; test < 1; test++ ) {
      if( test != 0 ) {
              kb.realize();
            }

      assertIteratorValues( DreamTeamMember.listInstances(), new Object[] {
          Alice, Bob, Charlie } );
View Full Code Here


    if( classify ) {
      kb.setDoExplanation( true );
      pellet.prepare();
      kb.setDoExplanation( false );
     
      kb.realize();
    }
  } 

  @Override
  public void testInconsistencyExplanations(int max, OWLAxiom[]... explanations) throws Exception {
View Full Code Here

   
    TestProgressMonitor progressMonitor = new TestProgressMonitor();
   
    kb.setTaxonomyBuilderProgressMonitor( progressMonitor );
   
    kb.realize();
   
    assertFalse( progressMonitor.isProgressLengthExceeded() );
  }
 
  private static class TestProgressMonitor extends AbstractProgressMonitor {
View Full Code Here

    assertFalse( timeout );
    assertTrue( kb.isClassified() );

    long time = System.currentTimeMillis();
    try {
      kb.realize();
      time = System.currentTimeMillis() - time;
    } catch( TimeoutException e ) {
      timeout = true;
    }
View Full Code Here

    if( classify ) {
      kb.setDoExplanation( true );
      kb.ensureConsistency();
      kb.setDoExplanation( false );
     
      kb.realize();
    }
  }

  @Override
  public void testInconsistencyExplanations(int max, OWLAxiom[]... explanations) throws Exception {
View Full Code Here

    assertEquals( 0, realizeTimer.getCount() );   
    assertFalse( kb.isClassified() );
    assertFalse( kb.isRealized() );
   
    // force realization
    kb.realize();

    // make sure counts are ok
    assertEquals( 1, classifyTimer.getCount() );
    assertEquals( 1, realizeTimer.getCount() );
View Full Code Here

    startTask( "classification" );
    kb.classify();
    finishTask( "classification" );
   
    startTask( "realization" );
    kb.realize();
    finishTask( "realization" );

    TaxonomyPrinter<ATermAppl> printer = new ClassTreePrinter();
    printer.print( kb.getTaxonomy() );
  }
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.