org.openrdf.sesame.sail.query
Class ConstructQuery
java.lang.Object
org.openrdf.sesame.sail.query.GraphPatternQuery
org.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
| Methods inherited from class org.openrdf.sesame.sail.query.GraphPatternQuery |
evaluate, getGraphPattern, getLimit, getOffset, getVariables, hasLimit, hasOffset, isDistinct, setDistinct, setGraphPattern, setLimit, setOffset |
ConstructQuery
public ConstructQuery(boolean distinct,
List projection,
GraphPattern graphPattern)
ConstructQuery
public ConstructQuery(boolean distinct,
int offset,
int limit,
List projection,
GraphPattern graphPattern)
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.