Package org.openrdf.sail

Examples of org.openrdf.sail.SailException


     */
    public Program getProgram(String name) throws SailException {
        if(isEnabled()) {
            return sail.getProgram(name);
        } else {
            throw new SailException("reasoning is disabled");
        }
    }
View Full Code Here


     */
    public CloseableIteration<Program, SailException> listPrograms() throws SailException {
        if(isEnabled()) {
            return sail.listPrograms();
        } else {
            throw new SailException("reasoning is disabled");
        }
    }
View Full Code Here

     */
    public void updateProgram(String name, InputStream data) throws IOException, SailException, ParseException {
        if(isEnabled()) {
            sail.updateProgram(name, data);
        } else {
            throw new SailException("reasoning is disabled");
        }
    }
View Full Code Here

     */
    public void updateProgram(Program program) throws SailException {
        if(isEnabled()) {
            sail.updateProgram(program);
        } else {
            throw new SailException("reasoning is disabled");
        }
    }
View Full Code Here

     */
    public CloseableIteration<Justification, SailException> justify(long tripleId) throws SailException {
        if(isEnabled()) {
            return sail.justify(tripleId);
        } else {
            throw new SailException("reasoning is disabled");
        }
    }
View Full Code Here

            log.debug("evaluating SPARQL query:\n {}", tupleExpr);

            return strategy.evaluate(tupleExpr, EmptyBindingSet.getInstance());

        } catch (QueryEvaluationException e) {
            throw new SailException(e.getMessage(),e);
        }
    }
View Full Code Here

            it = ((SailConnectionWrapper) it).getWrappedConnection();
            if(it instanceof KiWiSailConnection) {
                return (KiWiSailConnection) it;
            }
        }
        throw new SailException("no underlying KiWiSailConnection found for connection");
    }
View Full Code Here

        super.initialize();

        try {
            persistence.initDatabase();
        } catch (SQLException e) {
            throw new SailException("error while initialising versioning tables in database",e);
        }
    }
View Full Code Here

                        throw new RepositoryException("database error while committing/closing connection");
                    }
                }
            };
        } catch(SQLException ex) {
            throw new SailException("database error while listing versions",ex);
        }
    }
View Full Code Here

                        throw new RepositoryException("database error while committing/closing connection");
                    }
                }
            };
        } catch(SQLException ex) {
            throw new SailException("database error while listing versions",ex);
        }
    }
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.