final public LoadStats loadData(final String[] resource,final String[] baseURL,final RDFFormat[] rdfFormat) throws IOException {
  if (resource.length != baseURL.length)   throw new IllegalArgumentException();
  if (resource.length != rdfFormat.length)   throw new IllegalArgumentException();
  if (log.isInfoEnabled())   log.info("commit=" + commitEnum + ", closure="+ closureEnum+ ", resource="+ Arrays.toString(resource));
  final MyLoadStats totals=newLoadStats();
  for (int i=0; i < resource.length; i++) {
    final boolean endOfBatch=i + 1 == resource.length;
    loadData2(totals,resource[i],baseURL[i],rdfFormat[i],endOfBatch);
  }
  doCommit(totals);
  if (log.isInfoEnabled())   log.info("Loaded " + resource.length + " resources: "+ totals);
  return totals;
}

final public LoadStats loadData ( final String [ ] resource , final String [ ] baseURL , final RDFFormat [ ] rdfFormat ) throws IOException { if ( resource . length != baseURL . length ) throw new IllegalArgumentException ( ) ; if ( resource . length != rdfFormat . length ) throw new IllegalArgumentException ( ) ; if ( log . isInfoEnabled ( ) ) log . info ( "commit=" + commitEnum + ", closure=" + closureEnum + ", resource=" + Arrays . toString ( resource ) ) ; final MyLoadStats totals = newLoadStats ( ) ; for ( int i = 0 ; i < resource . length ; i ++ ) { final boolean endOfBatch = i + 1 == resource . length ; loadData2 ( totals , resource [ i ] , baseURL [ i ] , rdfFormat [ i ] , endOfBatch ) ; } doCommit ( totals ) ; if ( log . isInfoEnabled ( ) ) log . info ( "Loaded " + resource . length + " resources: " + totals ) ; return totals ; }
load a set of rdf resources into the associated triple store and commit .
