Removed some commented out code and fixed path name for display model display model.

This commit is contained in:
hjkhjk54 2011-06-24 18:57:40 +00:00
parent c774dc5550
commit 26008ff924
2 changed files with 1 additions and 28 deletions

View file

@ -54,7 +54,7 @@ public class JenaDataSourceSetupBase extends JenaBaseDaoCon {
protected static String AUTHPATH = BASE+"auth/";
public static String APPPATH = BASE+"app/";
//these files are loaded everytime the system starts up
public static String APPPATH_LOAD = APPPATH + "menuload";
public static String APPPATH_LOAD = APPPATH + "menuload/";
protected static String SUBMODELS = "/WEB-INF/submodels/";
protected static boolean firstStartup = false;

View file

@ -99,33 +99,6 @@ public class JenaPersistentDataSourceSetup extends JenaDataSourceSetupBase
} catch (Throwable t) {
log.error("Unable to load user application configuration model Display Model from DB", t);
}
/*
//For comparison purposes
//Read in application.owl and menu.n3 and compare with what is currently in the display model
//What are the differences
try {
//This is the model as retrieved on system load
Model loadedModel = ModelFactory.createDefaultModel();
//Now read in from the menu model
Model appDbModel = makeDBModelFromConfigurationProperties(
JENA_DISPLAY_METADATA_MODEL, DB_ONT_MODEL_SPEC, ctx);
//Now compare - do differences in both directions
//What's in the upto date display that's not in the one that's loaded from files
Model notInLoadedModel = appDbModel.difference(loadedModel);
System.out.println("**These are the statements not in the loaded model that ARE in the current model");
notInLoadedModel.write(System.out, "N3");
//Could also do RDF.. if need to
//Do the opposite too to check
Model notInCurrentModel = loadedModel.difference(appDbModel);
System.out.println("**These are statements in loaded model NOT in the current model");
notInCurrentModel.write(System.out, "N3");
} catch (Exception ex) {
System.out.println("An error occurred in reading this file");
ex.printStackTrace();
}
*/
}
@Override