182183184185186187188189
*/ public Program getProgram(String name) throws SailException { if(isEnabled()) { return sail.getProgram(name); } else { throw new SailException("reasoning is disabled"); } }
195196197198199200201202
*/ public CloseableIteration<Program, SailException> listPrograms() throws SailException { if(isEnabled()) { return sail.listPrograms(); } else { throw new SailException("reasoning is disabled"); } }
222223224225226227228229
*/ public void updateProgram(String name, InputStream data) throws IOException, SailException, ParseException { if(isEnabled()) { sail.updateProgram(name, data); } else { throw new SailException("reasoning is disabled"); } }
238239240241242243244245
*/ public void updateProgram(Program program) throws SailException { if(isEnabled()) { sail.updateProgram(program); } else { throw new SailException("reasoning is disabled"); } }
253254255256257258259260
*/ public CloseableIteration<Justification, SailException> justify(long tripleId) throws SailException { if(isEnabled()) { return sail.justify(tripleId); } else { throw new SailException("reasoning is disabled"); } }
8889909192939495
log.debug("evaluating SPARQL query:\n {}", tupleExpr); return strategy.evaluate(tupleExpr, EmptyBindingSet.getInstance()); } catch (QueryEvaluationException e) { throw new SailException(e.getMessage(),e); } }
948949950951952953954
it = ((SailConnectionWrapper) it).getWrappedConnection(); if(it instanceof KiWiSailConnection) { return (KiWiSailConnection) it; } } throw new SailException("no underlying KiWiSailConnection found for connection"); }
121122123124125126127128
super.initialize(); try { persistence.initDatabase(); } catch (SQLException e) { throw new SailException("error while initialising versioning tables in database",e); } }
268269270271272273274275
throw new RepositoryException("database error while committing/closing connection"); } } }; } catch(SQLException ex) { throw new SailException("database error while listing versions",ex); } }
295296297298299300301302