Class SelectQuery
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.query.Query<T>
-
- org.eclipse.rdf4j.sparqlbuilder.core.query.OuterQuery<SelectQuery>
-
- org.eclipse.rdf4j.sparqlbuilder.core.query.SelectQuery
-
- All Implemented Interfaces:
QueryElement
public class SelectQuery extends OuterQuery<SelectQuery>
A SPARQL Select query- See Also:
- SPARQL Select Query
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectQuery
all()
Specify that this query's projection should select all in-scope expressionsSelectQuery
all(boolean selectAll)
Specify if this query's projection should select all in-scope expressions or not.SelectQuery
distinct()
Specify the query's projection to be distinctSelectQuery
distinct(boolean isDistinct)
Specify if the query's projection should be distinct or notprotected String
getQueryActionString()
SelectQuery
select(Projectable... projectables)
Add expressions to the query's projectionSelectQuery
select(Projection select)
Set this query's projection-
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.query.OuterQuery
base, base, base, getQueryString, prefix, prefix, prefix
-
-
-
-
Method Detail
-
distinct
public SelectQuery distinct()
Specify the query's projection to be distinct- Returns:
- this
- See Also:
Projection.distinct()
-
distinct
public SelectQuery distinct(boolean isDistinct)
Specify if the query's projection should be distinct or not- Parameters:
isDistinct
- if this query's projection should be distinct- Returns:
- this
- See Also:
Projection.distinct(boolean)
-
all
public SelectQuery all()
Specify that this query's projection should select all in-scope expressionsNOTE: setting this takes precedence over any expressions added to the projection via
select(Projectable...)
orselect(Projection)
when printing- Returns:
- this
- See Also:
Projection.all()
-
all
public SelectQuery all(boolean selectAll)
Specify if this query's projection should select all in-scope expressions or not.NOTE: if called with
true
, this setting will take precedence over any expressions added to the projection viaselect(Projectable...)
orselect(Projection)
when converting to string viaOuterQuery.getQueryString()
- Parameters:
selectAll
- if all in-scope expressions should be selected- Returns:
- this
- See Also:
Projection.all(boolean)
-
select
public SelectQuery select(Projectable... projectables)
Add expressions to the query's projectionNOTE: if SELECT * has been specified (by
all()
or callingall(boolean)
withtrue
), that will take precedence over specified expressions when converting to string viaOuterQuery.getQueryString()
- Parameters:
projectables
- expressions to add- Returns:
- this
- See Also:
Projection.select(Projectable...)
-
select
public SelectQuery select(Projection select)
Set this query's projectionNOTE: if SELECT * has been specified (by
all()
or callingall(boolean)
withtrue
), that will take precedence over specified expressions when converting to string viaOuterQuery.getQueryString()
- Parameters:
select
- theProjection
to set- Returns:
- this
-
getQueryActionString
protected String getQueryActionString()
- Specified by:
getQueryActionString
in classQuery<SelectQuery>
-
-