private static void loadFile(final String file, SailConnection sc, ValueFactory vf, CommitManager manager) throws RDFParseException, RDFHandlerException, FileNotFoundException, IOException {
NTriplesParser parser = new NTriplesParser(vf);
TripleHandler handler = new TripleHandler(sc, manager);
parser.setRDFHandler(handler);
parser.setStopAtFirstError(false);
parser.setParseErrorListener(new ParseErrorListener() {
@Override
public void warning(String msg, int lineNo, int colNo) {
System.err.println("warning: " + msg);
System.err.println("file: " + file + " line: " + lineNo + " column: " +colNo);