|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.forth.ics.rdfsuite.vrp.label.Label
public class Label
| Field Summary | |
|---|---|
java.util.HashMap |
directLabelGraph
Contains the labels of the nodes accesible through DIRECT non tree arcs |
int |
fatherIdPosition
Position of fatherId value in the ArrayList |
java.util.HashMap |
idTree
Contains the uri of every node in the dag, key is the postOrder |
int |
indexPosition
Position of index value in the ArrayList |
java.util.HashMap |
labelGraph
Contains the labels of the nodes accesible through non tree arcs |
java.util.HashMap |
labelTree
Contains the label of every node in the dag, key is the URI |
java.util.HashSet |
labelVisit
|
int |
listCapacity
Size of the list keeping a node label |
protected static org.apache.log4j.Logger |
log
|
int |
postOrderPosition
Position of postOrder value in the ArrayList |
| Constructor Summary | |
|---|---|
Label(IRDF_Model model,
RDF_DAG aDag,
java.util.Collection roots,
java.math.BigInteger offset,
java.lang.String baseURI)
|
|
Label(IRDF_Model model,
RDF_DAG aDag,
java.lang.Object root,
java.math.BigInteger offset)
|
|
Label(IRDF_Model model,
RDF_DAG aDag,
java.lang.Object root,
java.math.BigInteger offset,
java.lang.String baseURI)
|
|
| Method Summary | |
|---|---|
void |
enumerate(RDF_Model model)
Enumeration over the Property dag usefull for debuging perposes |
java.lang.String |
getBaseUri()
|
java.util.ArrayList |
getDirectArcLabels(java.lang.Object uri)
get the list of nodes accesible from uri through DIRECT non-tree arcs |
java.math.BigInteger |
getFatherId(java.lang.Object uri)
get the fatherId value of uri from labelTree, return null if not exist |
java.math.BigInteger |
getIndex(java.lang.Object uri)
get the index value of uri from labelTree, return null if not exist |
java.math.BigInteger |
getMaxId()
Return max Id (post order no) used in tree (the id of root) |
java.util.ArrayList |
getNonTreeLabels(java.lang.Object uri)
|
java.math.BigInteger |
getPostOrder(java.lang.Object uri)
get the postOrder value of uri from labelTree, return null if not exist |
java.lang.Object |
getRoot()
|
java.lang.Object |
getUri(java.math.BigInteger id)
|
void |
setFatherId(java.lang.Object uri,
java.math.BigInteger value)
set the fatherId value of a node with URI uri in the labelTree |
void |
setIndex(java.lang.Object uri,
java.math.BigInteger value)
set the index value of a node with URI uri in the treeLabel |
void |
setNSFilter(boolean newNSFilter)
|
void |
setPostOrder(java.lang.Object uri,
java.math.BigInteger value)
set the postOrder value of a node with URI uri in the labelTree |
boolean |
withNSFilter()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.HashMap labelTree
public java.util.HashMap labelGraph
public java.util.HashMap directLabelGraph
public java.util.HashSet labelVisit
public java.util.HashMap idTree
public final int indexPosition
public final int postOrderPosition
public final int fatherIdPosition
public final int listCapacity
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public Label(IRDF_Model model,
RDF_DAG aDag,
java.lang.Object root,
java.math.BigInteger offset)
aDag - - the input Directed Acyclic Graphroot - - the desired root of the spanning tree. root can take as value an ArrayList of rootsoffset - - minimum post order number for node labeling
Extract the class and property DAGs from the model,
cover the DAGs with spanning trees , asign labels and construct
the structure where the labeling information is kept.
public Label(IRDF_Model model,
RDF_DAG aDag,
java.lang.Object root,
java.math.BigInteger offset,
java.lang.String baseURI)
aDag - - the input Directed Acyclic Graphroot - - the desired root of the spanning treeoffset - - minimum post order number for node labelingbaseURI - - the Name Space URI
Extract the class and property DAGs from the model,
cover the DAGs with spanning trees , asign labels and construct
the structure where the labeling information is kept.
Name Space filter is activated and only URIs in baseURI ns are considered
public Label(IRDF_Model model,
RDF_DAG aDag,
java.util.Collection roots,
java.math.BigInteger offset,
java.lang.String baseURI)
aDag - - the input Directed Acyclic Graphroots - - the desired root list of the spanning forestoffset - - minimum post order number for node labelingbaseURI - - the Name Space URI
Extract the class and property DAGs from the model,
cover the DAGs with spanning trees , asign labels and construct
the structure where the labeling information is kept.
Name Space filter is activated and only URIs in baseURI ns are considered| Method Detail |
|---|
public java.lang.Object getRoot()
public java.math.BigInteger getMaxId()
public java.lang.String getBaseUri()
public boolean withNSFilter()
public void setNSFilter(boolean newNSFilter)
newNSFilter - - if true, the NSFilter is activated, otherwise inactivated
If Name Space filter is activated, nodes must have baseUri as a prefix to
be inserted in the spanning tree, otherwze they are ignoredpublic java.util.ArrayList getDirectArcLabels(java.lang.Object uri)
public java.util.ArrayList getNonTreeLabels(java.lang.Object uri)
uri - - the primary object
public void setIndex(java.lang.Object uri,
java.math.BigInteger value)
public java.math.BigInteger getIndex(java.lang.Object uri)
public void setPostOrder(java.lang.Object uri,
java.math.BigInteger value)
public java.math.BigInteger getPostOrder(java.lang.Object uri)
public java.lang.Object getUri(java.math.BigInteger id)
public void setFatherId(java.lang.Object uri,
java.math.BigInteger value)
public java.math.BigInteger getFatherId(java.lang.Object uri)
public void enumerate(RDF_Model model)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||