loadData4_ParserErrors_Trapped(totals, is, url.toString()/* label */, baseURL, rdfFormat, url.toString()/* defaultGraph */, true/* endOfBatch */);
loadData4_ParserErrors_Trapped(totals, is, url.toString()/* label */, baseURL, rdfFormat, url.toString()/* defaultGraph */, true/* endOfBatch */);
/** * Loads data from the <i>source</i>. The caller is responsible for closing * the <i>source</i> if there is an error. * * @param totals * Used to report out the total {@link LoadStats}. * @param source * A {@link Reader} or {@link InputStream}. * @param baseURL * The baseURI (optional, when not specified the name of the each * file load is converted to a URL and used as the baseURI for * that file). * @param rdfFormat * The format of the file (optional, when not specified the * format is deduced for each file in turn using the * {@link RDFFormat} static methods). * @param defaultGraph * The value that will be used for the graph/context co-ordinate * when loading data represented in a triple format into a quad * store. * @param endOfBatch * Signal indicates the end of a batch. */ @Deprecated protected void loadData3(final LoadStats totals, final Object source, final String baseURL, final RDFFormat rdfFormat, final String defaultGraph, final boolean endOfBatch) throws IOException { final MyLoadStats tmp = newLoadStats(); loadData4_ParserErrors_Trapped(tmp, source, null/* label */, baseURL, rdfFormat, defaultGraph, endOfBatch); totals.add(tmp); }
loadData4_ParserErrors_Trapped(totals, reader, resource/* label */, baseURL, rdfFormat, defaultGraph, endOfBatch);
loadData4_ParserErrors_Trapped(totals, reader, resource/* label */, baseURL, rdfFormat, defaultGraph, endOfBatch);
/** * Load from an input stream. * * @param is * The input stream (required). * @param baseURL * The base URL (required). * @param rdfFormat * The format (required). * @return * @throws IOException */ public LoadStats loadData(final InputStream is, final String baseURL, final RDFFormat rdfFormat) throws IOException { final MyLoadStats totals = newLoadStats(); /* * We are not processing Files so the durable queues pattern does * not apply and we can call a method that handles the * RDFParseException for us. */ loadData4_ParserErrors_Trapped(totals, is, baseURL/* label */, baseURL, rdfFormat, null/* defaultGraph */, true/* endOfBatch */); doCommit(totals); return totals; }
/** * Loads data from the <i>source</i>. The caller is responsible for closing * the <i>source</i> if there is an error. * * @param totals * Used to report out the total {@link LoadStats}. * @param source * A {@link Reader} or {@link InputStream}. * @param baseURL * The baseURI (optional, when not specified the name of the each * file load is converted to a URL and used as the baseURI for * that file). * @param rdfFormat * The format of the file (optional, when not specified the * format is deduced for each file in turn using the * {@link RDFFormat} static methods). * @param defaultGraph * The value that will be used for the graph/context co-ordinate * when loading data represented in a triple format into a quad * store. * @param endOfBatch * Signal indicates the end of a batch. */ @Deprecated protected void loadData3(final LoadStats totals, final Object source, final String baseURL, final RDFFormat rdfFormat, final String defaultGraph, final boolean endOfBatch) throws IOException { final MyLoadStats tmp = newLoadStats(); loadData4_ParserErrors_Trapped(tmp, source, null/* label */, baseURL, rdfFormat, defaultGraph, endOfBatch); totals.add(tmp); }
/** * Load from a reader and commit. * * @param reader * The reader (required). * @param baseURL * The base URL (required). * @param rdfFormat * The {@link RDFFormat} to use as a fallback (required). * * @return Statistics about the load. * * @throws IOException */ public LoadStats loadData(final Reader reader, final String baseURL, final RDFFormat rdfFormat) throws IOException { final MyLoadStats totals = newLoadStats(); /* * We are not processing Files so the durable queues pattern does * not apply and we can call a method that handles the * RDFParseException for us. */ loadData4_ParserErrors_Trapped(totals, reader, baseURL/* label */, baseURL, rdfFormat, null/* defaultGraph */, true/* endOfBatch */); doCommit(totals); return totals; }
/** * Load from an input stream. * * @param is * The input stream (required). * @param baseURL * The base URL (required). * @param rdfFormat * The format (required). * @return * @throws IOException */ public LoadStats loadData(final InputStream is, final String baseURL, final RDFFormat rdfFormat) throws IOException { final MyLoadStats totals = newLoadStats(); /* * We are not processing Files so the durable queues pattern does * not apply and we can call a method that handles the * RDFParseException for us. */ loadData4_ParserErrors_Trapped(totals, is, baseURL/* label */, baseURL, rdfFormat, null/* defaultGraph */, true/* endOfBatch */); doCommit(totals); return totals; }
/** * Load from a reader and commit. * * @param reader * The reader (required). * @param baseURL * The base URL (required). * @param rdfFormat * The {@link RDFFormat} to use as a fallback (required). * * @return Statistics about the load. * * @throws IOException */ public LoadStats loadData(final Reader reader, final String baseURL, final RDFFormat rdfFormat) throws IOException { final MyLoadStats totals = newLoadStats(); /* * We are not processing Files so the durable queues pattern does * not apply and we can call a method that handles the * RDFParseException for us. */ loadData4_ParserErrors_Trapped(totals, reader, baseURL/* label */, baseURL, rdfFormat, null/* defaultGraph */, true/* endOfBatch */); doCommit(totals); return totals; }