org.openrdf.sesame.sail.query
Class ConstructQuery

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.GraphPatternQuery
      extended byorg.openrdf.sesame.sail.query.ConstructQuery
All Implemented Interfaces:
Query

public class ConstructQuery
extends GraphPatternQuery

Class representing a construct-from-where query. The conceptual result of a ConstructQuery, a set of triples, is represented by QueryAnswers with three values: the subject, predicate and object.

Author:
Arjohn Kampman

Constructor Summary
ConstructQuery(boolean distinct, int offset, int limit, List projection, GraphPattern graphPattern)
           
ConstructQuery(boolean distinct, List projection, GraphPattern graphPattern)
           
 
Method Summary
 String[] getColumnHeaders()
          Gets the headers for the results table that is produced by this query.
 TriplePattern[] getProjection()
           
 void getProjectionVariables(Collection variables)
          Gets all variables that are used in the projection of this GraphPatternQuery.
 void setProjection(List projection)
           
 void setProjection(TriplePattern[] projection)
           
 String toString()
           
 
Methods inherited from class org.openrdf.sesame.sail.query.GraphPatternQuery
evaluate, getGraphPattern, getLimit, getOffset, getVariables, hasLimit, hasOffset, isDistinct, setDistinct, setGraphPattern, setLimit, setOffset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstructQuery

public ConstructQuery(boolean distinct,
                      List projection,
                      GraphPattern graphPattern)

ConstructQuery

public ConstructQuery(boolean distinct,
                      int offset,
                      int limit,
                      List projection,
                      GraphPattern graphPattern)
Method Detail

getProjection

public TriplePattern[] getProjection()

setProjection

public void setProjection(List projection)

setProjection

public void setProjection(TriplePattern[] projection)

getProjectionVariables

public void getProjectionVariables(Collection variables)
Description copied from class: GraphPatternQuery
Gets all variables that are used in the projection of this GraphPatternQuery.

Specified by:
getProjectionVariables in class GraphPatternQuery
Parameters:
variables - A Collection to add the Var objects to.

getColumnHeaders

public String[] getColumnHeaders()
Description copied from interface: Query
Gets the headers for the results table that is produced by this query.

Returns:
An array containing as much strings as there are values in each query result.

toString

public String toString()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.