gr.forth.ics.rssdb.storage
Class HierarchyLabel

java.lang.Object
  |
  +--gr.forth.ics.rssdb.storage.HierarchyLabel

public class HierarchyLabel
extends java.lang.Object

HierarchyLabel:

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

Version:
2.0 (23 July 2003)
Author:
Sofia Alexaki

Field Summary
static int INIT_POSTORDER
           
static int NULL_INDEX
          Indicates the null index.
 
Constructor Summary
HierarchyLabel(gr.forth.ics.vrp.corevrp.model.RDF_DAG subclass_dag, gr.forth.ics.vrp.corevrp.model.RDF_DAG subproperty_dag, java.lang.String nsURI, java.sql.Statement stmt)
           
 
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

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.

INIT_POSTORDER

public static int INIT_POSTORDER
Constructor Detail

HierarchyLabel

public HierarchyLabel(gr.forth.ics.vrp.corevrp.model.RDF_DAG subclass_dag,
                      gr.forth.ics.vrp.corevrp.model.RDF_DAG subproperty_dag,
                      java.lang.String nsURI,
                      java.sql.Statement stmt)
               throws java.sql.SQLException
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 - A sql statement object
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