System.out.println("Loading data...");
rdfSource.reload();
IRDFStatementIterator statementItr;
try {
statementItr = rdfSource.getStatements();
} catch (Exception e) {
e.printStackTrace();
return;
}
while (statementItr.hasNext()) {
IRDFStatement statement = (IRDFStatement) statementItr.next();
if(!id2statement.containsKey(statement.getID()))
id2statement.put(statement.getID(), statement);
}
}