Class AbstractQueryBuilder<T extends ParsedQuery>
- java.lang.Object
-
- org.eclipse.rdf4j.queryrender.builder.AbstractQueryBuilder<T>
-
- All Implemented Interfaces:
QueryBuilder<T>
,SupportsGroups
@Deprecated public class AbstractQueryBuilder<T extends ParsedQuery> extends Object implements QueryBuilder<T>
Deprecated.useSparqlBuilder
instead.Base implementation of a QueryBuilder.
- Author:
- Michael Grove
-
-
Field Summary
Fields Modifier and Type Field Description protected List<StatementPattern>
mProjectionPatterns
Deprecated.protected List<String>
mProjectionVars
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description QueryBuilder<T>
addGroup(Group theGroup)
Deprecated.Add this group from the queryQueryBuilder<T>
addProjectionStatement(String theSubj, String thePred, String theObj)
Deprecated.QueryBuilder<T>
addProjectionStatement(String theSubj, String thePred, Value theObj)
Deprecated.QueryBuilder<T>
addProjectionStatement(String theSubj, IRI thePred, String theObj)
Deprecated.QueryBuilder<T>
addProjectionStatement(String theSubj, IRI thePred, Value theObj)
Deprecated.QueryBuilder<T>
addProjectionStatement(String theSubj, Value thePred, Value theObj)
Deprecated.QueryBuilder<T>
addProjectionStatement(IRI theSubj, String thePred, String theObj)
Deprecated.QueryBuilder<T>
addProjectionStatement(IRI theSubj, IRI thePred, String theObj)
Deprecated.QueryBuilder<T>
addProjectionVar(String... theNames)
Deprecated.Add projection variables to the queryQueryBuilder<T>
distinct()
Deprecated.Specify that this query should use the "distinct" keywordQueryBuilder<T>
from(IRI theURI)
Deprecated.Add a from clause to this queryQueryBuilder<T>
fromNamed(IRI theURI)
Deprecated.Add a 'from named' clause to this queryGroupBuilder<T,QueryBuilder<T>>
group()
Deprecated.Create a new sub-group of the queryQueryBuilder<T>
limit(int theLimit)
Deprecated.Specify a limit for the queryQueryBuilder<T>
offset(int theOffset)
Deprecated.Specify an offset for the queryGroupBuilder<T,QueryBuilder<T>>
optional()
Deprecated.Create an option sub-groupQueryBuilder<T>
orderBy(String... theNames)
Deprecated.Specify ORDER BY clause with ASC modifier by defaultQueryBuilder<T>
orderByAsc(String... theNames)
Deprecated.Specify ORDER BY clause with ASC modifierQueryBuilder<T>
orderByDesc(String... theNames)
Deprecated.Specify ORDER BY clause with DESC modifierT
query()
Deprecated.Return the query constructed by this query builderQueryBuilder<T>
reduced()
Deprecated.Specify that this query should use the "reduced" keywordQueryBuilder<T>
removeGroup(Group theGroup)
Deprecated.Remove this group from the queryvoid
reset()
Deprecated.Reset the state of the query builder
-
-
-
Field Detail
-
mProjectionPatterns
protected List<StatementPattern> mProjectionPatterns
Deprecated.
-
-
Method Detail
-
reset
public void reset()
Deprecated.Reset the state of the query builder- Specified by:
reset
in interfaceQueryBuilder<T extends ParsedQuery>
-
query
public T query()
Deprecated.Return the query constructed by this query builder- Specified by:
query
in interfaceQueryBuilder<T extends ParsedQuery>
- Returns:
- the query
-
fromNamed
public QueryBuilder<T> fromNamed(IRI theURI)
Deprecated.Add a 'from named' clause to this query- Specified by:
fromNamed
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theURI
- the graph URI- Returns:
- this query builder
-
from
public QueryBuilder<T> from(IRI theURI)
Deprecated.Add a from clause to this query- Specified by:
from
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theURI
- the from URI- Returns:
- this query builder
-
distinct
public QueryBuilder<T> distinct()
Deprecated.Specify that this query should use the "distinct" keyword- Specified by:
distinct
in interfaceQueryBuilder<T extends ParsedQuery>
- Returns:
- this query builder
-
reduced
public QueryBuilder<T> reduced()
Deprecated.Specify that this query should use the "reduced" keyword- Specified by:
reduced
in interfaceQueryBuilder<T extends ParsedQuery>
- Returns:
- this query builder
-
addProjectionVar
public QueryBuilder<T> addProjectionVar(String... theNames)
Deprecated.Add projection variables to the query- Specified by:
addProjectionVar
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theNames
- the names of the variables to add to the projection- Returns:
- this query builder
-
addProjectionStatement
public QueryBuilder<T> addProjectionStatement(String theSubj, String thePred, String theObj)
Deprecated.- Specified by:
addProjectionStatement
in interfaceQueryBuilder<T extends ParsedQuery>
-
addProjectionStatement
public QueryBuilder<T> addProjectionStatement(String theSubj, Value thePred, Value theObj)
Deprecated.
-
addProjectionStatement
public QueryBuilder<T> addProjectionStatement(String theSubj, String thePred, Value theObj)
Deprecated.- Specified by:
addProjectionStatement
in interfaceQueryBuilder<T extends ParsedQuery>
-
addProjectionStatement
public QueryBuilder<T> addProjectionStatement(String theSubj, IRI thePred, Value theObj)
Deprecated.- Specified by:
addProjectionStatement
in interfaceQueryBuilder<T extends ParsedQuery>
-
addProjectionStatement
public QueryBuilder<T> addProjectionStatement(IRI theSubj, String thePred, String theObj)
Deprecated.- Specified by:
addProjectionStatement
in interfaceQueryBuilder<T extends ParsedQuery>
-
addProjectionStatement
public QueryBuilder<T> addProjectionStatement(IRI theSubj, IRI thePred, String theObj)
Deprecated.- Specified by:
addProjectionStatement
in interfaceQueryBuilder<T extends ParsedQuery>
-
addProjectionStatement
public QueryBuilder<T> addProjectionStatement(String theSubj, IRI thePred, String theObj)
Deprecated.- Specified by:
addProjectionStatement
in interfaceQueryBuilder<T extends ParsedQuery>
-
group
public GroupBuilder<T,QueryBuilder<T>> group()
Deprecated.Create a new sub-group of the query- Specified by:
group
in interfaceQueryBuilder<T extends ParsedQuery>
- Returns:
- the new group
-
optional
public GroupBuilder<T,QueryBuilder<T>> optional()
Deprecated.Create an option sub-group- Specified by:
optional
in interfaceQueryBuilder<T extends ParsedQuery>
- Returns:
- the new group
-
limit
public QueryBuilder<T> limit(int theLimit)
Deprecated.Specify a limit for the query- Specified by:
limit
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theLimit
- the new limit for the query- Returns:
- this query builder
-
offset
public QueryBuilder<T> offset(int theOffset)
Deprecated.Specify an offset for the query- Specified by:
offset
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theOffset
- the new offset- Returns:
- this query builder
-
addGroup
public QueryBuilder<T> addGroup(Group theGroup)
Deprecated.Add this group from the query- Specified by:
addGroup
in interfaceSupportsGroups<T extends ParsedQuery>
- Parameters:
theGroup
- the group to add- Returns:
- this builder
-
removeGroup
public QueryBuilder<T> removeGroup(Group theGroup)
Deprecated.Remove this group from the query- Specified by:
removeGroup
in interfaceSupportsGroups<T extends ParsedQuery>
- Parameters:
theGroup
- the group to remove- Returns:
- this builder
-
orderBy
public QueryBuilder<T> orderBy(String... theNames)
Deprecated.Specify ORDER BY clause with ASC modifier by default- Specified by:
orderBy
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theNames
- the names of the variables to apply the ordering- Returns:
- this query builder
-
orderByAsc
public QueryBuilder<T> orderByAsc(String... theNames)
Deprecated.Specify ORDER BY clause with ASC modifier- Specified by:
orderByAsc
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theNames
- the names of the variables to apply the ordering- Returns:
- this query builder
-
orderByDesc
public QueryBuilder<T> orderByDesc(String... theNames)
Deprecated.Specify ORDER BY clause with DESC modifier- Specified by:
orderByDesc
in interfaceQueryBuilder<T extends ParsedQuery>
- Parameters:
theNames
- the names of the variables to apply the ordering- Returns:
- this query builder
-
-