Package org.mindswap.pellet.tableau.completion.queue

Examples of org.mindswap.pellet.tableau.completion.queue.QueueElement


    ATermAppl maxCon = ATermUtils.makeMax(this.r.getName(), this.n, this.qualification);
    //normalize the label
    maxCon = ATermUtils.normalize(maxCon);
   
    if( PelletOptions.USE_COMPLETION_QUEUE ) {
      QueueElement qElement = new QueueElement( ind, maxCon );
      abox.getCompletionQueue().add( qElement, NodeSelector.MAX_NUMBER );
      abox.getCompletionQueue().add( qElement, NodeSelector.CHOOSE );
    }
   
   
View Full Code Here


    if( node != null ) {
      if( node instanceof Literal ) {

        if( ((Literal) node).getValue() == null && PelletOptions.USE_COMPLETION_QUEUE ) {
          // added for completion queue
          QueueElement newElement = new QueueElement( node );
          this.completionQueue.add( newElement, NodeSelector.LITERAL );
        }

        if( getBranch() >= 0 && PelletOptions.TRACK_BRANCH_EFFECTS ) {
                  branchEffects.add( getBranch(), node.getName() );
                }

        return (Literal) node;
      }
            else {
              throw new InternalReasonerException(
            "Same term refers to both a literal and an individual: " + name );
            }
    }

    int remember = branch;
    setBranch( DependencySet.NO_BRANCH );
   
    /*
     * TODO Investigate the effects of storing asserted value
     * The input version of the literal is not discarded, only the canonical
     * versions are stored in the literal. This may cause problems in cases
     * where the same value space object is presented in the data in multiple
     * forms.
     */
    Literal lit = new Literal( name, dataValue, this, ds );
    lit.addType( ATermUtils.TOP_LIT, ds );
   
    setBranch( remember );
   
    nodes.put( name, lit );
    nodeList.add( name );

    if( lit.getValue() == null && PelletOptions.USE_COMPLETION_QUEUE ) {
      // added for completion queue
      QueueElement newElement = new QueueElement( lit );
      this.completionQueue.add( newElement, NodeSelector.LITERAL );
    }

    if( getBranch() >= 0 && PelletOptions.TRACK_BRANCH_EFFECTS ) {
          branchEffects.add( getBranch(), lit.getName() );
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.tableau.completion.queue.QueueElement

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.