Package org.openrdf.sail

Examples of org.openrdf.sail.SailException


      }

      return size;
    }
    catch (IOException e) {
      throw new SailException(e);
    }
  }
View Full Code Here


    try {
      nativeStore.getTripleStore().startTransaction();
    }
    catch (IOException e) {
      txnLock.release();
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      txnLock.release();
      throw e;
    }
View Full Code Here

      nativeStore.getTripleStore().commit();

      txnLock.release();
    }
    catch (IOException e) {
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to commit", e);
      throw e;
    }
View Full Code Here

    try {
      nativeStore.getValueStore().sync();
      nativeStore.getTripleStore().rollback();
    }
    catch (IOException e) {
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to roll back", e);
      throw e;
    }
View Full Code Here

          }
        }
      }
    }
    catch (IOException e) {
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to add a statement", e);
      throw e;
    }
View Full Code Here

      }

      return removeCount;
    }
    catch (IOException e) {
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to remove statements", e);
      throw e;
    }
View Full Code Here

    try {
      InferencerConnection con = (InferencerConnection)super.getConnection();
      return new ForwardChainingRDFSPlusInverseInferencerConnection(con);
    }
    catch (ClassCastException e) {
      throw new SailException(e.getMessage(), e);
    }
  }
View Full Code Here

        try {
            TripleSource tripleSource = new SailConnectionTripleSource(this, context.valueFactory, includeInferred);
            EvaluationStrategyImpl strategy = new EvaluationStrategyImpl(tripleSource, dataset);
            return strategy.evaluate(query, bindings);
        } catch (QueryEvaluationException e) {
            throw new SailException(e);
        }
    }
View Full Code Here

        try {
            TripleSource tripleSource = new SailConnectionTripleSource(this, store.valueFactory, includeInferred);
            EvaluationStrategyImpl strategy = new EvaluationStrategyImpl(tripleSource, dataset);
            return strategy.evaluate(tupleExpr, bindings);
        } catch (QueryEvaluationException e) {
            throw new SailException(e);
        }
    }
View Full Code Here

    try {
      InferencerConnection con = (InferencerConnection)super.getConnection();
      return new DirectTypeHierarchyInferencerConnection(con);
    }
    catch (ClassCastException e) {
      throw new SailException(e.getMessage(), e);
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.SailException

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.