Module org.apache.jena.querybuilder
Interface SelectClause<T extends AbstractQueryBuilder<T>>
- Type Parameters:
T
- The Builder type that the clause is part of.
- All Known Implementing Classes:
DescribeBuilder
,SelectBuilder
public interface SelectClause<T extends AbstractQueryBuilder<T>>
Interface that defines the SelectClause as per
http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rSelectClause
-
Method Details
-
getSelectHandler
SelectHandler getSelectHandler()Returns the select handler for this clause- Returns:
- The SelectHandler that the clause is using
-
addVar
Adds a variable to the select clause. A variable may only be added once. Attempting to add the same variable multiple times will be silently ignored.- Parameters:
var
- The variable to add.- Returns:
- This builder for chaining.
-
addVar
Adds an expression as variable to the select statement. Creates an '(Expression as Var)' to the select statement. A variable may only be added once. Attempting to add the same variable multiple times will be silently ignored.- Parameters:
expr
- The expression to be addedvar
- The variable to add.- Returns:
- This builder for chaining.
-
addVar
Adds an expression as variable to the select statement. Creates an '(Expression as Var)' to the select statement. A variable may only be added once. Attempting to add the same variable multiple times will be silently ignored.- Parameters:
expr
- The expression to be addedvar
- The variable to add.- Returns:
- This builder for chaining.
-
getVars
List<org.apache.jena.sparql.core.Var> getVars()- Returns:
- A list of all the variables that have been added.
-