log.info("loading: " + url); final MyLoadStats totals = newLoadStats();
log.info("loading: " + url); final MyLoadStats totals = newLoadStats();
+ ", resource=" + Arrays.toString(resource)); final MyLoadStats totals = newLoadStats();
+ ", resource=" + Arrays.toString(resource)); final MyLoadStats totals = newLoadStats();
/** * 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); }
throw new IllegalArgumentException(); final MyLoadStats totals = newLoadStats();
/** * 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); }
throw new IllegalArgumentException(); final MyLoadStats totals = newLoadStats();
/** * 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; }
/** * 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; }
final MyLoadStats totals = dataLoader.newLoadStats();
new DataLoader(properties,kb, System.out); // use the override properties. final MyLoadStats totals = dataLoader.newLoadStats();
final MyLoadStats totals = dataLoader.newLoadStats();
new DataLoader(properties,kb, System.out); // use the override properties. final MyLoadStats totals = dataLoader.newLoadStats();