Class ChainFilter
Generic Filter for use where multiple Filters are applied on a single Graph Pattern.
Inherited Members
Namespace: VDS.RDF.Query.Filters
Assembly: dotNetRdf.dll
Syntax
public class ChainFilter : ISparqlFilter, IVisitable, IProcessable
Constructors
| Edit this page View SourceChainFilter(IEnumerable<ISparqlFilter>)
Creates a new Chain Filter.
Declaration
public ChainFilter(IEnumerable<ISparqlFilter> filters)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISparqlFilter> | filters | Filters. |
ChainFilter(ISparqlFilter, IEnumerable<ISparqlFilter>)
Creates a new Chain Filter.
Declaration
public ChainFilter(ISparqlFilter first, IEnumerable<ISparqlFilter> rest)
Parameters
Type | Name | Description |
---|---|---|
ISparqlFilter | first | First Filter. |
IEnumerable<ISparqlFilter> | rest | Additional Filters. |
ChainFilter(ISparqlFilter, ISparqlFilter)
Creates a new Chain Filter.
Declaration
public ChainFilter(ISparqlFilter first, ISparqlFilter second)
Parameters
Type | Name | Description |
---|---|---|
ISparqlFilter | first | First Filter. |
ISparqlFilter | second | Second Filter. |
Properties
| Edit this page View SourceExpression
Gets the Inner Expression used by the Chained Filters.
Declaration
public ISparqlExpression Expression { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
Remarks
Equivalent to ANDing all the Chained Filters expressions.
Filters
Get the filters to be chained.
Declaration
public IEnumerable<ISparqlFilter> Filters { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ISparqlFilter> |
Variables
Gets the enumeration of Variables used in the chained Filters.
Declaration
public IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Methods
| Edit this page View SourceAccept<T>(ISparqlAlgebraVisitor<T>)
Accept a simple algebra visitor.
Declaration
public T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAlgebraVisitor<T> | visitor | The visitor implementation. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The type returned by the Visit methods of the visitor. |
Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Called by an algebra visitor to process an item by invoking the appropriate method on the processor
passed in.
Declaration
public TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
Type | Name | Description |
---|---|---|
ISparqlQueryAlgebraProcessor<TResult, TContext> | processor | The processor to invoke. |
TContext | context | The context to pass to the processor. |
Returns
Type | Description |
---|---|
TResult | The result of invoking the processor method. |
Type Parameters
Name | Description |
---|---|
TResult | The type of result returned by the processor. |
TContext | The type of the context object to be provided to the processor. |
Add(ISparqlFilter)
Adds an additional Filter to the Filter Chain.
Declaration
protected void Add(ISparqlFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ISparqlFilter | filter | A Filter to add. |
ToString()
Gets the String representation of the Filters.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |