Package org.mindswap.pellet.exceptions

Examples of org.mindswap.pellet.exceptions.UnsupportedFeatureException


  public Individual addIndividual(ATermAppl i) {
    Node node = abox.getNode( i );
    if( node != null ) {
      if( node instanceof Literal )
        throw new UnsupportedFeatureException(
            "Trying to use a literal as an individual: " + ATermUtils.toString( i ) );

      return (Individual) node;
    }
    else if( ATermUtils.isLiteral( i ) ) {
      throw new UnsupportedFeatureException(
          "Trying to use a literal as an individual: " + ATermUtils.toString( i ) );
    }

    int remember = abox.getBranch();
    abox.setBranch( DependencySet.NO_BRANCH );
View Full Code Here


    Node obj = abox.getNode( i2 );
    Role role = getRole( p );

    if( subj == null ) {
      if( PelletOptions.SILENT_UNDEFINED_ENTITY_HANDLING )
        throw new UnsupportedFeatureException( i1 + " is not an individual!" );
      else
        return false;
    }

    if( obj == null ) {
View Full Code Here

    if( subj == null ) {
      if( PelletOptions.SILENT_UNDEFINED_ENTITY_HANDLING )
        return false;
      else
        throw new UnsupportedFeatureException( ind + " is not an individual!" );
    }
   
    ATermAppl normC = ATermUtils.normalize( c );
    DependencySet ds = subj.getDepends( normC );
   
View Full Code Here

      }
      branchCount = 1;
      break;
     
    default:
      throw new UnsupportedFeatureException( "Unknown atom type " + atom.getPredicate() + "." );
    }
   
    return staticCost;
  }
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.exceptions.UnsupportedFeatureException

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.