PrintWriter pw = new PrintWriter(sw);
List<KR2RMLRDFWriter> writers = new ArrayList<KR2RMLRDFWriter>();
writers.add(new N3KR2RMLRDFWriter(new URIFormatter(), pw));
WorksheetR2RMLJenaModelParser modelParser = new WorksheetR2RMLJenaModelParser(modelIdentifier);
applyHistoryToWorksheet(workspace, worksheet, modelParser.parse());
KR2RMLWorksheetRDFGenerator rdfGen = new KR2RMLWorksheetRDFGenerator(worksheet,
workspace.getFactory(), workspace.getOntologyManager(), writers,
false, modelParser.parse(), new ErrorReport(), worksheet.getSuperSelectionManager().getSuperSelection("test"));
rdfGen.generateRDF(true);
String rdf = sw.toString();
assertNotEquals(rdf.length(), 0);
String[] lines = rdf.split(System.getProperty("line.separator"));
assertEquals(37, lines.length);
}