Skip to content

Commit 777c041

Browse files
committed
No longer aborting (throwing Exception) when an RDF file can't be parsed
1 parent 254a46f commit 777c041

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/factsmission/psps/RepositoryProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ protected void loadStuffToGraph(byte[] content, String path, String rdfType) thr
9090
Graph graph = parser.parse(contentInputStream, rdfType, baseIRI);
9191
graphs.put(baseIRI, graph);
9292
} catch (RuntimeException ex) {
93-
throw new RuntimeException("Processing file at "+path, ex);
93+
//TODO log to meta-graph
94+
Logger.getLogger(RepositoryProcessor.class.getName()).log(Level.SEVERE, "Couldn't parse file at "+path, ex);
9495
}
9596
}
9697

0 commit comments

Comments
 (0)