com.hp.hpl.jena.graph.query
Class Query

java.lang.Object
  extended bycom.hp.hpl.jena.graph.query.Query

public class Query
extends java.lang.Object

The class of graph queries.

Author:
hedgehog

Nested Class Summary
static class Query.ArgMap
          a mapping from from names to Graphs
 
Field Summary
static java.lang.String anon
           
static Node ANY
           
static Node NE
           
static Node O
           
static Node P
           
static Node S
           
static Node X
           
static Node Y
           
static Node Z
           
 
Constructor Summary
Query()
           
Query(Graph pattern)
           
 
Method Summary
 Query addConstraint(Graph g)
           
 Query addConstraint(Node S, Node P, Node O)
           
 Query addMatch(Node S, Node P, Node O)
           
 Query addMatch(java.lang.String name, Node S, Node P, Node O)
           
 Query addMatch(Triple t)
           
 Query.ArgMap args()
           
 ExtendedIterator executeBindings(Graph g, Node[] results)
           
 ExtendedIterator executeBindings(Query.ArgMap args, Node[] nodes)
          the standard "default" implementation of executeBindings.
 int getVariableCount()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anon

public static final java.lang.String anon
See Also:
Constant Field Values

ANY

public static final Node ANY

S

public static final Node S

P

public static final Node P

O

public static final Node O

X

public static final Node X

Y

public static final Node Y

Z

public static final Node Z

NE

public static final Node NE
Constructor Detail

Query

public Query()

Query

public Query(Graph pattern)
Method Detail

addMatch

public Query addMatch(Node S,
                      Node P,
                      Node O)

addMatch

public Query addMatch(Triple t)

addMatch

public Query addMatch(java.lang.String name,
                      Node S,
                      Node P,
                      Node O)

addConstraint

public Query addConstraint(Node S,
                           Node P,
                           Node O)

addConstraint

public Query addConstraint(Graph g)

executeBindings

public ExtendedIterator executeBindings(Graph g,
                                        Node[] results)

executeBindings

public ExtendedIterator executeBindings(Query.ArgMap args,
                                        Node[] nodes)
the standard "default" implementation of executeBindings.


args

public Query.ArgMap args()

getVariableCount

public int getVariableCount()


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.