|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.put.semintec.mining.datastructures.Node
public class Node
Represents a node in a trie data structure.
Field Summary | |
---|---|
java.lang.String |
how
|
Constructor Summary | |
---|---|
Node()
|
Method Summary | |
---|---|
void |
dispose()
Disposes resources associated to given node |
Atom |
getAtom()
Getter of the property atom |
int |
getDepth()
Getter of the property depth |
java.util.HashMap |
getLastMaterializationDepth()
Getter of the property lastMaterializationDepth |
boolean |
getMaterialized()
Getter of the property marked |
boolean[] |
getNewVarPos()
Getter of the property newVars |
Pattern |
getPattern()
Getter of the property pattern |
jdsl.core.api.Position |
getPos()
Getter of the property pos |
Pattern |
getRewrittenPattern()
Getter of the property rewrittenPattern |
java.util.List |
materializeResults(KnowledgeBase kb)
Materializes answers of rewritten query associated with the node - for each relevant variable creates special predicates to store answers. |
java.util.List |
materializeResultsInit(KnowledgeBase kb)
Materializes answers of the reference query |
Pattern |
rewriteLiteralsToSupOnes(Node parent,
KnowledgeBase kb)
Rewrites query Q1 associated with the given node into new query Q2 where literals of Q1 are rewritten to special predicates in Q2 (one per each variable appearing in both: query Q1 and atom a). |
void |
setAtom(Atom atom)
Setter of the property atom |
void |
setDepth(int depth)
Setter of the property depth |
void |
setLastMaterializationDepth(java.util.HashMap lastMaterializationDepth)
Setter of the property lastMaterializationDepth |
void |
setMaterialized(boolean materialized)
Setter of the property marked |
void |
setNewVarPos(boolean[] newVarPos)
Setter of the property newVars |
void |
setPattern(Pattern pattern)
Setter of the property pattern |
void |
setPos(jdsl.core.api.Position pos)
Setter of the property pos |
void |
setRewrittenPattern(Pattern rewrittenPattern)
Setter of the property rewrittenPattern |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String how
Constructor Detail |
---|
public Node()
Method Detail |
---|
public java.util.HashMap getLastMaterializationDepth()
public void setLastMaterializationDepth(java.util.HashMap lastMaterializationDepth)
lastMaterializationDepth
- The lastMaterializationDepth to set.public Pattern getRewrittenPattern()
public void setRewrittenPattern(Pattern rewrittenPattern)
rewrittenPattern
- The rewrittenPattern to set.public int getDepth()
public void setDepth(int depth)
depth
- The depth to set.public Pattern getPattern()
public void setPattern(Pattern pattern)
pattern
- The pattern to set.public jdsl.core.api.Position getPos()
public void setPos(jdsl.core.api.Position pos)
pos
- The pos to set.public boolean getMaterialized()
public void setMaterialized(boolean materialized)
marked
- The marked to set.public boolean[] getNewVarPos()
public void setNewVarPos(boolean[] newVarPos)
newVars
- The newVars to set.public Atom getAtom()
public void setAtom(Atom atom)
atom
- The atom to set.public Pattern rewriteLiteralsToSupOnes(Node parent, KnowledgeBase kb) throws org.semanticweb.kaon2.api.KAON2Exception
parent
- node of the given patternkb
- Knowledge base where special predicates are stored
org.semanticweb.kaon2.api.KAON2Exception
public java.util.List materializeResults(KnowledgeBase kb) throws org.semanticweb.kaon2.api.KAON2Exception, java.lang.InterruptedException
kb
- Knowledge base to which answers are to be materialized
java.lang.InterruptedException
org.semanticweb.kaon2.api.KAON2Exception
public java.util.List materializeResultsInit(KnowledgeBase kb) throws org.semanticweb.kaon2.api.KAON2Exception, java.lang.InterruptedException
kb
- Knowledge base to which answers are to be materialized
java.lang.InterruptedException
org.semanticweb.kaon2.api.KAON2Exception
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |