Merge branch 'maint-rel-1.6' of https://github.com/vivo-project/Vitro into maint-rel-1.6
This commit is contained in:
commit
815215fbd7
3 changed files with 11 additions and 9 deletions
|
@ -346,7 +346,9 @@ public class KnowledgeBaseUpdater {
|
|||
}
|
||||
|
||||
public static boolean isUpdatableABoxGraph(String graphName) {
|
||||
return (!graphName.contains("tbox") && !graphName.contains("filegraph"));
|
||||
return (graphName != null && !graphName.contains("tbox")
|
||||
&& !graphName.contains("filegraph")
|
||||
&& !graphName.contains("x-arq:UnionGraph"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -141,7 +141,7 @@ public class UpdateKnowledgeBase implements ServletContextListener {
|
|||
KnowledgeBaseUpdater ontologyUpdater = new KnowledgeBaseUpdater(settings);
|
||||
boolean requiredUpdate = ontologyUpdater.updateRequired(ctx);
|
||||
|
||||
if(!JenaDataSourceSetupBase.isFirstStartup()) {
|
||||
if(requiredUpdate && !JenaDataSourceSetupBase.isFirstStartup()) {
|
||||
try {
|
||||
ctx.setAttribute(KBM_REQURIED_AT_STARTUP, Boolean.TRUE);
|
||||
migrationChangesMade = ontologyUpdater.update(ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue