Package com.hp.hpl.jena.graph.query

Defines the graph-level Query classes, allowing multi-pattern query over arbitrary graphs.

See:
          Description

Interface Summary
BindingQueryPlan A BindingQueryPlan is something that can run executeBindings() to get back an ExtendedIterator over Domains, ie, Lists.
Expression Expression - the interface for expressions that is expected by Query for constraints.
ExpressionFunctionURIs ExpressionFunctionURIs: constants expressing the URIs for functions that may be recognised by expression constructors and analysers.
IndexValues IndexValues: something that when supplied with a non-negative integer, returns a value.
PatternCompiler A PatternCompiler is some class that knows how to handle fixed Node values, binding and bound occurences of variables, and wildcards.
Pipe A Pipe is anything that can be used to get and put Domain objects; it can be closed, and it can be tested for whether more elements are available.
QueryHandler a QueryHandler handles queries on behalf of a graph.
TreeQueryPlan  
TripleSorter Interface for things that can sort triples (for optimising queries).
Valuator Valuator
VariableIndexes VariableIndexes: a mapping from variable names to their offsets in some table of variable values.
VariableValues The interface that allows the values of variables in expressions to be found.
 

Class Summary
Bind A binding instance of a variable.
Bound An element which represents an already-bound variable.
BufferPipe This class is a pipe between query threads, implemented as a bounded buffer.
ConstraintStage A ConstraintStage implements the constraint evaluation part of a query.
Domain A Domain is an answer to a Binding query.
Element An Element of a matching triple.
Expression.Application An abstract base class for apply nodes; subclasses implement getFun(), argCount(), and getArg().
Expression.Base An abstract base class for Expressions; over-ride as appropriate.
Expression.BoolConstant Base class used to implement TRUE and FALSE.
Expression.Literal An abstract base class for literal nodes; subclasses implement getValue().
Expression.Util Utility methods for Expressions, captured in a class because they can't be written directly in the interface.
Expression.Valof Valof provides an implementation of VariableValues which composes the "compile-time" VariableIndexes map with the "run-time" IndexValues map to produce a VariableValues map.
Expression.Variable An abstract base class for variable nodes; subclasses implement getName().
ExpressionSet ExpressionSet: represent a set of (boolean) expressions ANDed together.
Fixed An Element that matches a single specified value.
InitialStage The initial stage of a query, responsible for dropping the no-variables-bound seed binding domain into the remaining stages of the query pipeline.
Mapping this class is used to record the mapping from [variable] Node's to the indexes they are bound to in a Query.
NamedGraphMap a mapping from from names to Graphs.
NamedTripleBunches A NamedTripleBunches maps a [graph] name to a bunch of triples associated with that name.
Pattern A Pattern represents a matching triple; it is composed of S, P, and O Elements.
PatternStage A PatternStage is a Stage that handles some bunch of related patterns; those patterns are encoded as Triples.
PatternStageCompiler PatternStageCompiler serves two purposes: it contains the standard algorithm for compiling patterns-as-triples to patterns-as-Pattern(s), and it has the standard implementation of PatternCompiler in terms of ordinary Elements.
Query The class of graph queries, plus some machinery (which should move) for implementing them.
SimpleQueryEngine SimpleQueryEngine
SimpleQueryHandler A SimpleQueryHandler is a more-or-less straightforward implementation of QueryHandler suitable for use on graphs with no special query engines.
SimpleQueryPlan SimpleQueryPlan is an implementation of QueryPlan which uses the engine defined in Query to do the work.
SimpleTreeQueryPlan Incomplete class.
SimpleTripleSorter A TripleSorter for "optimising" queries.
Stage a processing stage in the query pipeline.
Util Util: some utility code used by graph query that doesn't seem to belong anywhere else that it can be put.
ValuatorSet ValuatorSet - a set of Valuators, which can be added to and evaluated [only].
 

Exception Summary
BufferPipe.BoundedBufferPutException Exception to throw if a put throws an exception.
BufferPipe.BoundedBufferTakeException Exception to throw if a take throws an exception.
Query.UnboundVariableException Exception thrown when a query variable is discovered to be unbound.
 

Package com.hp.hpl.jena.graph.query Description

Defines the graph-level Query classes, allowing multi-pattern query over arbitrary graphs.



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