if (contextFile != null) {
File tmp = new File(contextFile);
contextId = new ContextIdentifier(tmp.getName(), tmp.toURI().toURL());
}
if(inputType.equals("DB")) {
R2RMLMappingIdentifier id = new R2RMLMappingIdentifier(tablename, modelURL);
createWriters();
dbRdfGen.generateRDFFromTable(tablename, writers, id, contextId, baseURI);
} else {
String query = loadQueryFromFile();
R2RMLMappingIdentifier id = new R2RMLMappingIdentifier(modelURL.toString(), modelURL);
createWriters();
dbRdfGen.generateRDFFromSQL(query, writers, id, contextId, baseURI);
}