TriplesReader typesReader = new TriplesReader("/home/clement/osm/dbpedia-to-sql/data/types/types_fr.nt.gz");
int i = 0;
while (true) {
Triple t = typesReader.nextTriple();
if (t == null) break;
LinkTriple lt = (LinkTriple)t;
lt.setSubject(URISimplifier.simplify(lt.getSubject()));
types.addTypeDeclaration((LinkTriple)t);
if (++i % 10000 == 0) {
System.out.println("Read " + i + " types");
}
}