/** @throws java.lang.Exception */
  @Before
  public void setUp() throws Exception {
    rdfGen = new GenericRDFGenerator(null);

    // Add the models in
    R2RMLMappingIdentifier modelIdentifier =
        new R2RMLMappingIdentifier("people-model", getTestResource("people-model.ttl"));
    rdfGen.addModel(modelIdentifier);

    modelIdentifier =
        new R2RMLMappingIdentifier("schedule-model", getTestResource("schedule-model.txt"));
    rdfGen.addModel(modelIdentifier);
  }
  private KR2RMLBloomFilterManager getBloomFilterManagerForSource(
      String inputFileName, InputType inputType, String modelName)
      throws IOException, URISyntaxException, KarmaException {

    System.out.println("Load file: " + inputFileName);
    StringWriter bfsw = new StringWriter();
    PrintWriter bfpw = new PrintWriter(bfsw);

    BloomFilterKR2RMLRDFWriter bfWriter = new BloomFilterKR2RMLRDFWriter(bfpw, false, null);
    bfWriter.setR2RMLMappingIdentifier(rdfGen.getModels().get(modelName));
    RDFGeneratorRequest request = new RDFGeneratorRequest(modelName, inputFileName);
    request.setInputFile(new File(getTestResource(inputFileName).toURI()));
    request.setAddProvenance(false);
    request.setDataType(inputType);
    request.addWriter(bfWriter);
    rdfGen.generateRDF(request);
    String base64EncodedBloomFilterManager = bfsw.toString();
    return new KR2RMLBloomFilterManager(new JSONObject(base64EncodedBloomFilterManager));
  }