Class ChainFilter
Generic Filter for use where multiple Filters are applied on a single Graph Pattern.
Inheritance
System.Object
ChainFilter
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Filters
Assembly: dotNetRdf.dll
Syntax
public class ChainFilter : ISparqlFilter, IVisitable, IProcessable
Constructors
| Improve this Doc View SourceChainFilter(IEnumerable<ISparqlFilter>)
Creates a new Chain Filter.
Declaration
public ChainFilter(IEnumerable<ISparqlFilter> filters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T><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. |
System.Collections.Generic.IEnumerable<T><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
| Improve this Doc 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
Declaration
public IEnumerable<ISparqlFilter> Filters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><ISparqlFilter> |
Variables
Gets the enumeration of Variables used in the chained Filters.
Declaration
public IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><string> |
Methods
| Improve this Doc View SourceAccept<T>(ISparqlAlgebraVisitor<T>)
Declaration
public T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAlgebraVisitor<T> | visitor |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Declaration
public TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
Type | Name | Description |
---|---|---|
ISparqlQueryAlgebraProcessor<TResult, TContext> | processor | |
TContext | context |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
TResult | |
TContext |
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 |
Overrides
object.ToString()