public static void main(String[] args) throws Exception {
URL url = getDocumentURL(args);
InputStream in = getInputStream(url);
try {
final Graph jrdfMem = JRDF_FACTORY.getNewGraph();
Parser parser = new GraphRdfXmlParser(jrdfMem, new MemMapFactory());
parser.parse(in, toEscapedString(url));
ClosableIterable<Triple> triples = jrdfMem.find(ANY_SUBJECT_NODE, ANY_PREDICATE_NODE, ANY_OBJECT_NODE);
try {
for (Triple triple : triples) {
System.out.println("Graph: " + triple);
}