final Set<String> hashes = new TreeSet<>(); final RDFHandler handler = RDFProcessors.read(true, false, null, null, file.getAbsolutePath()).wrap(new RDFHandler() {
@Override public void map(final QuadModel model) throws Exception { final List<Statement> statements = new ArrayList<>(); final RDFSource source = RDFSources.wrap(model); final RDFHandler handler = RDFHandlers.wrap(statements); processor.wrap(source).emit(handler, 1); model.addAll(statements); }
RDFProcessors.smush("http://dbpedia.org/resource/").wrap(RDFSources.wrap(stmts)) .emit(RDFHandlers.wrap(smushedStmts), 1);
final RDFSource staticData = staticSpecs.length == 0 ? null : RDFProcessors.track( new Tracker(LOGGER, null, "%d static triples read (%d tr/s avg)", // "%d static triples read (%d tr/s, %d tr/s avg)")).wrap( RDFSources.read(true, preserveBNodes, base, null, staticSpecs));