Package com.hp.hpl.jena.reasoner

Examples of com.hp.hpl.jena.reasoner.StandardValidityReport


   */
  @Override
    public ValidityReport validate() {
    checkOpen();
    prepare();
    StandardValidityReport report = new StandardValidityReport();

    kb.setDoExplanation( true );
    boolean consistent = kb.isConsistent();
    kb.setDoExplanation( false );

    if( !consistent ) {
      report.add( true, "KB is inconsistent!", kb.getExplanation() );
    }
    else {
      for( ATermAppl c : kb.getUnsatisfiableClasses() ) {
        String name = JenaUtils.makeGraphNode( c ).toString();
        report.add( false, "Unsatisfiable class", name );
      }
    }

    return report;
  }
View Full Code Here


   */
  @Override
    public ValidityReport validate() {
    checkOpen();
    prepare();
    StandardValidityReport report = new StandardValidityReport();

    kb.setDoExplanation( true );
    boolean consistent = kb.isConsistent();
    kb.setDoExplanation( false );

    if( !consistent ) {
      report.add( true, "KB is inconsistent!", kb.getExplanation() );
    }
    else {
      for( ATermAppl c : kb.getUnsatisfiableClasses() ) {
        String name = JenaUtils.makeGraphNode( c ).toString();
        report.add( false, "Unsatisfiable class", name );
      }
    }

    return report;
  }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.reasoner.StandardValidityReport

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.