During reading a large turtle file with the following code using Jena, I got the error org.apache.jena.riot.RiotException: [line: NUM, col: NUM] illegal escape sequence value
and the code stopped.
Model model = ModelFactory.createDefaultModel();
try {
InputStream in = FileManager.get().open("FILE.ttl");
model.read(in, null, "TTL");
} catch (Exception e) {
e.printStackTrace();
}
I can resolve the error by replacing the line with the correct one. But I would like to skip and ignore the line, if it has a problem. Is it possible?