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

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

public class HierarchyLabel
extends java.lang.Object

HierarchyLabel:

Description: This class performs the labeling of the class and property hierarchies


Field Summary
static int INIT_POSTORDER
          Indicates the integer up to the labeling of the nodes starts.
protected static org.apache.log4j.Logger log
           
static int NULL_INDEX
          Indicates the null index.
 
Constructor Summary
HierarchyLabel(IRDF_Model model, RDF_DAG subclass_dag, RDF_DAG subproperty_dag, RDF_DAG submetaclass_dag, RDF_DAG submetaproperty_dag)
           
 
Method Summary
 java.math.BigInteger getClassIndex(java.lang.Object res)
          Gets the index number of the class
 Label getClassLabel()
          Returns the class hierarchy label object
 java.math.BigInteger getClassPost(java.lang.Object res)
          Gets the post number of the class
 java.math.BigInteger getMetaClassIndex(java.lang.Object res)
          Gets the index number of the metaclass
 Label getMetaClassLabel()
          Returns the metaclass hierarchy label object
 java.math.BigInteger getMetaClassPost(java.lang.Object res)
          Gets the post number of the metaclass
 java.math.BigInteger getMetaPropertyIndex(java.lang.Object res)
          Gets the index number of the metaproperty
 Label getMetaPropertyLabel()
          Returns the metaproperty hierarchy label object
 java.math.BigInteger getMetaPropertyPost(java.lang.Object res)
          Gets the post number of the metaproperty
 java.math.BigInteger getPropertyIndex(java.lang.Object res)
          Gets the index number of the property
 Label getPropertyLabel()
          Returns the property hierarchy label object
 java.math.BigInteger getPropertyPost(java.lang.Object res)
          Gets the post number of the property
 void updateDBInitPostOrder(java.sql.Statement stmt)
          Stores the post numbers from which the next labeling will start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

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

INIT_POSTORDER

public static int INIT_POSTORDER
Indicates the integer up to the labeling of the nodes starts.

Constructor Detail

HierarchyLabel

public HierarchyLabel(IRDF_Model model,
                      RDF_DAG subclass_dag,
                      RDF_DAG subproperty_dag,
                      RDF_DAG submetaclass_dag,
                      RDF_DAG submetaproperty_dag)
               throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
Parameters:
subclass_dag - The class RDF_DAG
subproperty_dag - The property RDF_DAG
nsURI - The URI of the namespace where the hierarchies are defined
stmt - An sql statement object
Throws:
gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
Method Detail

getClassLabel

public Label getClassLabel()
Returns the class hierarchy label object

Returns:

getPropertyLabel

public Label getPropertyLabel()
Returns the property hierarchy label object

Returns:

getMetaClassLabel

public Label getMetaClassLabel()
Returns the metaclass hierarchy label object

Returns:

getMetaPropertyLabel

public Label getMetaPropertyLabel()
Returns the metaproperty hierarchy label object

Returns:

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

getMetaClassPost

public java.math.BigInteger getMetaClassPost(java.lang.Object res)
Gets the post number of the metaclass

Parameters:
res - The metaclass
Returns:
the post number of the metaclass

getMetaPropertyPost

public java.math.BigInteger getMetaPropertyPost(java.lang.Object res)
Gets the post number of the metaproperty

Parameters:
res - The metaproperty
Returns:
the post number of the metaproperty

getMetaClassIndex

public java.math.BigInteger getMetaClassIndex(java.lang.Object res)
Gets the index number of the metaclass

Parameters:
res - The metaclass
Returns:
the index number of the metaclass

getMetaPropertyIndex

public java.math.BigInteger getMetaPropertyIndex(java.lang.Object res)
Gets the index number of the metaproperty

Parameters:
res - The metaproperty
Returns:
the index number of the metaproperty

getPropertyPost

public java.math.BigInteger getPropertyPost(java.lang.Object res)
Gets the post number of the property

Parameters:
res - The property object
Returns:
the post number of the property

getPropertyIndex

public java.math.BigInteger getPropertyIndex(java.lang.Object res)
Gets the index number of the property

Parameters:
res - The property
Returns:
the index number of the property

getClassPost

public java.math.BigInteger getClassPost(java.lang.Object res)
Gets the post number of the class

Parameters:
res - The class
Returns:
the post number of the class

getClassIndex

public java.math.BigInteger getClassIndex(java.lang.Object res)
Gets the index number of the class

Parameters:
res - The class
Returns:
the index number of the class