Class Projection
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<Projectable>
-
- org.eclipse.rdf4j.sparqlbuilder.core.Projection
-
- All Implemented Interfaces:
QueryElement
public class Projection extends QueryElementCollection<Projectable>
A SPARQL Projection- See Also:
- SPARQL Projections
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DELIMETER
private static java.lang.String
DISTINCT
private boolean
isDistinct
private static java.lang.String
SELECT
private boolean
selectAll
-
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements
-
-
Constructor Summary
Constructors Constructor Description Projection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Projection
all()
Specify that this projection should select all in-scope expressionsProjection
all(boolean selectAll)
Specify if this projection should select all in-scope expressions or notProjection
distinct()
Specify this projection to be distinctProjection
distinct(boolean isDistinct)
Specify if this projection should be distinct or notjava.lang.String
getQueryString()
Projection
select(Projectable... projectables)
Add expressions for this projection to select-
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, isEmpty
-
-
-
-
Field Detail
-
SELECT
private static final java.lang.String SELECT
- See Also:
- Constant Field Values
-
DISTINCT
private static final java.lang.String DISTINCT
- See Also:
- Constant Field Values
-
DELIMETER
private static final java.lang.String DELIMETER
- See Also:
- Constant Field Values
-
isDistinct
private boolean isDistinct
-
selectAll
private boolean selectAll
-
-
Method Detail
-
distinct
public Projection distinct()
Specify this projection to be distinct- Returns:
- this
- See Also:
- SPARQL Distinct modifier
-
distinct
public Projection distinct(boolean isDistinct)
Specify if this projection should be distinct or not- Parameters:
isDistinct
- if this projection should be distinct- Returns:
- this
- See Also:
- SPARQL Distinct modifier
-
all
public Projection all()
Specify that this projection should select all in-scope expressions- Returns:
- this
- See Also:
- SPARQL Select
-
all
public Projection all(boolean selectAll)
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:
- SPARQL Select
-
select
public Projection select(Projectable... projectables)
Add expressions for this projection to select- Parameters:
projectables
- the projectable expressions to add- Returns:
- this
-
getQueryString
public java.lang.String getQueryString()
- Specified by:
getQueryString
in interfaceQueryElement
- Overrides:
getQueryString
in classQueryElementCollection<Projectable>
- Returns:
- the String representing the SPARQL syntax of this element
-
-