}
private void parse(URL url) throws Exception {
graph.clear();
final String fileName = url.toExternalForm();
rdfReader = new RdfReader(graph, mapFactory);
if (fileName.endsWith(".nt")) {
rdfReader.parseNTriples(url.openStream());
} else if (fileName.endsWith(".n3")) {
rdfReader.parseN3(url.openStream());
} else if (fileName.endsWith(".rdf")) {