StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
File contextFile = new File(getTestResource(contextName).toURI());
JSONTokener token = new JSONTokener(new FileInputStream(contextFile));
ContextIdentifier contextId = new ContextIdentifier("events-context", contextFile.toURI().toURL());
JSONKR2RMLRDFWriter writer = new JSONKR2RMLRDFWriter(pw);
writer.setGlobalContext(new JSONObject(token), contextId);
RDFGeneratorRequest request = new RDFGeneratorRequest("events-model", filename);
request.setInputFile(new File(getTestResource(filename).toURI()));
request.setAddProvenance(false);
request.setDataType(InputType.JSON);
request.addWriter(writer);