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

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

public class HierarchyLabeler
extends java.lang.Object


Field Summary
static int CLASSES
           
static int INIT_POSTORDER
          Indicates the integer up to the labeling of the nodes starts.
static int initClassPostOrder
           
static int initMetaclassPostOrder
           
static int initMetapropertyPostOrder
           
static int initPropertyPostOrder
           
protected static org.apache.log4j.Logger log
           
static int maxNumOfHierarchies
          The maximum number of allowed hierarchies per kind.
static int META_CLASSES
           
static int META_PROPS
           
static int NULL_INDEX
          Indicates the null index.
static int PROPS
           
static long universeLength
          The range of the interval start and end.
 
Constructor Summary
HierarchyLabeler(IRDF_Model model)
           
 
Method Summary
 java.util.Collection<IRDF_Class> getClasses(boolean considerRDFNS)
           
 void labelHierarchies(RDF_DAG rdfDag)
           
 void updateDBInitPostOrder(java.sql.Statement stmt)
          Stores the post numbers from which the next labeling will start
 void updateMemoryInitPostOrder(int max)
          Stores the post numbers from which the next labeling will start This method is not needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSES

public static final int CLASSES
See Also:
Constant Field Values

META_CLASSES

public static final int META_CLASSES
See Also:
Constant Field Values

PROPS

public static final int PROPS
See Also:
Constant Field Values

META_PROPS

public static final int META_PROPS
See Also:
Constant Field Values

log

protected static final org.apache.log4j.Logger log

initMetaclassPostOrder

public static int initMetaclassPostOrder

initMetapropertyPostOrder

public static int initMetapropertyPostOrder

initClassPostOrder

public static int initClassPostOrder

initPropertyPostOrder

public static int initPropertyPostOrder

INIT_POSTORDER

public static int INIT_POSTORDER
Indicates the integer up to the labeling of the nodes starts. YT. I can not see why it should be bigger than 300. However, I respect this condition.


NULL_INDEX

public static final int NULL_INDEX
Indicates the null index. Used when we don't know the index or when we don't need it.

See Also:
Constant Field Values

maxNumOfHierarchies

public static int maxNumOfHierarchies
The maximum number of allowed hierarchies per kind.


universeLength

public static long universeLength
The range of the interval start and end. Now it is [300, 2^31]

Constructor Detail

HierarchyLabeler

public HierarchyLabeler(IRDF_Model model)
Method Detail

labelHierarchies

public void labelHierarchies(RDF_DAG rdfDag)
                      throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
Throws:
gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException

getClasses

public java.util.Collection<IRDF_Class> getClasses(boolean considerRDFNS)

updateDBInitPostOrder

public void updateDBInitPostOrder(java.sql.Statement stmt)
                           throws java.sql.SQLException
Stores the post numbers from which the next labeling will start

Throws:
java.sql.SQLException

updateMemoryInitPostOrder

public void updateMemoryInitPostOrder(int max)
Stores the post numbers from which the next labeling will start This method is not needed. These attributes are updated by LabelMemoryUpdater.getIntervalOfNextHierarchy method.