public void rdfize(String dsdPath, String dataPath, String tempDataPath, String dataLogPath, String tempTsvPath, String sdmxTTLFile)
{
writeLog("RDFizing updated datasets...");
DSDParser dsd = new DSDParser();
SDMXParser sdmx = new SDMXParser();
File dir = new File(tempDataPath);
File[] files = dir.listFiles();
for(File f:files)
{
if(f.getName().contains(".dsd.xml"))
{
writeLog("Processing :" + f.getAbsolutePath());
dsd = new DSDParser();
dsd.xmlFilePath = f.getAbsolutePath();
dsd.outputFilePath = dsdPath;
dsd.serialization = "turtle";
dsd.sdmx_codeFilePath = sdmxTTLFile;
dsd.initObjects();
dsd.parseFile();
}
else if(f.getName().contains(".sdmx.xml"))
{
writeLog("Processing :" + f.getAbsolutePath());
sdmx = new SDMXParser();
sdmx.outputFilePath = dataPath;
sdmx.logFilePath = dataLogPath;
try{
String fileName = f.getName().substring(0,f.getName().indexOf("."));
sdmx.downLoadTSV(fileName, f.getAbsolutePath(), tempTsvPath + fileName + ".tsv.gz");
}catch(Exception ex)
{
writeLog("Error while processing dataset : " + ex.getMessage());
}