Package com.clarkparsia.explanation.io

Examples of com.clarkparsia.explanation.io.ConciseExplanationRenderer


  public ExplanationTester(ExplanationGenerator expGen) {
    this.expGen = expGen;

    converter = new SatisfiabilityConverter(OntologyUtils.getOWLOntologyManager().getOWLDataFactory());
    renderer = new ConciseExplanationRenderer();
  }
View Full Code Here


        unexpectedExplanations.add( explanation );
    }

    if( !notFoundExplanations.isEmpty() || !unexpectedExplanations.isEmpty() ) {
      StringWriter sw = new StringWriter();
      ConciseExplanationRenderer renderer = new ConciseExplanationRenderer();
      renderer.startRendering( sw );
      sw.getBuffer().append( "\nExpected:\n" );
      renderer.render( axiom, expectedExplanations );
      if( !notFoundExplanations.isEmpty() ) {
        sw.getBuffer().append( "Not Found:\n" );
        renderer.render( axiom, notFoundExplanations );
      }
      if( !unexpectedExplanations.isEmpty() ) {
        sw.getBuffer().append( "Unexpected:\n" );
        renderer.render( axiom, unexpectedExplanations );
      }
      renderer.endRendering();
     
      log.severe( "Error in explanation: " + sw );
     
      org.junit.Assert.fail( "Error in explanation, see the log file for details" );
    }
View Full Code Here

TOP

Related Classes of com.clarkparsia.explanation.io.ConciseExplanationRenderer

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.