Class UpdateRoutines

java.lang.Object
it.uniroma2.art.semanticturkey.resources.UpdateRoutines

public class UpdateRoutines extends Object
This class contains various integrity checks which are launched when Semantic Turkey is being started and the SemanticTurkeyData directory is found in the user directory. Since previous versions of Semantic Turkey may use a different folder structure for SemanticTurkeyData, this set of routines is in charge of aligning a potential older version of the directory with the one which is being used. note: this class needs to be updated to the changes after the mover to karaf.
In order to check if there were needs of updates on the data, the version was once retrieved from the SemanticTurkeyData, and this way it made sense, as it was telling which version of ST last touched the data folder. If the version was older than the version of the software being run, a check for updates to be made was performed, and then the version in the data was updated with the one in the software.
Instead, now the semantic turkey version is retrieved from a file (it.uniroma2.art.semanticturkey.cfg ) which is contained in the server.
For the future, we should make the terminology more clear, and do the following:
  • suppress the version number hard coded in SemanticTurkey and replace its check with the check from the cfg file in karaf
  • restore a property file in SemanticTurkeyData, containing the version of the latest ST which edited the data folder
Author:
Armando Stellato