Class SelectQuery
- All Implemented Interfaces:
QueryElement
- See Also:
- SPARQL Select Query
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.query.OuterQuery
base, prefixes
-
Method Summary
Modifier and TypeMethodDescriptionall()
Specify that this query's projection should select all in-scope expressionsall(boolean selectAll)
Specify if this query's projection should select all in-scope expressions or not.distinct()
Specify the query's projection to be distinctdistinct(boolean isDistinct)
Specify if the query's projection should be distinct or notprotected String
select(Projectable... projectables)
Add expressions to the query's projectionselect(Projection select)
Set this query's projectionMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.query.OuterQuery
base, base, base, getQueryString, prefix, prefix, prefix
-
Method Details
-
distinct
Specify the query's projection to be distinct- Returns:
- this
- See Also:
Projection.distinct()
-
distinct
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
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
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
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
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
- Specified by:
getQueryActionString
in classQuery<SelectQuery>
-