Package org.openrdf.rio

Examples of org.openrdf.rio.RDFHandlerException


      }
      else if (booleanLit.equals(DAWGTestResultSetSchema.FALSE)) {
        value = false;
      }
      else {
        new RDFHandlerException("Invalid boolean value: " + booleanLit);
      }
    }
    catch (GraphUtilException e) {
      throw new RDFHandlerException(e.getMessage(), 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

                kiwiCon.close();
            }

            writer.endRDF();
        } catch (RepositoryException e) {
            throw new RDFHandlerException("Could not build SparqlServiceDescription");
        }
    }
View Full Code Here

    public void initialise() throws RDFHandlerException {
        log.info("KiWiLoader: initialising RDF handler");
        try {
            this.connection = store.getPersistence().getConnection();
        } catch (SQLException e) {
            throw new RDFHandlerException(e);
        }


        initialised = true;
    }
View Full Code Here

        log.info("KiWiLoader: shutting down RDF handler");
        if(connection != null) {
            try {
                connection.close();
            } catch (SQLException e) {
                throw new RDFHandlerException(e);
            }
        }

        initialised = false;
View Full Code Here

        }

        try {
            connection.commit();
        } catch (SQLException e) {
            throw new RDFHandlerException(e);
        }

        log.debug("KiWiLoader: RDF bulk import of {} triples finished after {} ms", triples, System.currentTimeMillis() - start);
    }
View Full Code Here

    @Override
    public void handleNamespace(String prefix, String uri) throws RDFHandlerException {
        try {
            connection.storeNamespace(new KiWiNamespace(prefix,uri));
        } catch (SQLException e) {
            throw new RDFHandlerException(e);
        }
    }
View Full Code Here

            }

            storeTriple(result);

        } catch (SQLException | ExecutionException e) {
            throw new RDFHandlerException(e);
        }

    }
View Full Code Here

                log.info("- using generic KiWi loader ... ");
                handler = new KiWiHandler(store,loaderConfiguration);
            }
            handler.initialise();
        } catch (RepositoryException e) {
            throw new RDFHandlerException("error initialising KiWi repository",e);
        } catch (InstantiationException | IllegalAccessException e) {
            throw new RDFHandlerException("could not instatiate KiWi dialect",e);
        }

    }
View Full Code Here

        try {
            handler.shutdown();
            repository.shutDown();
            repository = null;
        } catch (RepositoryException e) {
            throw new RDFHandlerException("error shutting down KiWi repository",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.