Package org.mindswap.pellet

Examples of org.mindswap.pellet.IndividualIterator


      return false;
    return true;
  }

  private boolean processIndividuals() {
    IndividualIterator i = m_KB.getABox().getIndIterator();
    while( i.hasNext() ) {
      Individual ind = i.next();
      ATermAppl nominal = ATermUtils.makeValue( ind.getName() );
      for( ATermAppl term : ind.getTypes() ) {
        if( term.equals( nominal ) )
          continue;
View Full Code Here


          // printBlocked();
          abox.printTree();
          interpreter.alphaNet.print();
        }

        IndividualIterator i = abox.getIndIterator();

        for( TableauRule tableauRule : tableauRules ) {
          tableauRule.apply( i );
          if( abox.isClosed() )
            break;
View Full Code Here

          abox.validate();
          printBlocked();
          abox.printTree();
        }

        IndividualIterator i = (PelletOptions.USE_COMPLETION_QUEUE)
          ? abox.getCompletionQueue()
          : abox.getIndIterator();

        // flush the queue
        if( PelletOptions.USE_COMPLETION_QUEUE )
View Full Code Here

      abox.printTree();

    if( PelletOptions.USE_ADVANCED_CACHING ) {
      // if completion tree is clash free cache all sat concepts
      if( !abox.isClosed() ) {
        for( Iterator<Individual> i = new IndividualIterator( abox ); i.hasNext(); ) {
          Individual ind = i.next();
          ATermAppl c = cachedNodes.get( ind );
          if( c == null )
            continue;

          addCacheSat( c );
View Full Code Here

   * Return individuals to which we need to apply the initialization rules
   *
   * @return
   */
  public Iterator<Individual> getInitializeIterator() {
    return new IndividualIterator(abox);
  }
View Full Code Here

    int lastIndex = name.lastIndexOf('.');
    return name.substring(lastIndex + 1);
  }

  protected void restoreAllValues() {
    for (Iterator<Individual> i = new IndividualIterator(abox); i.hasNext();) {
      Individual ind = i.next();
      allValuesRule.apply(ind);
    }
  }
View Full Code Here

          abox.validate();
          //          printBlocked();
          abox.printTree();
        }

        IndividualIterator i = abox.getIndIterator();

        for( TableauRule tableauRule : tableauRules ) {
          tableauRule.apply( i );
          if( abox.isClosed() )
            break;
View Full Code Here

          abox.validate();
          // printBlocked();
          abox.printTree();
        }

        IndividualIterator i = abox.getIndIterator();

        for( TableauRule tableauRule : tableauRules ) {
          tableauRule.apply( i );
          if( abox.isClosed() )
            break;
View Full Code Here

   * Return individuals to which we need to apply the initialization rules
   *
   * @return
   */
  public Iterator<Individual> getInitializeIterator() {
    return new IndividualIterator(abox);
  }
View Full Code Here

    int lastIndex = name.lastIndexOf('.');
    return name.substring(lastIndex + 1);
  }

  protected void restoreAllValues() {
    for (Iterator<Individual> i = new IndividualIterator(abox); i.hasNext();) {
      Individual ind = i.next();
      allValuesRule.apply(ind);
    }
  }
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.IndividualIterator

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.