Class SubSelect
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.query.Query<SubSelect>
org.eclipse.rdf4j.sparqlbuilder.graphpattern.SubSelect
-
Field Summary
-
Constructor Summary
-
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
boolean
isEmpty()
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.Query
bNode, from, from, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, var, where, where
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sparqlbuilder.graphpattern.GraphPattern
and, filter, filterExists, filterExists, filterNotExists, from, minus, optional, optional, union
-
Constructor Details
-
SubSelect
public SubSelect()
-
-
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...)
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...)
when printing- 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 viagetQueryString()
- Parameters:
projectables
- expressions to add- Returns:
- this
- See Also:
-
select
Set this query's projection- Parameters:
select
- theProjection
to set- Returns:
- this
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceGraphPattern
- Returns:
- if this pattern is a collection of GraphPatterns (ie., Group or Alternative patterns), returns if the collection contains any patterns
-
getQueryActionString
- Specified by:
getQueryActionString
in classQuery<SubSelect>
-
getQueryString
- Specified by:
getQueryString
in interfaceQueryElement
- Overrides:
getQueryString
in classQuery<SubSelect>
- Returns:
- the String representing the SPARQL syntax of this element
-