You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2014/10/16 14:44:19 UTC
git commit: fix generation of statistics diagram in marmotta loader
Repository: marmotta
Updated Branches:
refs/heads/develop bac15e8ca -> 57874e6fc
fix generation of statistics diagram in marmotta loader
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/57874e6f
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/57874e6f
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/57874e6f
Branch: refs/heads/develop
Commit: 57874e6fcf3665f9952aaf43d58470e1fcf671ce
Parents: bac15e8
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Thu Oct 16 14:44:45 2014 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Thu Oct 16 14:44:45 2014 +0200
----------------------------------------------------------------------
.../org/apache/marmotta/loader/statistics/Statistics.java | 7 +++++--
parent/pom.xml | 6 ++++++
2 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/57874e6f/loader/marmotta-loader-core/src/main/java/org/apache/marmotta/loader/statistics/Statistics.java
----------------------------------------------------------------------
diff --git a/loader/marmotta-loader-core/src/main/java/org/apache/marmotta/loader/statistics/Statistics.java b/loader/marmotta-loader-core/src/main/java/org/apache/marmotta/loader/statistics/Statistics.java
index 2535fd5..82eb5d9 100644
--- a/loader/marmotta-loader-core/src/main/java/org/apache/marmotta/loader/statistics/Statistics.java
+++ b/loader/marmotta-loader-core/src/main/java/org/apache/marmotta/loader/statistics/Statistics.java
@@ -33,7 +33,10 @@ import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;
-import java.nio.file.*;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.nio.file.StandardOpenOption;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
@@ -217,7 +220,7 @@ public class Statistics {
BufferedImage img = new BufferedImage(900,750, BufferedImage.TYPE_INT_RGB);
graph.render(img.getGraphics());
- try (OutputStream stream = Files.newOutputStream(gFile, StandardOpenOption.TRUNCATE_EXISTING)) {
+ try (OutputStream stream = Files.newOutputStream(gFile, StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.CREATE)) {
ImageIO.write(img, "png", stream);
}
http://git-wip-us.apache.org/repos/asf/marmotta/blob/57874e6f/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index c3cd627..e5c9208 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1350,6 +1350,12 @@
<version>${sesame.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.openrdf.sesame</groupId>
+ <artifactId>sesame-rio-testsuite</artifactId>
+ <version>${sesame.version}</version>
+ <scope>test</scope>
+ </dependency>
<!-- RDFa Parser -->
<dependency>
<groupId>org.semarglproject</groupId>