Package com.clarkparsia.pellet.expressivity

Examples of com.clarkparsia.pellet.expressivity.Expressivity


  }

  public void complete(Expressivity expr) {
    Timer t;

    Expressivity expressivity = abox.getKB().getExpressivity();

    initialize( expressivity );

    merging = false;
    t = timers.startTimer( "rule-buildReteRules" );
View Full Code Here


*/
public class CacheSafetyDynamic implements CacheSafety {
  private final Expressivity  expressivity;

  CacheSafetyDynamic(Expressivity e) {
    this.expressivity = new Expressivity( e );
  }
View Full Code Here

        log.fine( "Consistency " + ATermUtils.toString( c ) + " for " + individuals.size() + " individuals "
            + sb );
      }
    }

    Expressivity expr = kb.getExpressivityChecker().getExpressivityWith( c );

    // if c is null we are checking the consistency of this ABox as
    // it is and we will not add anything extra
    boolean initialConsistencyCheck = (c == null);

    boolean emptyConsistencyCheck = initialConsistencyCheck && isEmpty();

    // if individuals is empty and we are not building the pseudo
    // model then this is concept satisfiability
    boolean conceptSatisfiability = individuals.isEmpty()
        && (!initialConsistencyCheck || emptyConsistencyCheck);

    // Check if there are any nominals in the KB or nominal
    // reasoning is disabled
    boolean hasNominal = expr.hasNominal() && !PelletOptions.USE_PSEUDO_NOMINALS;

    // Use empty model only if this is concept satisfiability for a KB
    // where there are no nominals
    boolean canUseEmptyABox = conceptSatisfiability && !hasNominal;
View Full Code Here

    buffer.append( "Expressivity: " + expChecker.getExpressivity() + " " );
    buffer.append( "Classes: " + getClasses().size() + " " );
    buffer.append( "Properties: " + getProperties().size() + " " );
    buffer.append( "Individuals: " + individuals.size() + " " );

    Expressivity expressivity = expChecker.getExpressivity();
    if( expressivity.hasNominal() )
      buffer.append( "Nominals: " + expressivity.getNominals().size() + " " );

    return buffer.toString();
  }
View Full Code Here

   *
   * @return
   */
  protected boolean canUseIncConsistency() {
    // can we do incremental consistency checking
    Expressivity expressivity = expChecker.getExpressivity();
    if( expressivity == null )
      return false;

    boolean canUseIncConsistency =
        !(expressivity.hasNominal() && expressivity.hasInverse())
        && getRules().isEmpty()
        && !isTBoxChanged() && !isRBoxChanged() && abox.isComplete()
        && PelletOptions.USE_INCREMENTAL_CONSISTENCY &&
        // support additions only; also support deletions with or with
        // additions, however tracing must be on to support incremental
View Full Code Here

  public void ensureIncConsistency(boolean aboxDeletion) {
    if( canUseIncConsistency() )
      return;

    Expressivity expressivity = expChecker.getExpressivity();

    String msg = "ABox " + (aboxDeletion
      ? "deletion"
      : "addition") + " failed because ";
    if( expressivity == null )
      msg += "an initial consistency check has not been performed on this KB";
    else if( expressivity.hasNominal() )
      msg += "KB has nominals";
    else if( expressivity.hasInverse() )
      msg += "KB has inverse properties";
    else if( isTBoxChanged() )
      msg += "TBox changed";
    else if( isRBoxChanged() )
      msg += "RBox changed";
View Full Code Here

  }

  public void complete(Expressivity expr ) {
//    Timer t;

    Expressivity expressivity = abox.getKB().getExpressivity();

    initialize( expressivity );

    //run the RETE once when the rules are not applied
    if( !abox.ranRete && abox.rulesNotApplied ) {
View Full Code Here

  }

  public void complete(Expressivity expr) {
//    Timer t;

    Expressivity expressivity = abox.getKB().getExpressivity();

    initialize( expressivity );

    merging = false;
//    t = timers.startTimer( "rule-buildReteRules" );
View Full Code Here

*/
public class CacheSafetyDynamic implements CacheSafety {
  private final Expressivity  expressivity;

  CacheSafetyDynamic(Expressivity e) {
    this.expressivity = new Expressivity( e );
  }
View Full Code Here

        log.fine( "Consistency " + ATermUtils.toString( c ) + " for " + individuals.size() + " individuals "
            + sb );
      }
    }

    Expressivity expr = kb.getExpressivityChecker().getExpressivityWith( c );

    // if c is null we are checking the consistency of this ABox as
    // it is and we will not add anything extra
    boolean initialConsistencyCheck = (c == null);

    boolean emptyConsistencyCheck = initialConsistencyCheck && isEmpty();

    // if individuals is empty and we are not building the pseudo
    // model then this is concept satisfiability
    boolean conceptSatisfiability = individuals.isEmpty()
        && (!initialConsistencyCheck || emptyConsistencyCheck);

    // Check if there are any nominals in the KB or nominal
    // reasoning is disabled
    boolean hasNominal = expr.hasNominal() && !PelletOptions.USE_PSEUDO_NOMINALS;

    // Use empty model only if this is concept satisfiability for a KB
    // where there are no nominals
    boolean canUseEmptyABox = conceptSatisfiability && !hasNominal;
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellet.expressivity.Expressivity

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.