gr.forth.ics.rdfsuite.vrp.label
Class LabelDBUpdater
java.lang.Object
gr.forth.ics.rdfsuite.vrp.label.LabelDBUpdater
public class LabelDBUpdater
- extends java.lang.Object
|
Constructor Summary |
LabelDBUpdater(int mode,
int dbRepr,
java.lang.String dbURL)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LabelDBUpdater
public LabelDBUpdater(int mode,
int dbRepr,
java.lang.String dbURL)
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