simple change to permit setting RDB/SDB in deploy.properties
This commit is contained in:
parent
2935dc1b23
commit
deb362f599
1 changed files with 11 additions and 0 deletions
|
@ -44,6 +44,17 @@ public class JenaDataSourceSetup extends JenaDataSourceSetupBase implements java
|
|||
|
||||
public void contextInitialized(ServletContextEvent sce) {
|
||||
try {
|
||||
|
||||
String tripleStoreTypeStr =
|
||||
ConfigurationProperties.getProperty(
|
||||
"VitroConnection.DataSource.tripleStoreType", "RDB");
|
||||
|
||||
//FIXME improve
|
||||
if ("SDB".equals(tripleStoreTypeStr)) {
|
||||
(new JenaDataSourceSetupSDB()).contextInitialized(sce);
|
||||
return;
|
||||
}
|
||||
|
||||
OntModel memModel = (OntModel) sce.getServletContext().getAttribute("jenaOntModel");
|
||||
if (memModel == null) {
|
||||
memModel = ModelFactory.createOntologyModel(MEM_ONT_MODEL_SPEC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue