|
private static void graphDump(OperationParams params, Exchange exchange) throws IOException { |
|
try(RepositoryConnection con = params.graph().getRepository().getConnection()) { |
|
RepositoryResult<Statement> dump; |
|
dump = con.getStatements(null, null, null); |
|
Model dumpModel = QueryResults.asModel(dump); |
After #20, a graph may have more than one namedGraph, line
|
dump = con.getStatements(null, null, null); |
does not take this into account and thus does not correctly dump all namedGraphs and just dumps the default graph.
A possible solution would be to iterate over all the namedGraphs for the input graph and dump all the statements from these namedGraphs.
chimera/camel-chimera-graph/src/main/java/com/cefriel/operations/GraphDump.java
Lines 80 to 84 in cfdbd4a
After #20, a graph may have more than one namedGraph, line
chimera/camel-chimera-graph/src/main/java/com/cefriel/operations/GraphDump.java
Line 83 in cfdbd4a
A possible solution would be to iterate over all the namedGraphs for the input graph and dump all the statements from these namedGraphs.