gr.forth.ics.rdfsuite.vrp.label
Class LabelDBUpdater

java.lang.Object
  extended by gr.forth.ics.rdfsuite.vrp.label.LabelDBUpdater

public class LabelDBUpdater
extends java.lang.Object


Field Summary
protected static org.apache.log4j.Logger log
           
static int METACLASSES
           
static int SCHEMA_CLASSES
           
static int SCHEMA_PROPS
           
 
Constructor Summary
LabelDBUpdater(int mode, int dbRepr, java.lang.String dbURL)
           
 
Method Summary
 java.util.HashMap<IntervalLabel,IntervalLabel> getOldAndNewLabels()
          Used only for Test Purposes
static void main(java.lang.String[] args)
           
 void setOldLabelsToProps(java.util.HashMap<IntervalLabel,RDF_Property> oldLabelsToProps)
          This method should be called before updateClassHierDB, in case that ( (dbRepr==RDFDB_Model.SPECIFIC_UNIQUETABLE) && ((mode == this.SCHEMA_PROPS)) ).
 void updateClassHierDB(LabelDBUpdateInput labelDBUpdateInput)
          Updates the labels of classes that where already stroed in DB and need to be changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_CLASSES

public static final int SCHEMA_CLASSES
See Also:
Constant Field Values

SCHEMA_PROPS

public static final int SCHEMA_PROPS
See Also:
Constant Field Values

METACLASSES

public static final int METACLASSES
See Also:
Constant Field Values

log

protected static final org.apache.log4j.Logger log
Constructor Detail

LabelDBUpdater

public LabelDBUpdater(int mode,
                      int dbRepr,
                      java.lang.String dbURL)
Method Detail

updateClassHierDB

public void updateClassHierDB(LabelDBUpdateInput labelDBUpdateInput)
                       throws java.lang.Exception
Updates the labels of classes that where already stroed in DB and need to be changed.

Precondition: The postID should be unique in both oldLabels and newLabels values.

Throws:
java.lang.Exception

setOldLabelsToProps

public void setOldLabelsToProps(java.util.HashMap<IntervalLabel,RDF_Property> oldLabelsToProps)
This method should be called before updateClassHierDB, in case that ( (dbRepr==RDFDB_Model.SPECIFIC_UNIQUETABLE) && ((mode == this.SCHEMA_PROPS)) ). In any other case, ignore this method.


getOldAndNewLabels

public java.util.HashMap<IntervalLabel,IntervalLabel> getOldAndNewLabels()
                                                                  throws java.lang.Exception
Used only for Test Purposes

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception