| java.lang.Object com.hp.hpl.jena.graph.query.Query
Query | public class Query (Code) | | The class of graph queries, plus some machinery (which should move) for
implementing them.
author: hedgehog |
Inner Class :public static class UnboundVariableException extends JenaException | |
Field Summary | |
final public static Node | ANY A convenient synonym for Node.ANY, used in a match to match anything. | final public static Node | O A query variable called "O". | final public static Node | P A query variable called "P". | final public static Node | S A query variable called "S". | final public static Node | X A query variable called "X". | final public static Node | Y A query variable called "Y". | final public static Node | Z A query variable called "Z". | final public static TripleSorter | dontSort |
Constructor Summary | |
public | Query() | public | Query(Graph pattern) Initialiser for Query; makes a Query with its matches taken from
pattern . |
Method Summary | |
public Query | addConstraint(Expression e) | public Query | addMatch(Node s, Node p, Node o) Add an (S, P, O) match to the query's collection of match triples. | public Query | addMatch(String name, Node s, Node p, Node o) Add an (S, P, O) match triple to this query to match against the graph labelled
with name . | public Query | addMatch(Triple t) Add a triple to the query's collection of match triples. | public NamedGraphMap | args() | public ExtendedIterator | executeBindings(Graph g, Node[] results) | public ExtendedIterator | executeBindings(Graph g, List stages, Node[] results) | public ExtendedIterator | executeBindings(NamedGraphMap args, Node[] nodes) | public ExtendedIterator | executeBindings(List outStages, NamedGraphMap args, Node[] nodes) the standard "default" implementation of executeBindings. | public ExpressionSet | getConstraints() | public List | getPattern() Answer a list of the triples that have been added to this query. | public TripleSorter | getSorter() | public NamedTripleBunches | getTriples() | public int | getVariableCount() | public void | setTripleSorter(TripleSorter ts) |
ANY | final public static Node ANY(Code) | | A convenient synonym for Node.ANY, used in a match to match anything.
|
O | final public static Node O(Code) | | A query variable called "O".
|
P | final public static Node P(Code) | | A query variable called "P".
|
S | final public static Node S(Code) | | A query variable called "S".
|
X | final public static Node X(Code) | | A query variable called "X".
|
Y | final public static Node Y(Code) | | A query variable called "Y".
|
Z | final public static Node Z(Code) | | A query variable called "Z".
|
Query | public Query()(Code) | | Initialiser for Query; makes an empty Query [no matches, no constraints]
|
Query | public Query(Graph pattern)(Code) | | Initialiser for Query; makes a Query with its matches taken from
pattern .
Parameters: pattern - a Graph whose triples are used as match elements |
addMatch | public Query addMatch(Node s, Node p, Node o)(Code) | | Add an (S, P, O) match to the query's collection of match triples. Return
this query for cascading.
Parameters: s - the node to match the subject Parameters: p - the node to match the predicate Parameters: o - the node to match the object this Query, for cascading |
addMatch | public Query addMatch(String name, Node s, Node p, Node o)(Code) | | Add an (S, P, O) match triple to this query to match against the graph labelled
with name . Return this query for cascading.
Parameters: name - the name that will identify the graph in the matching Parameters: s - the node to match the subject Parameters: p - the node to match the predicate Parameters: o - the node to match the object this Query, for cascading. |
addMatch | public Query addMatch(Triple t)(Code) | | Add a triple to the query's collection of match triples. Return this query
for cascading.
Parameters: t - an (S, P, O) triple to add to the collection of matches this Query, for cascading |
getPattern | public List getPattern()(Code) | | Answer a list of the triples that have been added to this query.
(Note: ignores "named triples").
List |
getVariableCount | public int getVariableCount()(Code) | | |
|
|