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