Package org.openrdf.sail

Examples of org.openrdf.sail.SailException


        this.wrapped = wrappedCon;
        try {
            this.persistence = new LDCachingKiWiPersistenceConnection(wrappedCon.getDatabaseConnection());
        } catch (SQLException e) {
            throw new SailException(e);
        }
    }
View Full Code Here


    @Override
    public void addCacheEntry(URI resource, CacheEntry entry) throws SailException {
        try {
            persistence.storeCacheEntry(entry);
        } catch (SQLException e) {
            throw new SailException(e);
        }
    }
View Full Code Here

    @Override
    public CacheEntry getCacheEntry(URI resource) throws SailException {
        try {
            return persistence.getCacheEntry(resource.stringValue());
        } catch (SQLException e) {
            throw new SailException(e);
        }
    }
View Full Code Here

    @Override
    public void removeCacheEntry(URI resource) throws SailException {
        try {
            persistence.removeCacheEntry(resource.stringValue());
        } catch (SQLException e) {
            throw new SailException(e);
        }
    }
View Full Code Here

     */
    public CloseableIteration<KiWiCacheEntry,SQLException> listExpired() throws SailException {
        try {
            return persistence.listExpired();
        } catch (SQLException e) {
            throw new SailException(e);
        }
    }
View Full Code Here

     */
    public CloseableIteration<KiWiCacheEntry,SQLException> listAll() throws SailException {
        try {
            return persistence.listAll();
        } catch (SQLException e) {
            throw new SailException(e);
        }
    }
View Full Code Here

    @Override
    public void initialize() throws SailException {
        // ignore, because we assume that the wrapped store is already initialized
        if(!store.isInitialized()) {
            throw new SailException("the LDCachingKiWiSail is a secondary sail and requires an already initialized store!");
        }
    }
View Full Code Here

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

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

     */
    public void deleteProgram(String name) throws SailException {
        if(isEnabled()) {
            sail.deleteProgram(name);
        } else {
            throw new SailException("reasoning is disabled");
        }
    }
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.