|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.query.rewriter.FunctionalPredicateRewriter
public class FunctionalPredicateRewriter
A FunctionalPredicateRewriter takes a map from predicate URIs to FunctionalPredicate
implementations and uses it to rewrite a query node that contains a functional predicate by removing all
triple patterns involved in the functional predicate and attaching the functional predicate to the BGP.
| Constructor Summary | |
|---|---|
FunctionalPredicateRewriter(java.util.Map<java.net.URI,java.lang.Class<? extends FunctionalPredicate>> predicates)
Constructor. |
|
FunctionalPredicateRewriter(java.util.Map<java.net.URI,java.lang.Class<? extends FunctionalPredicate>> predicates,
QueryInformation qi)
Constructor |
|
| Method Summary | |
|---|---|
TreeNode |
rewriteTreeNode(TreeNode node)
Rewrites the given node from a SPARQL abstract syntax tree. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionalPredicateRewriter(java.util.Map<java.net.URI,java.lang.Class<? extends FunctionalPredicate>> predicates)
predicates - Map from functional predicate URIs to functional predicate implementations.
public FunctionalPredicateRewriter(java.util.Map<java.net.URI,java.lang.Class<? extends FunctionalPredicate>> predicates,
QueryInformation qi)
predicates - Map from functional predicate URIs to functional predicate implementations.qi - The query information to pass on to the FunctionalPredicate| Method Detail |
|---|
public TreeNode rewriteTreeNode(TreeNode node)
TreeRewriter
rewriteTreeNode in interface TreeRewriternode - the node in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||