|
8 | 8 | import java.util.stream.Collectors; |
9 | 9 | import java.util.stream.Stream; |
10 | 10 |
|
| 11 | +import com.google.common.base.StandardSystemProperty; |
11 | 12 | import com.google.common.collect.Lists; |
12 | 13 | import com.google.common.collect.Maps; |
13 | 14 | import com.google.common.collect.Sets; |
@@ -308,7 +309,7 @@ private Map<String, Map.Entry<RDFResourceTree, List<Node>>> connect(List<Node> t |
308 | 309 | }); |
309 | 310 | }); |
310 | 311 | log.debug("connected tree\n{}", tree::getStringRepresentation); |
311 | | - QueryTreeUtils.asGraph(tree, baseIRI, pm, new File("/tmp/tree-" + FmtUtils.stringForNode(node, pm) + ".graphml")); |
| 312 | + QueryTreeUtils.asGraph(tree, baseIRI, pm, new File(System.getProperty("java.io.tmpdir") + File.separator + "tree-" + FmtUtils.stringForNode(node, pm) + ".graphml")); |
312 | 313 | result.put(key, Maps.immutableEntry(tree, new ArrayList<>(nodes2Project))); |
313 | 314 | }; |
314 | 315 |
|
@@ -729,7 +730,7 @@ public static void main(String[] args) throws Exception { |
729 | 730 |
|
730 | 731 | Graph<Vertex, Edge> g = QueryTreeUtils.toGraph(tree, baseIRI, pm); |
731 | 732 |
|
732 | | - QueryTreeUtils.asGraph(tree, baseIRI, pm, new File("/tmp/lgg.graphml")); |
| 733 | + QueryTreeUtils.asGraph(tree, baseIRI, pm, new File(System.getProperty("java.io.tmpdir") + File.separator + "lgg.graphml")); |
733 | 734 |
|
734 | 735 | }); |
735 | 736 |
|
|
0 commit comments