Class GraphPatternBuilder
Class for building graph patterns.
Inheritance
System.Object
GraphPatternBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: dotNetRDF.dll
Syntax
public sealed class GraphPatternBuilder : IGraphPatternBuilder, IDescribeGraphPatternBuilder
Constructors
|
Improve this Doc
View Source
GraphPatternBuilder()
Creates a builder of a normal graph patterns.
Declaration
public GraphPatternBuilder()
|
Improve this Doc
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
|
Improve this Doc
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
|
Improve this Doc
View Source
Child(Action<IGraphPatternBuilder>)
Adds a "normal" child graph pattern.
Declaration
public IGraphPatternBuilder Child(Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Improve this Doc
View Source
Child(GraphPatternBuilder)
Adds a "normal" child graph pattern.
Declaration
public IGraphPatternBuilder Child(GraphPatternBuilder childBuilder)
Parameters
Returns
|
Improve this Doc
View Source
Child(IQueryBuilder)
Adds a "normal" child graph pattern.
Declaration
public IGraphPatternBuilder Child(IQueryBuilder queryBuilder)
Parameters
Returns
|
Improve this Doc
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
|
Improve this Doc
View Source
Filter(ISparqlExpression)
Adds a FILTER expression to the SPARQL query or graph pattern.
Declaration
public IGraphPatternBuilder Filter(ISparqlExpression expr)
Parameters
Returns
|
Improve this Doc
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
Type |
Name |
Description |
System.String |
graphVariable |
|
System.Action<IGraphPatternBuilder> |
buildGraphPattern |
|
Returns
|
Improve this Doc
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
|
Improve this Doc
View Source
Group(Action<IGraphPatternBuilder>)
Adds another child graph pattern builder.
Declaration
public IGraphPatternBuilder Group(Action<IGraphPatternBuilder> buildGraphPattern)
Parameters
Returns
|
Improve this Doc
View Source
Group(GraphPatternBuilder)
Adds another child graph pattern builder.
Declaration
public IGraphPatternBuilder Group(GraphPatternBuilder groupBuilder)
Parameters
Returns
|
Improve this Doc
View Source
InlineData(String[])
Adds a VALUES inline data block to the graph pattern.
Declaration
public IInlineDataBuilder InlineData(params string[] variables)
Parameters
Type |
Name |
Description |
System.String[] |
variables |
|
Returns
|
Improve this Doc
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
|
Improve this Doc
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
|
Improve this Doc
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
|
Improve this Doc
View Source
Union(Action<IGraphPatternBuilder>, Action<IGraphPatternBuilder>[])
Declaration
public IGraphPatternBuilder Union(Action<IGraphPatternBuilder> firstGraphPattern, params Action<IGraphPatternBuilder>[] unionedGraphPatternBuilders)
Parameters
Returns
|
Improve this Doc
View Source
Union(GraphPatternBuilder, 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
|
Improve this Doc
View Source
Where(Action<ITriplePatternBuilder>)
Adds triple patterns to the SPARQL query or graph pattern.
Declaration
public IGraphPatternBuilder Where(Action<ITriplePatternBuilder> buildTriplePatterns)
Parameters
Returns
|
Improve this Doc
View Source
Where(ITriplePattern[])
Adds triple patterns to the SPARQL query or graph pattern.
Declaration
public IGraphPatternBuilder Where(params ITriplePattern[] triplePatterns)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IDescribeGraphPatternBuilder.Where(Action<ITriplePatternBuilder>)
Adds triple patterns to the SPARQL query or graph pattern.
Declaration
IDescribeGraphPatternBuilder IDescribeGraphPatternBuilder.Where(Action<ITriplePatternBuilder> buildTriplePatterns)
Parameters
Returns
|
Improve this Doc
View Source
IDescribeGraphPatternBuilder.Where(ITriplePattern[])
Adds triple patterns to the SPARQL query or graph pattern.
Declaration
IDescribeGraphPatternBuilder IDescribeGraphPatternBuilder.Where(params ITriplePattern[] triplePatterns)
Parameters
Returns
Implements
Extension Methods