Package org.openrdf.rio

Examples of org.openrdf.rio.ParseErrorListener


  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);
View Full Code Here

TOP

Related Classes of org.openrdf.rio.ParseErrorListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.