Class GraphPatternBuilder
Class for building graph patterns.
Inheritance
GraphPatternBuilder
Assembly: dotNetRdf.dll
Syntax
public sealed class GraphPatternBuilder : IGraphPatternBuilder, IDescribeGraphPatternBuilder
Constructors
|
Edit this page
View Source
GraphPatternBuilder()
Creates a builder of a normal graph patterns.
Declaration
public GraphPatternBuilder()
|
Edit this page
View Source
GraphPatternBuilder(GraphPatternType)
Creates a builder of a graph pattern.
Declaration
public GraphPatternBuilder(GraphPatternType graphPatternType)
Parameters
Type |
Name |
Description |
GraphPatternType |
graphPatternType |
MINUS, GRAPH, SERVICE etc.
|
Methods
|
Edit this page
View Source
Bind(Func<INonAggregateExpressionBuilder, SparqlExpression>)
Adds a BIND variable assignment to the graph pattern.
Declaration
public IAssignmentVariableNamePart<IGraphPatternBuilder> Bind(Func<INonAggregateExpressionBuilder, SparqlExpression> buildAssignmentExpression)
Parameters
Returns
|
Edit this page
View Source
Child(Action<IGraphPatternBuilder>)
Adds a "normal" child graph pattern.
Declaration
public IGraphPatternBuilder Child(Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Child(GraphPatternBuilder)
Adds a "normal" child graph pattern.
Declaration
public IGraphPatternBuilder Child(GraphPatternBuilder childBuilder)
Parameters
Returns
|
Edit this page
View Source
Child(IQueryBuilder)
Adds a "normal" child graph pattern.
Declaration
public 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
public IGraphPatternBuilder Filter(Func<INonAggregateExpressionBuilder, BooleanExpression> buildExpression)
Parameters
Returns
|
Edit this page
View Source
Filter(ISparqlExpression)
Adds a FILTER expression to the SPARQL query or graph pattern.
Declaration
public 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
public 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
public IGraphPatternBuilder Graph(Uri graphUri, Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Group(Action<IGraphPatternBuilder>)
Adds another child graph pattern builder.
Declaration
public IGraphPatternBuilder Group(Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Group(GraphPatternBuilder)
Adds another child graph pattern builder.
Declaration
public 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
public 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
public 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
public 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
public IGraphPatternBuilder Service(Uri serviceUri, Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Edit this page
View Source
Union(Action<IGraphPatternBuilder>, params Action<IGraphPatternBuilder>[])
Declaration
public IGraphPatternBuilder Union(Action<IGraphPatternBuilder> firstGraphPattern, 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
public 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
public 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
public IGraphPatternBuilder Where(params ITriplePattern[] triplePatterns)
Parameters
Returns
Implements
Extension Methods