|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.algebra.QueryModelNodeBase
org.openrdf.query.algebra.StatementPattern
public class StatementPattern
A tuple expression that matches a statement pattern against an RDF graph. Statement patterns can be targeted at one of three context scopes: all contexts, null context only, or named contexts only.
| Nested Class Summary | |
|---|---|
static class |
StatementPattern.Scope
Indicates the scope of the statement pattern. |
| Constructor Summary | |
|---|---|
StatementPattern()
|
|
StatementPattern(StatementPattern.Scope scope,
Var subject,
Var predicate,
Var object)
Creates a statement pattern that matches a subject-, predicate- and object variable against statements from the specified context scope. |
|
StatementPattern(StatementPattern.Scope scope,
Var subjVar,
Var predVar,
Var objVar,
Var conVar)
Creates a statement pattern that matches a subject-, predicate-, object- and context variable against statements from the specified context scope. |
|
StatementPattern(Var subject,
Var predicate,
Var object)
Creates a statement pattern that matches a subject-, predicate- and object variable against statements from all contexts. |
|
StatementPattern(Var subject,
Var predicate,
Var object,
Var context)
Creates a statement pattern that matches a subject-, predicate-, object- and context variable against statements from all contexts. |
|
| Method Summary | ||
|---|---|---|
StatementPattern |
clone()
Returns a (deep) clone of this query model node. |
|
Set<String> |
getBindingNames()
Gets the names of the bindings that are returned by this tuple expression when it is evaluated. |
|
Var |
getContextVar()
Returns the context variable, if available. |
|
Var |
getObjectVar()
|
|
Var |
getPredicateVar()
|
|
StatementPattern.Scope |
getScope()
Gets the context scope for the statement pattern. |
|
String |
getSignature()
Default implementation of QueryModelNode.getSignature() that
prints the name of the node's class. |
|
Var |
getSubjectVar()
|
|
void |
replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
Default implementation of QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode)
that throws an IllegalArgumentException indicating that
current is not a child node of this node. |
|
void |
setContextVar(Var context)
|
|
void |
setObjectVar(Var object)
|
|
void |
setPredicateVar(Var predicate)
|
|
void |
setScope(StatementPattern.Scope scope)
Sets the context scope for the statement pattern. |
|
void |
setSubjectVar(Var subject)
|
|
|
visit(QueryModelVisitor<X> visitor)
Visits this node. |
|
|
visitChildren(QueryModelVisitor<X> visitor)
Dummy implementation of QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor that does
nothing. |
|
| Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase |
|---|
getParentNode, replaceWith, setParentNode, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openrdf.query.algebra.QueryModelNode |
|---|
getParentNode, replaceWith, setParentNode, toString |
| Constructor Detail |
|---|
public StatementPattern()
public StatementPattern(Var subject,
Var predicate,
Var object)
public StatementPattern(StatementPattern.Scope scope,
Var subject,
Var predicate,
Var object)
public StatementPattern(Var subject,
Var predicate,
Var object,
Var context)
public StatementPattern(StatementPattern.Scope scope,
Var subjVar,
Var predVar,
Var objVar,
Var conVar)
| Method Detail |
|---|
public StatementPattern.Scope getScope()
public void setScope(StatementPattern.Scope scope)
public Var getSubjectVar()
public void setSubjectVar(Var subject)
public Var getPredicateVar()
public void setPredicateVar(Var predicate)
public Var getObjectVar()
public void setObjectVar(Var object)
public Var getContextVar()
public void setContextVar(Var context)
public Set<String> getBindingNames()
TupleExpr
getBindingNames in interface TupleExpr
public <X extends Exception> void visit(QueryModelVisitor<X> visitor)
throws X extends Exception
QueryModelNode
visit in interface QueryModelNodeX extends Exception
public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor)
throws X extends Exception
QueryModelNodeBaseQueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor) that does
nothing. Subclasses should override this method when they have child
nodes.
visitChildren in interface QueryModelNodevisitChildren in class QueryModelNodeBaseX extends Exception
public void replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
QueryModelNodeBaseQueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode)
that throws an IllegalArgumentException indicating that
current is not a child node of this node.
replaceChildNode in interface QueryModelNodereplaceChildNode in class QueryModelNodeBasecurrent - The current child node.replacement - The new child node.public String getSignature()
QueryModelNodeBaseQueryModelNode.getSignature() that
prints the name of the node's class.
getSignature in interface QueryModelNodegetSignature in class QueryModelNodeBasepublic StatementPattern clone()
QueryModelNode
clone in interface QueryModelNodeclone in interface TupleExprclone in class QueryModelNodeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||