use of org.openrdf.sail.nativerdf.NativeStore in project backstage by zepheira.
the class DataLoadingUtilities method createNativeRepository.
public static RepoSailTuple createNativeRepository(File dir) {
try {
Sail sail = new NativeStore();
sail.setDataDir(dir);
((NativeStore) sail).setTripleIndexes("spoc,posc,opsc");
Repository r = new SailRepository(sail);
r.initialize();
return new RepoSailTuple(r, sail);
} catch (Exception e) {
_logger.error("Exception caught while creating Sesame native repository", e);
return null;
}
}
Aggregations