Package org.openrdf.repository

Examples of org.openrdf.repository.RepositoryException


            sailConnection.begin();

            return new ExceptionConvertingIteration<CacheEntry, RepositoryException>(sailConnection.listAll()) {
                @Override
                protected RepositoryException convert(Exception e) {
                    return new RepositoryException(e);
                }

                /**
                 * Closes this Iteration as well as the wrapped Iteration if it happens to be
                 * a {@link info.aduna.iteration.CloseableIteration}.
                 */
                @Override
                protected void handleClose() throws RepositoryException {
                    super.handleClose();
                    try {
                        sailConnection.commit();
                        sailConnection.close();
                    } catch (SailException ex) {
                        throw new RepositoryException(ex);
                    }
                }
            };
        } catch (SailException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here


            } finally {
                con.commit();
                con.close();
            }
        } catch (SQLException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

                return collection;
            } finally {
                result.close();
            }
        } catch(Throwable ex) {
            throw new RepositoryException(ex);
        }
    }
View Full Code Here

                return collection;
            } finally {
                result.close();
            }
        } catch(Throwable ex) {
            throw new RepositoryException(ex);
        }
    }
View Full Code Here

                return collection;
            } finally {
                result.close();
            }
        } catch(Throwable ex) {
            throw new RepositoryException(ex);
        }
    }
View Full Code Here

      if (!(dataFile.exists())) return null;
      final CacheEntry ce = FileBackendUtils.readCacheEntry(dataFile, getValueFactory());
      if (FileBackendUtils.isExpired(ce)) return null;
      return ce;
    } catch (IOException e) {
      throw new RepositoryException("could not read cache entry for " + resource.stringValue(), e);
    }
  }
View Full Code Here

  public void addCacheEntry(URI resource, CacheEntry entry)
      throws RepositoryException {
    try {
      FileBackendUtils.writeCacheEntry(entry, baseDir);
    } catch (IOException e) {
      throw new RepositoryException("could not store cache entry for " + resource.stringValue(), e);
    }
  }
View Full Code Here

                                Thread.sleep(500);
                            }
                            log.info("sleeping for 100ms to let engine finish processing ... ");
                            Thread.sleep(100);
                        } catch (InterruptedException e) {
                            throw new RepositoryException("Could not finish reasoning", e);
                        }
                    }
                };
            }
        };
View Full Code Here

    @Override
    public void addCacheEntry(URI resource, CacheEntry entry) throws RepositoryException {
        try {
            cacheConnection.addCacheEntry(resource,entry);
        } catch (org.openrdf.sail.SailException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

    @Override
    public CacheEntry getCacheEntry(URI resource) throws RepositoryException {
        try {
            return cacheConnection.getCacheEntry(resource);
        } catch (org.openrdf.sail.SailException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.RepositoryException

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.