Interface IQueryBuilder
Interface for building SPARQL queries.
Assembly: dotNetRdf.dll
Syntax
public interface IQueryBuilder
Properties
|
Edit this page
View Source
Prefixes
Gets the prefix manager, which allows adding prefixes to the query or graph pattern.
Declaration
INamespaceMapper Prefixes { get; set; }
Property Value
|
Edit this page
View Source
QueryType
Gets the query type of the generated SPARQL query.
Declaration
SparqlQueryType QueryType { get; }
Property Value
|
Edit this page
View Source
Root
Gets the builder associated with the root graph pattern.
Declaration
IGraphPatternBuilder Root { get; }
Property Value
|
Edit this page
View Source
RootGraphPatternBuilder
Gets the builder associated with the root graph pattern.
Declaration
[Obsolete("Please use Root property", true)]
GraphPatternBuilder RootGraphPatternBuilder { get; }
Property Value
Methods
|
Edit this page
View Source
Bind(Func<INonAggregateExpressionBuilder, SparqlExpression>)
Adds a BIND variable assignment to the root graph pattern.
Declaration
IAssignmentVariableNamePart<IQueryBuilder> Bind(Func<INonAggregateExpressionBuilder, SparqlExpression> buildAssignmentExpression)
Parameters
Returns
|
Edit this page
View Source
BuildQuery()
Declaration
Returns
|
Edit this page
View Source
GroupBy(Func<INonAggregateExpressionBuilder, SparqlExpression>)
Adds a GROUP BY clause to the query.
Declaration
IQueryBuilder GroupBy(Func<INonAggregateExpressionBuilder, SparqlExpression> buildGroupingExpression)
Parameters
Returns
|
Edit this page
View Source
GroupBy(string)
Adds a GROUP BY clause to the query.
Declaration
IQueryBuilder GroupBy(string variableName)
Parameters
Type |
Name |
Description |
string |
variableName |
|
Returns
|
Edit this page
View Source
GroupBy(SparqlVariable)
Adds a GROUP BY clause to the query.
Declaration
IQueryBuilder GroupBy(SparqlVariable variable)
Parameters
Returns
|
Edit this page
View Source
Having(Func<IExpressionBuilder, BooleanExpression>)
Adds a HAVING clause to the query.
Declaration
IQueryBuilder Having(Func<IExpressionBuilder, BooleanExpression> buildHavingConstraint)
Parameters
Returns
|
Edit this page
View Source
InlineDataOverQuery(params string[])
Adds a VALUES inline data block to the entire query (outside graph patterns).
Declaration
IInlineDataBuilder InlineDataOverQuery(params string[] variables)
Parameters
Type |
Name |
Description |
string[] |
variables |
|
Returns
|
Edit this page
View Source
Limit(int)
Declaration
IQueryBuilder Limit(int limit)
Parameters
Type |
Name |
Description |
int |
limit |
Limit value. Pass negative to disable LIMIT.
|
Returns
|
Edit this page
View Source
Offset(int)
Declaration
IQueryBuilder Offset(int offset)
Parameters
Type |
Name |
Description |
int |
offset |
|
Returns
|
Edit this page
View Source
OrderBy(Func<IExpressionBuilder, SparqlExpression>)
Adds ascending ordering by an expression to the query.
Declaration
IQueryBuilder OrderBy(Func<IExpressionBuilder, SparqlExpression> buildOrderExpression)
Parameters
Returns
|
Edit this page
View Source
OrderBy(string)
Adds ascending ordering by a variable to the query.
Declaration
IQueryBuilder OrderBy(string variableName)
Parameters
Type |
Name |
Description |
string |
variableName |
|
Returns
|
Edit this page
View Source
OrderBy(SparqlVariable)
Adds ascending ordering by a variable to the query.
Declaration
IQueryBuilder OrderBy(SparqlVariable variable)
Parameters
Returns
|
Edit this page
View Source
OrderByDescending(Func<IExpressionBuilder, SparqlExpression>)
Adds descending ordering by an expression to the query.
Declaration
IQueryBuilder OrderByDescending(Func<IExpressionBuilder, SparqlExpression> buildOrderExpression)
Parameters
Returns
|
Edit this page
View Source
OrderByDescending(string)
Adds descending ordering by a variable to the query.
Declaration
IQueryBuilder OrderByDescending(string variableName)
Parameters
Type |
Name |
Description |
string |
variableName |
|
Returns
|
Edit this page
View Source
OrderByDescending(SparqlVariable)
Adds descending ordering by a variable to the query.
Declaration
IQueryBuilder OrderByDescending(SparqlVariable variable)
Parameters
Returns
Extension Methods