Class Projection
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<Projectable>
org.eclipse.rdf4j.sparqlbuilder.core.Projection
- All Implemented Interfaces:
QueryElement
A SPARQL Projection
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private boolean
private static final String
private boolean
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()
Specify that this projection should select all in-scope expressionsall
(boolean selectAll) Specify if this projection should select all in-scope expressions or notdistinct()
Specify this projection to be distinctdistinct
(boolean isDistinct) Specify if this projection should be distinct or notselect
(Projectable... projectables) Add expressions for this projection to selectMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, isEmpty
-
Field Details
-
SELECT
- See Also:
-
DISTINCT
- See Also:
-
DELIMETER
- See Also:
-
isDistinct
private boolean isDistinct -
selectAll
private boolean selectAll
-
-
Constructor Details
-
Projection
Projection()
-
-
Method Details
-
distinct
Specify this projection to be distinct- Returns:
- this
- See Also:
-
distinct
Specify if this projection should be distinct or not- Parameters:
isDistinct
- if this projection should be distinct- Returns:
- this
- See Also:
-
all
Specify that this projection should select all in-scope expressions- Returns:
- this
- See Also:
-
all
Specify if this projection should select all in-scope expressions or not- Parameters:
selectAll
- if this projection should select all expressions- Returns:
- this
- See Also:
-
select
Add expressions for this projection to select- Parameters:
projectables
- the projectable expressions to add- Returns:
- this
-
getQueryString
- Specified by:
getQueryString
in interfaceQueryElement
- Overrides:
getQueryString
in classQueryElementCollection<Projectable>
- Returns:
- the String representing the SPARQL syntax of this element
-