Package org.openrdf.rio

Examples of org.openrdf.rio.RDFHandlerException


            }

            templatingService.process(TEMPLATE, data, writer);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            throw new RDFHandlerException(e);
        }

    }
View Full Code Here


            try {
                log.info("{}: dropping indexes before import", backend);
                dropIndexes();
                connection.commit();
            } catch (SQLException e) {
                throw new RDFHandlerException("error while dropping indexes", e);
            }
        }
    }
View Full Code Here

            try {
                log.info("{}: re-creating indexes after import", backend);
                createIndexes();
                connection.commit();
            } catch (SQLException e) {
                throw new RDFHandlerException("error while dropping indexes", e);
            }
        }
        super.shutdown();

View Full Code Here

    @Override
    public void endRDF() throws RDFHandlerException {
        try {
            flushBacklog();
        } catch (SQLException e) {
            throw new RDFHandlerException(e);
        }


        super.endRDF();
View Full Code Here

        public void endRDF() throws RDFHandlerException {
            try {
                c.commit();
    c.begin();
            } catch (SailException e) {
                throw new RDFHandlerException(e);
            }
        }
View Full Code Here

                if (0 == ++count % CHUNK_SIZE) {
                    c.commit();
        c.begin();
                }
            } catch (SailException e) {
                throw new RDFHandlerException(e);
            }
        }
View Full Code Here

    public void endRDF() throws RDFHandlerException {
        ObjectMapper mapper = new ObjectMapper();
        try {
            mapper.writeValue(writer,subjects);
        } catch (IOException e) {
            throw new RDFHandlerException("error while serializing JSON objects",e);
        }
    }
View Full Code Here

            }

            templatingService.process(TEMPLATE, data, writer);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            throw new RDFHandlerException(e);
        }

    }
View Full Code Here

    public void handleNamespace(final String prefix, final String uri) throws RDFHandlerException {
        try {
            sailConnection.setNamespace(prefix, uri);
        } catch (SailException e) {
            throw new RDFHandlerException(e);
        }
    }
View Full Code Here

    public void handleStatement(final Statement st) throws RDFHandlerException {
        try {
            sailConnection.addStatement(st.getSubject(), st.getPredicate(), st.getObject(), st.getContext());
        } catch (SailException e) {
            throw new RDFHandlerException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.openrdf.rio.RDFHandlerException

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.