Class SelectQuery
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.query.Query<SelectQuery>
org.eclipse.rdf4j.sparqlbuilder.core.query.OuterQuery<SelectQuery>
org.eclipse.rdf4j.sparqlbuilder.core.query.SelectQuery
- All Implemented Interfaces:
QueryElement
-
Field Summary
Fields inherited from class OuterQuery
base, prefixesFields inherited from class Query
bnodeCount, from, groupBy, having, limit, LIMIT, offset, OFFSET, orderBy, values, varCount, whereModifier and TypeFieldDescriptionprotected intprotected intprotected static final Stringprotected intprotected static final Stringprotected intprotected QueryPattern -
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 Stringselect(Projectable... projectables) Add expressions to the query's projectionselect(Projection select) Set this query's projectionMethods inherited from class OuterQuery
base, base, base, getQueryString, prefix, prefix, prefixModifier and TypeMethodDescriptionSet the base IRI of this querySet the Base clause of this querySet the base IRI of this queryAdd prefix declarations to this queryAdd prefix declarations to this queryprefix(PrefixDeclarations prefixes) Set the Prefix declarations of this queryMethods inherited from class Query
bNode, from, from, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, values, var, where, whereModifier and TypeMethodDescriptionbNode()A shortcut.Set the Dataset clause for this queryAdd datasets to this queryAdd grouping specifiers for the query results.Set this query's Group By clausehaving(Expression<?>... constraints) Specify constraints for this query's Having clause.Set this query's Having clauselimit(int limit) Set a limit on the number of results returned by this query.offset(int offset) Specify an offset in query results.Specify orderings for the query resultsSet this query's Order By clausevalues(Consumer<Values.VariablesBuilder> valuesConfigurer) var()A shortcut.where(QueryPattern where) Set the query pattern of this querywhere(GraphPattern... queryPatterns) Add graph patterns to this query's query pattern
-
Method Details
-
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:
-
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:
-
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:
-
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:
-
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- theProjectionto set- Returns:
- this
-
getQueryActionString
- Specified by:
getQueryActionStringin classQuery<SelectQuery>
-