Package org.mindswap.pellet.exceptions

Examples of org.mindswap.pellet.exceptions.UnsupportedFeatureException


    role.setForceSimple( true );
  }

  protected void addUnsupportedFeature(String msg) {
    if( !PelletOptions.IGNORE_UNSUPPORTED_AXIOMS ) {
          throw new UnsupportedFeatureException( msg );
        }

    if( unsupportedFeatures.add( msg ) ) {
          log.warning( "Unsupported axiom: " + msg );
        }
View Full Code Here


    Role namedRole = role.isAnon() ? role.getInverse() : role;

    String msg = "Unsupported axiom: Ignoring transitivity and/or complex subproperty axioms for " + namedRole;

    if (!PelletOptions.IGNORE_UNSUPPORTED_AXIOMS) {
      throw new UnsupportedFeatureException(msg);
    }

    log.warning(msg);

    role.removeSubRoleChains();
View Full Code Here

    simpleProperties = new HashSet<OWLObjectProperty>();
  }

  private void addUnsupportedAxiom(OWLAxiom axiom) {
    if( !PelletOptions.IGNORE_UNSUPPORTED_AXIOMS )
      throw new UnsupportedFeatureException( "Axiom: " + axiom );

    if( unsupportedAxioms.add( axiom ) )
      log.warning( "Ignoring unsupported axiom: " + axiom );
  }
View Full Code Here

  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

    simpleProperties = new HashSet<OWLObjectProperty>();
  }

  private void addUnsupportedAxiom(OWLAxiom axiom) {
    if( !PelletOptions.IGNORE_UNSUPPORTED_AXIOMS )
      throw new UnsupportedFeatureException( "Axiom: " + axiom );

    if( unsupportedAxioms.add( axiom ) )
      log.warning( "Ignoring unsupported axiom: " + axiom );
  }
View Full Code Here

    role.setForceSimple( true );
  }

  protected void addUnsupportedFeature(String msg) {
    if( !PelletOptions.IGNORE_UNSUPPORTED_AXIOMS ) {
          throw new UnsupportedFeatureException( msg );
        }

    if( unsupportedFeatures.add( msg ) ) {
          log.warning( "Unsupported axiom: " + msg );
        }
View Full Code Here

        String lexicalValue = ((ATermAppl) lit.getArgument( 0 )).getName();
        String lang = ((ATermAppl) lit.getArgument( 1 )).getName();
        String datatypeURI = ((ATermAppl) lit.getArgument( 2 )).getName();

        if( !lang.equals( "" ) && !datatypeURI.equals( "" ) )
            throw new UnsupportedFeatureException(
                "A literal value cannot have both a datatype URI " + "and a language identifier "
                    + lit );

        Datatype datatype = getDatatype( datatypeURI );
        if( lang.equals( "" ) )
View Full Code Here

        String lexicalValue = ((ATermAppl) lit.getArgument( 0 )).getName();
        String lang = ((ATermAppl) lit.getArgument( 1 )).getName();
        String datatypeURI = ((ATermAppl) lit.getArgument( 2 )).getName();

        if( !lang.equals( "" ) && !datatypeURI.equals( "" ) )
            throw new UnsupportedFeatureException(
                "A literal value cannot have both a datatype URI " + "and a language identifier "
                    + lit );

        Datatype datatype = getDatatype( datatypeURI );
        Object value = lang.equals( "" )
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.