String agraphVersion = OntConfig.Prop.AGRAPH_VERSION.getValue();
boolean useAllegroGraph = agraphVersion != null && agraphVersion.trim().length() > 0;
if ( useAllegroGraph ) {
agraphVersion = agraphVersion.trim();
if ( agraphVersion.startsWith("4.") ) {
return new Ag4TripleStore(_db, _adminDispatcher);
}
else if ( agraphVersion.startsWith("3.") ) {
return new AgTripleStore(_db, _adminDispatcher);
}
}