log.warn("ignore File {} because of unknown extension ");
return ResourceState.IGNORED;
} else if (format == Lang.NTRIPLES) {
TDBLoader.load(indexingDataset, is, true);
} else if(format == Lang.NQUADS || format == Lang.TRIG){ //quads
TDBLoader loader = new TDBLoader();
loader.setShowProgress(true);
Destination<Quad> dest = createQuad2TripleDestination();
dest.start();
RiotReader.parseQuads(is,format,null, dest);
dest.finish();
} else if (format != Lang.RDFXML) {
// use RIOT to parse the format but with a special configuration
// RiotReader!
TDBLoader loader = new TDBLoader();
loader.setShowProgress(true);
Destination<Triple> dest = createDestination();
dest.start();
RiotReader.parseTriples(is, format, null, dest);
dest.finish();
} else { // RDFXML