diff --git a/pom.xml b/pom.xml
index dc4a298..3765dc0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
nl.dtls
rdf-extension
- 1.3.0
+ 1.3.1
jar
diff --git a/src/main/java/org/deri/grefine/rdf/commands/PreviewRdfCommand.java b/src/main/java/org/deri/grefine/rdf/commands/PreviewRdfCommand.java
index 925a12a..78dfa27 100644
--- a/src/main/java/org/deri/grefine/rdf/commands/PreviewRdfCommand.java
+++ b/src/main/java/org/deri/grefine/rdf/commands/PreviewRdfCommand.java
@@ -17,6 +17,7 @@
import org.eclipse.rdf4j.rio.RDFHandlerException;
import org.eclipse.rdf4j.rio.RDFWriter;
import org.eclipse.rdf4j.rio.Rio;
+import org.eclipse.rdf4j.rio.helpers.BasicWriterSettings;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
@@ -42,16 +43,17 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
StringWriter sw = new StringWriter();
RDFWriter w = Rio.createWriter(RDFFormat.TURTLE, sw);
+ w.getWriterConfig().set(BasicWriterSettings.PRETTY_PRINT, false);
RdfRowVisitor visitor = new RdfRowVisitor(schema, w) {
final int limit = 10;
int _count;
@Override
public boolean visit(Project project, int rowIndex, Row row) {
- if(_count>=limit){
+ if(_count >= limit){
return true;
}
for(Node root:roots){
- root.createNode(baseUri, factory, con, project, row, rowIndex,blanks);
+ root.createNode(baseUri, factory, con, project, row, rowIndex, blanks);
}
_count +=1;
diff --git a/src/main/java/org/deri/grefine/rdf/exporters/RdfExporter.java b/src/main/java/org/deri/grefine/rdf/exporters/RdfExporter.java
index f46a232..e667c58 100644
--- a/src/main/java/org/deri/grefine/rdf/exporters/RdfExporter.java
+++ b/src/main/java/org/deri/grefine/rdf/exporters/RdfExporter.java
@@ -29,6 +29,7 @@
import org.eclipse.rdf4j.rio.RDFWriter;
import org.eclipse.rdf4j.rio.Rio;
import org.eclipse.rdf4j.sail.memory.MemoryStore;
+import org.eclipse.rdf4j.rio.helpers.BasicWriterSettings;
import com.google.refine.browsing.Engine;
import com.google.refine.browsing.FilteredRows;
@@ -67,6 +68,7 @@ public void export(Project project, Properties options, Engine engine,
private void export(Project project, Properties options, Engine engine,
RDFWriter writer) throws IOException {
+ writer.getWriterConfig().set(BasicWriterSettings.PRETTY_PRINT, false);
RdfSchema schema;
try{
schema = Util.getProjectSchema(applicationContext, project);