|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.rdql.NodeConstraint
Holds constraint information for a variable node.
In a query a variable node is either a result value, or a shared variable
or both. If it is a shared variable, we collect into a NodeConstraint
all constraining information that we know about the different node positions
from the PropertyBridge
s.
Field Summary | |
static int |
BlankNodeType
|
protected java.util.Set |
columns
set of columns that are equal with this node |
protected java.util.Set |
conditions
valueSource condition Strings (SQL) |
com.hp.hpl.jena.graph.Node |
fixedNode
if not null, we allready know the value of the variable, but still have to check for other occourences. |
(package private) boolean |
infoAdded
a flag that shows, if constraint information was added. |
LiteralMaker |
literalMaker
A literalMaker can be matched against another literalMaker. |
static int |
LiteralNodeType
|
int |
nodeType
What is the type, an URI, a blank node or a literal? |
static int |
NotFixedNodeType
|
protected java.util.Set |
patterns
all patterns to be matched against |
boolean |
possible
true means: satisfiable. |
static int |
UriNodeType
|
Constructor Summary | |
NodeConstraint()
|
Method Summary | |
void |
addConstraintsToSQL(SQLStatementMaker sql)
The collected constraints are created as SQL constraints. |
void |
addEqualColumn(Column c1,
Column c2)
|
void |
conditionsAddEqual(java.lang.String n1,
java.lang.String n2)
Adds a textual equivalence condition to conditions . |
void |
matchFixedNode(com.hp.hpl.jena.graph.Node node)
We see a fixed NodeMaker. |
void |
matchLiteralMaker(LiteralMaker m)
We see a literal NodeMaker. |
void |
matchNodeType(int t)
We see a NodeMaker, that produces nodes of type BlankNodeType, UriNodeType or LiteralNodeType. |
void |
matchValueSource(Column c)
Constraints given on Nodes that are equal to Columns can be directly translated to Column constraints. |
void |
matchValueSource(Pattern p)
Pattern-Constraints can be translated to column constraints. |
void |
matchValueSource(RegexRestriction r)
|
void |
matchValueSource(ValueSource s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean possible
boolean infoAdded
public com.hp.hpl.jena.graph.Node fixedNode
public int nodeType
public LiteralMaker literalMaker
protected java.util.Set conditions
protected java.util.Set columns
protected java.util.Set patterns
public static final int NotFixedNodeType
public static final int BlankNodeType
public static final int UriNodeType
public static final int LiteralNodeType
Constructor Detail |
public NodeConstraint()
Method Detail |
public void matchLiteralMaker(LiteralMaker m)
m
- public void matchFixedNode(com.hp.hpl.jena.graph.Node node)
node
- public void matchNodeType(int t)
t
- public void matchValueSource(Column c)
ValueSource
call this.
c
- public void matchValueSource(Pattern p)
ValueSource
call this.
p
- public void matchValueSource(RegexRestriction r)
public void matchValueSource(ValueSource s)
public void addEqualColumn(Column c1, Column c2)
public void conditionsAddEqual(java.lang.String n1, java.lang.String n2)
conditions
.
We avoid adding both "x=y" and "y=x" by sorting the arguments n1
and n2
first.
n1
- n2
- public void addConstraintsToSQL(SQLStatementMaker sql)
sql
- the statment maker that gets the constraints.
It knows about Alias
es and correct quoting of values for integer/string
database columns.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |