Interface IGraphPatternBuilder
Provides methods for building graph patterns.
Assembly: dotNetRdf.dll
Syntax
public interface IGraphPatternBuilder
Methods
|
Edit this page
View Source
Bind(Func<INonAggregateExpressionBuilder, SparqlExpression>)
Adds a BIND variable assignment to the graph pattern.
Declaration
IAssignmentVariableNamePart<IGraphPatternBuilder> Bind(Func<INonAggregateExpressionBuilder, SparqlExpression> buildAssignmentExpression)
Parameters
Returns
|
Edit this page
View Source
Child(Action<IGraphPatternBuilder>)
Adds a "normal" child graph pattern.
Declaration
IGraphPatternBuilder Child(Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Child(GraphPatternBuilder)
Adds a "normal" child graph pattern.
Declaration
IGraphPatternBuilder Child(GraphPatternBuilder buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Child(IQueryBuilder)
Adds a "normal" child graph pattern.
Declaration
IGraphPatternBuilder Child(IQueryBuilder queryBuilder)
Parameters
Returns
|
Edit this page
View Source
Filter(Func<INonAggregateExpressionBuilder, BooleanExpression>)
Adds a FILTER to the SPARQL query or graph pattern.
Declaration
IGraphPatternBuilder Filter(Func<INonAggregateExpressionBuilder, BooleanExpression> expr)
Parameters
Returns
|
Edit this page
View Source
Filter(ISparqlExpression)
Adds a FILTER expression to the SPARQL query or graph pattern.
Declaration
IGraphPatternBuilder Filter(ISparqlExpression expr)
Parameters
Returns
|
Edit this page
View Source
Graph(string, Action<IGraphPatternBuilder>)
Adds a GRAPH graph pattern to the graph pattern.
Declaration
IGraphPatternBuilder Graph(string graphVariable, Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Graph(Uri, Action<IGraphPatternBuilder>)
Adds a GRAPH graph pattern to the graph pattern.
Declaration
IGraphPatternBuilder Graph(Uri graphUri, Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Group(Action<IGraphPatternBuilder>)
Adds another child graph pattern builder.
Declaration
IGraphPatternBuilder Group(Action<IGraphPatternBuilder> buildTriplePatterns)
Parameters
Returns
|
Edit this page
View Source
Group(GraphPatternBuilder)
Adds another child graph pattern builder.
Declaration
IGraphPatternBuilder Group(GraphPatternBuilder groupBuilder)
Parameters
Returns
|
Edit this page
View Source
InlineData(params string[])
Adds a VALUES inline data block to the graph pattern.
Declaration
IInlineDataBuilder InlineData(params string[] variables)
Parameters
Type |
Name |
Description |
string[] |
variables |
|
Returns
|
Edit this page
View Source
Minus(Action<IGraphPatternBuilder>)
Adds a MINUS graph pattern to the SPARQL query or graph pattern.
Declaration
IGraphPatternBuilder Minus(Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Optional(Action<IGraphPatternBuilder>)
Adds an OPTIONAL graph pattern to the SPARQL query or graph pattern.
Declaration
IGraphPatternBuilder Optional(Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Service(Uri, Action<IGraphPatternBuilder>)
Adds a SERVICE graph pattern to the graph pattern.
Declaration
IGraphPatternBuilder Service(Uri serviceUri, Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Union(Action<IGraphPatternBuilder>, params Action<IGraphPatternBuilder>[])
Declaration
IGraphPatternBuilder Union(Action<IGraphPatternBuilder> buildFirstGraphPattern, params Action<IGraphPatternBuilder>[] unionedGraphPatternBuilders)
Parameters
Returns
|
Edit this page
View Source
Union(GraphPatternBuilder, params GraphPatternBuilder[])
Creates a UNION of multiple graph patterns. If unionedGraphPatternBuilders
is null or empty,
acts as a call to the Child(GraphPatternBuilder) method.
Declaration
IGraphPatternBuilder Union(GraphPatternBuilder firstGraphPattern, params GraphPatternBuilder[] unionedGraphPatternBuilders)
Parameters
Returns
|
Edit this page
View Source
Where(Action<ITriplePatternBuilder>)
Adds triple patterns to the SPARQL query or graph pattern.
Declaration
IGraphPatternBuilder Where(Action<ITriplePatternBuilder> buildTriplePatterns)
Parameters
Returns
|
Edit this page
View Source
Where(params ITriplePattern[])
Adds triple patterns to the SPARQL query or graph pattern.
Declaration
IGraphPatternBuilder Where(params ITriplePattern[] triplePatterns)
Parameters
Returns
Extension Methods